summaryrefslogtreecommitdiff
path: root/datatest.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-12-11 01:02:00 -0500
committerJeffrey Walton <noloader@gmail.com>2016-12-11 01:02:00 -0500
commit7e427805174b9fc672caf838f9e456a09be32043 (patch)
tree7e97b8bd55bed4f1da97c48596c5a1d065aa1498 /datatest.cpp
parent26db40567dabc842ac8e49df7188c10e1087ac42 (diff)
downloadcryptopp-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.cpp4
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")