Skip to content

Test failure on x86_64 (file_test failed) #394

@KevLing

Description

@KevLing

Prerequisites

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

  1. Build tomsfastmath
    make CFLAGS="-DTFM_X86_64 -Isrc/headers" test

  2. Build libtomcrypt with tomsfastmath
    make CFLAGS="-DUSE_TFM -DTFM_DESC -I../tomsfastmath/src/headers" EXTRALIBS="../tomsfastmath/libtfm.a" test

  3. Run `test.exe.

  4. 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.

ltc_debug2_output.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions