From 3d0cf61bb4132e0ade13f86a9af16b2702aab524 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Aug 2007 23:52:06 +0000 Subject: 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 --- validat2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'validat2.cpp') 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; -- cgit v1.2.1