From d23a489940499bd6c634a1cb0a9875f094f8a850 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 01:24:12 +0000 Subject: various changes for 5.1 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test.cpp') diff --git a/test.cpp b/test.cpp index 926d98d..f12b199 100644 --- a/test.cpp +++ b/test.cpp @@ -448,7 +448,7 @@ void FIPS140_SampleApplication(const char *moduleFilename, const char *edcFilena signer.SignMessage(rng, message, 3, signature); DSA::Verifier verifier(dsaPublicKey); - if (!verifier.VerifyMessage(message, 3, signature)) + if (!verifier.VerifyMessage(message, 3, signature, 40)) { cerr << "DSA signature and verification failed.\n"; abort(); @@ -458,7 +458,7 @@ void FIPS140_SampleApplication(const char *moduleFilename, const char *edcFilena // try to verify an invalid signature signature[0] ^= 1; - if (verifier.VerifyMessage(message, 3, signature)) + if (verifier.VerifyMessage(message, 3, signature, 40)) { cerr << "DSA signature verification failed to detect bad signature.\n"; abort(); @@ -538,7 +538,7 @@ string RSADecryptString(const char *privFilename, const char *ciphertext) RSAES_OAEP_SHA_Decryptor priv(privFile); string result; - StringSource(ciphertext, true, new HexDecoder(new PK_DecryptorFilter(priv, new StringSink(result)))); + StringSource(ciphertext, true, new HexDecoder(new PK_DecryptorFilter(GlobalRNG(), priv, new StringSink(result)))); return result; } @@ -921,6 +921,7 @@ bool Validate(int alg, bool thorough, const char *seed) case 56: result = ValidatePBKDF(); break; case 57: result = ValidateESIGN(); break; case 58: result = ValidateDLIES(); break; + case 59: result = ValidateBaseCode(); break; default: result = ValidateAll(thorough); break; } -- cgit v1.2.1