Prepare for RFC6979, Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)

pull/157/head
Jeffrey Walton 2016-04-09 23:50:33 -04:00
parent 89d0581525
commit 75555369d9
2 changed files with 9 additions and 2 deletions

View File

@ -9,6 +9,8 @@ Test: TestVectors/whrlpool.txt
Test: TestVectors/dlies.txt
Test: TestVectors/dsa.txt
Test: TestVectors/dsa_1363.txt
#Test: TestVectors/dsa_rfc6979.txt
#Test: TestVectors/ecdsa_rfc6979.txt
Test: TestVectors/esign.txt
Test: TestVectors/hmac.txt
Test: TestVectors/nr.txt

View File

@ -286,8 +286,13 @@ void TestSignatureScheme(TestData &v)
}
else if (test == "DeterministicSign")
{
SignalTestError();
assert(false); // TODO: implement
// This test is specialized for RFC 6979. The RFC is a drop-in replacement
// for DSA and ECDSA, and access to the seed or secret is not needed. If
// additional determinsitic signatures are added, then the test harness will
// likely need to be extended.
SignerFilter f(GlobalRNG(), *signer, new HexEncoder(new FileSink(cout)));
StringSource ss(GetDecodedDatum(v, "Message"), true, new Redirector(f));
SignalTestFailure();
}
else if (test == "RandomSign")
{