aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-05 17:35:10 +0000
committerlloyd <[email protected]>2010-03-05 17:35:10 +0000
commitcdd1a1509ffc74c74bd902d55a7a85ab9e2afe78 (patch)
tree05f78baed62d78da63d5da4331d80d1909440702 /src/engine
parentdf8c46ffb5554d8804287b340e06f79fbafe8d1d (diff)
Add RSA encrypt/decrypt ops
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/def_engine/def_pk_ops.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/def_engine/def_pk_ops.cpp b/src/engine/def_engine/def_pk_ops.cpp
index e99908aa5..88880eea6 100644
--- a/src/engine/def_engine/def_pk_ops.cpp
+++ b/src/engine/def_engine/def_pk_ops.cpp
@@ -49,9 +49,9 @@ namespace Botan {
PK_Ops::Encryption*
Default_Engine::get_encryption_op(const Public_Key& key) const
{
-#if 0 && defined(BOTAN_HAS_RSA)
+#if defined(BOTAN_HAS_RSA)
if(const RSA_PublicKey* s = dynamic_cast<const RSA_PublicKey*>(&key))
- return new RSA_Encryption_Operation(*s);
+ return new RSA_Public_Operation(*s);
#endif
#if defined(BOTAN_HAS_ELGAMAL)
@@ -65,9 +65,9 @@ Default_Engine::get_encryption_op(const Public_Key& key) const
PK_Ops::Decryption*
Default_Engine::get_decryption_op(const Private_Key& key) const
{
-#if 0 && defined(BOTAN_HAS_RSA)
+#if defined(BOTAN_HAS_RSA)
if(const RSA_PrivateKey* s = dynamic_cast<const RSA_PrivateKey*>(&key))
- return new RSA_Decryption_Operation(*s);
+ return new RSA_Private_Operation(*s);
#endif
#if defined(BOTAN_HAS_ELGAMAL)
@@ -99,7 +99,7 @@ Default_Engine::get_signature_op(const Private_Key& key) const
{
#if defined(BOTAN_HAS_RSA)
if(const RSA_PrivateKey* s = dynamic_cast<const RSA_PrivateKey*>(&key))
- return new RSA_Signature_Operation(*s);
+ return new RSA_Private_Operation(*s);
#endif
#if defined(BOTAN_HAS_RW)
@@ -136,7 +136,7 @@ Default_Engine::get_verify_op(const Public_Key& key) const
{
#if defined(BOTAN_HAS_RSA)
if(const RSA_PublicKey* s = dynamic_cast<const RSA_PublicKey*>(&key))
- return new RSA_Verification_Operation(*s);
+ return new RSA_Public_Operation(*s);
#endif
#if defined(BOTAN_HAS_RW)