summaryrefslogtreecommitdiff
path: root/validat2.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-08-13 23:52:06 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-08-13 23:52:06 +0000
commit3d0cf61bb4132e0ade13f86a9af16b2702aab524 (patch)
tree123c2d2898b2a853380745ebd98b1f71dd11cb50 /validat2.cpp
parentb7408bc855ffd3ca1c324a34e82c282e7b95e3f7 (diff)
downloadcryptopp-3d0cf61bb4132e0ade13f86a9af16b2702aab524.tar.gz
fix bug reported by Jeffrey Walton
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@384 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'validat2.cpp')
-rw-r--r--validat2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/validat2.cpp b/validat2.cpp
index 5ec0a2c..ad00493 100644
--- a/validat2.cpp
+++ b/validat2.cpp
@@ -748,8 +748,8 @@ bool ValidateESIGN()
cout << "verification check against test vector\n";
cout << "Generating signature key from seed..." << endl;
- InvertibleESIGNFunction priv;
- priv.GenerateRandom(GlobalRNG(), MakeParameters("Seed", ConstByteArrayParameter((const byte *)"test", 4))("KeySize", 3*512));
+ signer.AccessKey().GenerateRandom(GlobalRNG(), MakeParameters("Seed", ConstByteArrayParameter((const byte *)"test", 4))("KeySize", 3*512));
+ verifier = signer;
fail = !SignatureValidate(signer, verifier);
pass = pass && !fail;