diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-12-11 01:02:00 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-12-11 01:02:00 -0500 |
commit | 7e427805174b9fc672caf838f9e456a09be32043 (patch) | |
tree | 7e97b8bd55bed4f1da97c48596c5a1d065aa1498 /datatest.cpp | |
parent | 26db40567dabc842ac8e49df7188c10e1087ac42 (diff) | |
download | cryptopp-git-7e427805174b9fc672caf838f9e456a09be32043.tar.gz |
Add Deterministic DSA and ECDSA Signatures (Issue 121)
Based on Douglas Roark PR 131
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/datatest.cpp b/datatest.cpp index 7a2e64c9..d4f5c0ab 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -291,10 +291,12 @@ void TestSignatureScheme(TestData &v) // additional determinsitic signatures are added, then the test harness will
// likely need to be extended.
string signature;
- SignerFilter f(GlobalRNG(), *signer, new HexEncoder(new StringSink(signature)));
+ SignerFilter f(GlobalRNG(), *signer, new StringSink(signature));
StringSource ss(GetDecodedDatum(v, "Message"), true, new Redirector(f));
+
if (GetDecodedDatum(v, "Signature") != signature)
SignalTestFailure();
+
return;
}
else if (test == "RandomSign")
|