summaryrefslogtreecommitdiff
path: root/rsa.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-10-04 23:24:18 -0400
committerJeffrey Walton <noloader@gmail.com>2017-10-04 23:24:18 -0400
commit1d0df34ae8304fa964cb7702e4f4476bbf6e9e7c (patch)
tree2cb9b3b3804af9e94102d985ade4f89483554751 /rsa.cpp
parent73928489f97d8dc45bf7a3fe9fe275cd1adb5d97 (diff)
downloadcryptopp-git-1d0df34ae8304fa964cb7702e4f4476bbf6e9e7c.tar.gz
Add PKCS #1 SHA3-based signatures (GH #517)
Diffstat (limited to 'rsa.cpp')
-rw-r--r--rsa.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/rsa.cpp b/rsa.cpp
index 095a99dd..f3e66866 100644
--- a/rsa.cpp
+++ b/rsa.cpp
@@ -12,6 +12,7 @@
#include "pkcspad.h"
#if defined(CRYPTOPP_DEBUG) && !defined(CRYPTOPP_DOXYGEN_PROCESSING) && !defined(CRYPTOPP_IS_DLL)
+#include "sha3.h"
#include "pssr.h"
NAMESPACE_BEGIN(CryptoPP)
void RSA_TestInstantiations()
@@ -31,8 +32,12 @@ void RSA_TestInstantiations()
RSAES<PKCS1v15>::Encryptor x8(x3);
#endif
RSAES<OAEP<SHA1> >::Encryptor x9(x2);
-
x4 = x2.GetKey();
+
+ RSASS<PKCS1v15, SHA3_256>::Verifier x10(1, 1);
+ RSASS<PKCS1v15, SHA3_256>::Signer x11(NullRNG(), 1);
+ RSASS<PKCS1v15, SHA3_256>::Verifier x12(x11);
+ RSASS<PKCS1v15, SHA3_256>::Verifier x13(x11.GetKey());
}
NAMESPACE_END
#endif