summaryrefslogtreecommitdiff
path: root/factory.h
diff options
context:
space:
mode:
Diffstat (limited to 'factory.h')
-rw-r--r--factory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/factory.h b/factory.h
index 482057d..ef5a59e 100644
--- a/factory.h
+++ b/factory.h
@@ -123,6 +123,13 @@ void RegisterSymmetricCipherDefaultFactories(const char *name=NULL, SchemeClass
RegisterDefaultFactoryFor<SymmetricCipher, CPP_TYPENAME SchemeClass::Decryption, DECRYPTION>((const char *)name);
}
+template <class SchemeClass>
+void RegisterAuthenticatedSymmetricCipherDefaultFactories(const char *name=NULL, SchemeClass *dummy=NULL)
+{
+ RegisterDefaultFactoryFor<AuthenticatedSymmetricCipher, CPP_TYPENAME SchemeClass::Encryption, ENCRYPTION>((const char *)name);
+ RegisterDefaultFactoryFor<AuthenticatedSymmetricCipher, CPP_TYPENAME SchemeClass::Decryption, DECRYPTION>((const char *)name);
+}
+
NAMESPACE_END
#endif