diff options
author | René Korthaus <[email protected]> | 2016-04-13 17:15:36 +0200 |
---|---|---|
committer | René Korthaus <[email protected]> | 2016-05-08 13:38:46 +0200 |
commit | 7a9d0d6630c02c5b8e1123300fc7e74a12c24a03 (patch) | |
tree | 49856f48c372f101486f173c05360764e4705cec /src/tests/test_dsa.cpp | |
parent | 5dd6fbc45b356fa34717e77bc252392016baf8a9 (diff) |
Add support probabilistic DSA & ECDSA
Adds support for probabilistic, aka the standard, DSA and ECDSA.
Can be enabled by disabling the rfc6979 module.
Includes test vectors from NIST CAVP.
Adds rfc6979 to the list of prohibited modules in BSI policy.
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index f9444412d..f481ae34c 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -22,8 +22,13 @@ class DSA_KAT_Tests : public PK_Signature_Generation_Test public: DSA_KAT_Tests() : PK_Signature_Generation_Test( "DSA", - "pubkey/dsa.vec", +#if defined(BOTAN_HAS_RFC6979_GENERATOR) + "pubkey/dsa_rfc6979.vec", {"P", "Q", "G", "X", "Hash", "Msg", "Signature"}) +#else + "pubkey/dsa_prob.vec", + {"P", "Q", "G", "X", "Hash", "Msg", "Nonce", "Signature"}) +#endif {} bool clear_between_callbacks() const override { return false; } |