From caf9e032e6b4ccb114a74a3936c916bcfaba262d Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 2 Mar 2009 02:39:17 +0000 Subject: changes for 5.6: - added AuthenticatedSymmetricCipher interface class and Filter wrappers - added CCM, GCM (with SSE2 assembly), CMAC, and SEED - improved AES speed on x86 and x64 - removed WORD64_AVAILABLE; compiler 64-bit int support is now required git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@433 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- validat2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'validat2.cpp') diff --git a/validat2.cpp b/validat2.cpp index b9ed716..6ec6250 100644 --- a/validat2.cpp +++ b/validat2.cpp @@ -299,6 +299,12 @@ bool ValidateRSA() pass = CryptoSystemValidate(rsaPriv, rsaPub) && pass; } + { + RSAES >::Decryptor rsaPriv(GlobalRNG(), 512); + RSAES >::Encryptor rsaPub(rsaPriv); + + pass = CryptoSystemValidate(rsaPriv, rsaPub) && pass; + } { byte *plain = (byte *) "\x54\x85\x9b\x34\x2c\x49\xea\x2a"; -- cgit v1.2.1