diff options
author | lloyd <[email protected]> | 2014-12-10 04:08:39 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-12-10 04:08:39 +0000 |
commit | 63215db88ae3bbb982966de37fe112c44f616a1d (patch) | |
tree | 7c73da7eaf981de4bfbeb15e137320940dcbcfd5 /src/tests/test_dsa.cpp | |
parent | 10cfa8fd826e072a5cd76bf52f4ae80d34eba507 (diff) |
Implement RFC 6979 determinstic signatures for DSA and ECDSA.
Drop the GNU MP engine. Its implementations were potentially faster in
some scenarios but not well protected against side channels.
Diffstat (limited to 'src/tests/test_dsa.cpp')
-rw-r--r-- | src/tests/test_dsa.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_dsa.cpp b/src/tests/test_dsa.cpp index 16f03fcc0..43c415b33 100644 --- a/src/tests/test_dsa.cpp +++ b/src/tests/test_dsa.cpp @@ -25,7 +25,7 @@ size_t dsa_sig_kat(const std::string& p, { AutoSeeded_RNG rng; - BigInt p_bn(p), q_bn(q), g_bn(g), x_bn(x); + BigInt p_bn("0x" + p), q_bn("0x" + q), g_bn("0x" + g), x_bn("0x" + x); DL_Group group(p_bn, q_bn, g_bn); DSA_PrivateKey privkey(rng, group, x_bn); @@ -50,7 +50,7 @@ size_t test_dsa() #if defined(BOTAN_HAS_DSA) std::ifstream dsa_sig(PK_TEST_DATA_DIR "/dsa.vec"); - fails += run_tests_bb(dsa_sig, "DSA Signature", "Signature", true, + fails += run_tests_bb(dsa_sig, "DSA Signature", "Signature", false, [](std::map<std::string, std::string> m) -> size_t { return dsa_sig_kat(m["P"], m["Q"], m["G"], m["X"], m["Hash"], m["Msg"], m["Nonce"], m["Signature"]); |