sloth icon indicating copy to clipboard operation
sloth copied to clipboard

Test failure when compiled with MSVC

Open Code7R opened this issue 1 year ago • 1 comments

Just what the title says. First one has to patch the Makefile a bit to use MSVC compiler (eventually I have created a CMakeLists.txt to make it compile).

And even if it compiles, we end up in execution errors:


   [KAT] (0) SLH-DSA-SHAKE-128s-1.rsp

   [KAT] (0) SLH-DSA-SHAKE-128f-1.rsp

   [KAT] (0) SLH-DSA-SHAKE-192s-1.rsp

   [KAT] (0) SLH-DSA-SHAKE-192f-1.rsp

   [KAT] (0) SLH-DSA-SHAKE-256s-1.rsp

   [KAT] (0) SLH-DSA-SHAKE-256f-1.rsp

   [KAT] (0) SLH-DSA-SHA2-128s-1.rsp

   [FAIL] slh_verify() fails.

   [KAT] (0) SLH-DSA-SHA2-128f-1.rsp

   [FAIL] slh_verify() fails.

   [KAT] (0) SLH-DSA-SHA2-192s-1.rsp

   [FAIL] slh_verify() fails.

   [KAT] (0) SLH-DSA-SHA2-192f-1.rsp

   [FAIL] slh_verify() fails.

   [KAT] (0) SLH-DSA-SHA2-256s-1.rsp

   [FAIL] slh_verify() fails.

   [KAT] (0) SLH-DSA-SHA2-256f-1.rsp

   [FAIL] slh_verify() fails.

   [INFO] test_slh_dsa() fail= 6

Current workaround: using clang compiler (i.e. LLVM). with that everything works. I have a feeling that something internally might be messed up with the datatype sizes, because MSVC and clang/GCC have a different idea of how big a LONG value (on x64) should be.

Code7R avatar Nov 26 '24 18:11 Code7R

I do not have access to MSVC so that I could address this issue. Yes, I'd also suspect differences in data type sizes and signedness, even though I tried to use stdint.h types consistently.

mjosaarinen avatar Mar 18 '25 12:03 mjosaarinen