Skip to content

Commit

Permalink
Merge pull request #4398 from Rohde-Schwarz/fix/slh_dsa_defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
reneme authored Oct 22, 2024
2 parents 76a8996 + 2086d9c commit b09c72b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,10 @@ std::unique_ptr<PK_Ops::Signature> SphincsPlus_PrivateKey::create_signature_op(R
BOTAN_ARG_CHECK(params.empty() || params == "Deterministic" || params == "Randomized",
"Unexpected parameters for signing with SLH-DSA (or SPHINCS+)");

const bool randomized = (params == "Randomized");
// FIPS 205, Section 9.2
// The hedged variant is the default and should be used on platforms where
// side-channel attacks are a concern.
const bool randomized = (params.empty() || params == "Randomized");
if(provider.empty() || provider == "base") {
return std::make_unique<SphincsPlus_Signature_Operation>(m_private, m_public, randomized);
}
Expand Down
Loading

0 comments on commit b09c72b

Please sign in to comment.