Prepare for RFC6979, Deterministic Usage of the Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)
parent
89d0581525
commit
75555369d9
|
|
@ -9,6 +9,8 @@ Test: TestVectors/whrlpool.txt
|
||||||
Test: TestVectors/dlies.txt
|
Test: TestVectors/dlies.txt
|
||||||
Test: TestVectors/dsa.txt
|
Test: TestVectors/dsa.txt
|
||||||
Test: TestVectors/dsa_1363.txt
|
Test: TestVectors/dsa_1363.txt
|
||||||
|
#Test: TestVectors/dsa_rfc6979.txt
|
||||||
|
#Test: TestVectors/ecdsa_rfc6979.txt
|
||||||
Test: TestVectors/esign.txt
|
Test: TestVectors/esign.txt
|
||||||
Test: TestVectors/hmac.txt
|
Test: TestVectors/hmac.txt
|
||||||
Test: TestVectors/nr.txt
|
Test: TestVectors/nr.txt
|
||||||
|
|
|
||||||
|
|
@ -286,8 +286,13 @@ void TestSignatureScheme(TestData &v)
|
||||||
}
|
}
|
||||||
else if (test == "DeterministicSign")
|
else if (test == "DeterministicSign")
|
||||||
{
|
{
|
||||||
SignalTestError();
|
// This test is specialized for RFC 6979. The RFC is a drop-in replacement
|
||||||
assert(false); // TODO: implement
|
// 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")
|
else if (test == "RandomSign")
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue