Skip to content

Commit

Permalink
Use generic PK_API_Sign_Test with HSS-LMS
Browse files Browse the repository at this point in the history
  • Loading branch information
FAlbertDev committed Oct 18, 2023
1 parent eb84afd commit 20a5b9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/tests/data/pubkey/api_sign.vec
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ SigParams = Ed25519ph
AlgoParams = gost_256A
SigParams = Raw

[HSS-LMS]

AlgoParams = SHA-256,HW(5,8)
SigParams =

[RSA]

AlgoParams = 2048
Expand Down
4 changes: 0 additions & 4 deletions src/tests/test_hss_lms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ class HSS_LMS_Missing_API_Test final : public Test {
Botan::PK_Signer signer(*sk, Test::rng(), "");
result.test_is_eq(signer.algorithm_identifier(), sk->algorithm_identifier());

// Signer/Verifier should not just hold a reference to the key
sk.reset();
signer.sign_message({}, Test::rng());

// HSS_LMS_Signature_Operation::hash_function()
result.test_eq("PK_Signer should report the hash of the key", signer.hash_function(), "SHA-256");

Expand Down

0 comments on commit 20a5b9f

Please sign in to comment.