fix bug reported by Jeffrey Walton

pull/2/head
weidai 2007-08-13 23:52:06 +00:00
parent b130b99781
commit 2345ab6d80
1 changed files with 2 additions and 2 deletions

View File

@ -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;