From 2345ab6d802bc79d73370ab23568aba531d9a561 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Aug 2007 23:52:06 +0000 Subject: [PATCH] fix bug reported by Jeffrey Walton --- validat2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validat2.cpp b/validat2.cpp index 5ec0a2c2..ad004932 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;