Skip to content

Test failure when compiled with MSVC #3

@Code7R

Description

@Code7R

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.

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