libtom 2020
crypt-1.18.2.zip
ltm-1.2.0.zip
tfm-0.13.1.zip
-----------------------------------------------
注意无论是使用TFM/ LTM---
在libtomcrypto编译的时候就需要带上相应的参数:
CFLAGS="-DUSE_LTM -DLTM_DESC"
Examples
You want to build the library as static library
make
You want to build the library as shared library
make -f makefile.shared
You have libtommath installed on your system and want to build a static library and the test binary to run the self-tests.
make CFLAGS="-DUSE_LTM -DLTM_DESC" EXTRALIBS="-ltommath" test
You have tomsfastmath installed on your system and want to build a shared library and all binaries
make -f makefile.shared CFLAGS="-DUSE_TFM -DTFM_DESC" EXTRALIBS="-ltfm" all demos
You have gmp, libtommath and tomsfastmath installed on your system and want to build a static library and the timing binary to measure timings against gmp.
make CFLAGS="-DUSE_GMP -DGMP_DESC -DLTM_DESC -DTFM_DESC" EXTRALIBS="-lgmp" timing
If you have libtommath in a non-standard location:
make CFLAGS="-DUSE_LTM -DLTM_DESC -I/opt/devel/ltm" EXTRALIBS="/opt/devel/ltm/libtommath.a" all

浙公网安备 33010602011771号