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 gmplibtommath 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
posted @ 2020-11-07 20:52  JustRelax  阅读(88)  评论(0)    收藏  举报