Skip to content
Use Libtomcrypt to learn Cryptography with C++ language. The code are executed in MacOS.
C C++ Other
Branch: master
Clone or download
Pull request Compare This branch is 9 commits ahead of lmshao:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
libs/mac 成功解决调用PRNG的问题。 Sep 5, 2019
.gitignore
AES.cpp
AES.h add AES CTR Apr 21, 2018
CMakeLists.txt
DSA.cpp
DSA.h
HASH.cpp ADD HASH AES HMAC Apr 16, 2018
HASH.h ADD HASH AES HMAC Apr 16, 2018
HMAC.cpp ADD HASH AES HMAC Apr 16, 2018
HMAC.h
LICENSE
LibtomDemo 随机生成密钥的x与y部分。 Sep 18, 2019
Makefile 成功解决调用PRNG的问题。 Sep 5, 2019
README.md
Test.cpp
Test.h
Utils.cpp Update Base64 May 2, 2018
Utils.h refactor test case Apr 17, 2018
main.cpp

README.md

Learn Libtom

该工程可以在MacOS or Linux平台上编译运行,唯一区别在于链接的动态库不同。libs/mac目录对应MacOS,libs/linux目录对应64位Linux。

编译说明

  • 使用Makefile直接执行make命令,该Makefile可以在MacOS or Linux上运行。
  • 使用CLion打开CMakeLists.txt,默认是基于MacOS,若使用Linux,需要把CMakeLists.txt文件中LINK_DIRECTORIES(libs/mac)更改为LINK_DIRECTORIES(libs/linux)
  • 清除中间文件:make clean

问题总结

如果直接编译,会出现一个问题是无法调用PNG模块,导致出现ltc_mp.name == NULL的问题。

You can’t perform that action at this time.