diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 01:24:12 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 01:24:12 +0000 |
commit | d23a489940499bd6c634a1cb0a9875f094f8a850 (patch) | |
tree | f85b3bed971083e90e5f3dbb84539ea4ba0359e9 /test.cpp | |
parent | b3517523a738277cfe22428bd757833e69abb66e (diff) | |
download | cryptopp-d23a489940499bd6c634a1cb0a9875f094f8a850.tar.gz |
various changes for 5.1
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@38 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'test.cpp')
-rw-r--r-- | test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |