diff options
Diffstat (limited to 'validat2.cpp')
-rw-r--r-- | validat2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/validat2.cpp b/validat2.cpp index b9ed716..6ec6250 100644 --- a/validat2.cpp +++ b/validat2.cpp @@ -300,6 +300,12 @@ bool ValidateRSA() pass = CryptoSystemValidate(rsaPriv, rsaPub) && pass; } { + RSAES<OAEP<SHA> >::Decryptor rsaPriv(GlobalRNG(), 512); + RSAES<OAEP<SHA> >::Encryptor rsaPub(rsaPriv); + + pass = CryptoSystemValidate(rsaPriv, rsaPub) && pass; + } + { byte *plain = (byte *) "\x54\x85\x9b\x34\x2c\x49\xea\x2a"; byte *encrypted = (byte *) |