Repository Public
1Test vectors for QyvoraSLHDSA (SLH-DSA, FIPS 205)2==================================================34Source NIST ACVP-Server, gen-val/json-files/SLH-DSA-{keyGen,sigGen,sigVer}-FIPS205/internalProjection.json5 https://github.com/usnistgov/ACVP-Server6Revision c719d09ba78c58c8a2083f0967c23fafb2e088bc (files retrieved 2026-12-03)7Licence NIST-developed data, public domain in the United States (17 U.S.C. 105)89Files10-----11keyGen.json.gz The complete NIST keyGen file, byte-for-byte the gzip -9 of the NIST JSON.12 12 groups (one per parameter set), 10 cases each: 120 cases.13 sha256 5ae6226d142a913aaa3f03f884314fee087a67b28bbe2f093e54a6ea9f13761f14sigGen.json.gz Reduced: the 72 NIST groups, 1 case per group: 72 cases (out of 624).15 sha256 b6043c66f71a919505d984cbdf3a3548aeacd59df370815a31461261d7f0812716sigVer.json.gz Reduced: the 36 NIST groups, 2 cases per group: 72 cases (out of 504).17 sha256 748ff92911a93f2e5aad7a723b94ab0ceee246d084d1059eb4075011d0a97b7318reduce_vectors.py The script that produced the three files from the complete NIST files19 (python3 -I reduce_vectors.py <acvp-dir> <this-dir>); its output is reproducible bit for bit.2021The complete sigGen and sigVer files are 21 MB and 17 MB once gzip-compressed, too large for the22repository. SHA-256 of the complete raw JSON files they were reduced from:23 sigGen 88ebee9d9aa95a38cd4ecf6c0bb63668782c3af9a931acbcd6364f86e669334724 sigVer fc63f0985992bad1e68d24a74b3eec2b82199b4a94b06ba7195b61c44ec092d02526Selection rule (groups and cases visited in file order; kept cases are not altered, only the27"tests" lists are shortened)28-----------------------------------------------------------------------------------------------29sigGen 72 groups = 12 parameter sets x {deterministic, hedged} x {internal, external pure,30 external pre-hash}.31 - internal and external pure groups: the first case of the group;32 - pre-hash groups: the first case whose hashAlg has been kept the fewest times so far.33 Result: 48 cases without pre-hash and 2 cases for each of the 12 pre-hash functions34 (SHA2-224, SHA2-256, SHA2-384, SHA2-512, SHA2-512/224, SHA2-512/256, SHA3-224, SHA3-256,35 SHA3-384, SHA3-512, SHAKE-128, SHAKE-256).36sigVer 36 groups = 12 parameter sets x {internal, external pure, external pre-hash}.37 - the first case with testPassed = true;38 - the first case with testPassed = false whose "reason" has been kept the fewest times so far.39 Result: 36 valid signatures and 6 cases for each of the 6 rejection reasons (modified40 message, modified R, modified SIG_FORS, modified SIG_HT, signature too small, too large).41 Pre-hash functions present in the reduced sigVer file: all but SHA3-224 and SHA3-38442 (both are covered by sigGen).4344Replaying the complete files45----------------------------46Set QYVORA_SLHDSA_FULL_KAT to a directory holding the complete files, either with the NIST layout47(<dir>/SLH-DSA-sigGen-FIPS205/internalProjection.json.gz, likewise keyGen and sigVer) or flat48(<dir>/keyGen.json.gz, sigGen.json.gz, sigVer.json.gz):4950 QYVORA_SLHDSA_FULL_KAT=<dir> swift test -c release --filter SLHDSAACVPTests --scratch-path /tmp/qy-slh5152Result of the complete run (2026-12-04, release build, Apple M5 Max, about 15 s)53-------------------------------------------------------------------------------54keyGen 120/120 (10/10 for each of the 12 parameter sets)55sigGen 624/624 (52/52 for each of the 12 parameter sets)56 internal, deterministic 84/8457 internal, hedged 84/8458 external pure, deterministic 84/8459 external pure, hedged 84/8460 external pre-hash, deterministic 144/14461 external pre-hash, hedged 144/14462sigVer 504/504 (42/42 for each of the 12 parameter sets)63 internal 168/16864 external pure 168/16865 external pre-hash 168/16866 by reason: 72/72 for the valid cases and for each of the 6 rejection reasons6768In the hedged sigGen cases the additional randomness is given by the vector ("additionalRandomness"),69so signatures are compared byte for byte in every case.70