-
Notifications
You must be signed in to change notification settings - Fork 484
Description
Prerequisites
- Checked the developer manual
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=repo%3Alibtom%2Flibtomcrypt
- Checked that your issue isn't related to TomsFastMath's limitation that PK operations can by default only be done with max. 2048bit keys
Description
This issue is the same as #258 but on a different platform. Running the libtomcrypt unit tests produces a failure (file_test) and a nop (katja_test). I am building this using GCC (6.4.0) on Windows 7 64-bit.
store_test..........passed 0.000ms
rotate_test.........passed 1.000ms
misc_test...........passed 0.000ms
mpi_test............passed 1.000ms
cipher_hash_test....passed 23.002ms
mac_test............passed 3.000ms
modes_test..........passed 0.000ms
der_test............passed 1844.105ms
pkcs_1_test.........passed 2.001ms
pkcs_1_pss_test.....passed 10.000ms
pkcs_1_oaep_test....passed 11.001ms
pkcs_1_emsa_test....passed 14.001ms
pkcs_1_eme_test.....passed 14.000ms
rsa_test............passed 1653.095ms
dh_test.............passed 7382.422ms
ecc_tests...........passed 13468.771ms
dsa_test............passed 258.014ms
katja_test..........nop
file_test...........failed (CRYPT_ERROR) 1.000ms
multi_test..........passed 0.000ms
prng_test...........passed 1.000ms
FAILURE: passed=19 failed=1 nop=1 duration=24.7sec real=24.7sec
Steps to Reproduce
-
Build tomsfastmath
make CFLAGS="-DTFM_X86_64 -Isrc/headers" test -
Build libtomcrypt with tomsfastmath
make CFLAGS="-DUSE_TFM -DTFM_DESC -I../tomsfastmath/src/headers" EXTRALIBS="../tomsfastmath/libtfm.a" test -
Run `test.exe.
-
I also tested with libtommath and saw the same test failure. Build command for libtommath was
make. Then libtomcrypt was built with
make CFLAGS="-DUSE_LTM -DLTM_DESC -I../libtommath" EXTRALIBS="../libtommath/libtommath.a" test
Version
libtomcrypt = v1.18.1
tomsfastmath = v0.13.1
libtommath = v1.0.1
Cygwin, GCC (6.4.0), Windows 7 64-bit
Additional Information
The test program's output with tomsfastmath and LTC_DEBUG=2 is attached.