#include "factory.h" #include "modes.h" #include "dh.h" #include "esign.h" #include "md2.h" #include "trunhash.h" #include "rw.h" #include "md5.h" #include "rsa.h" #include "ripemd.h" #include "dsa.h" #include "seal.h" #include "whrlpool.h" #include "ttmac.h" #include "camellia.h" #include "shacal2.h" #include "tea.h" #include "panama.h" #include "pssr.h" USING_NAMESPACE(CryptoPP) void RegisterFactories() { static bool s_registered = false; if (s_registered) return; RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor(); #ifdef WORD64_AVAILABLE RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor(); #endif RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor(); RegisterDefaultFactoryFor >(); RegisterDefaultFactoryFor >(); RegisterAsymmetricCipherDefaultFactories > >("RSA/OAEP-MGF1(SHA-1)"); RegisterAsymmetricCipherDefaultFactories >("DLIES(NoCofactorMultiplication, KDF2(SHA-1), XOR, HMAC(SHA-1), DHAES)"); RegisterSignatureSchemeDefaultFactories("DSA(1363)"); RegisterSignatureSchemeDefaultFactories >("NR(1363)/EMSA1(SHA-1)"); RegisterSignatureSchemeDefaultFactories >("DSA-1363/EMSA1(SHA-1)"); RegisterSignatureSchemeDefaultFactories >("RSA/PKCS1-1.5(MD2)"); RegisterSignatureSchemeDefaultFactories >("RSA/PKCS1-1.5(SHA-1)"); RegisterSignatureSchemeDefaultFactories >("ESIGN/EMSA5-MGF1(SHA-1)"); RegisterSignatureSchemeDefaultFactories >("RW/EMSA2(SHA-1)"); RegisterSignatureSchemeDefaultFactories >("RSA/PSS-MGF1(SHA-1)"); RegisterSymmetricCipherDefaultFactories >(); RegisterSymmetricCipherDefaultFactories >(); #ifdef WORD64_AVAILABLE RegisterSymmetricCipherDefaultFactories >(); #endif RegisterSymmetricCipherDefaultFactories >(); RegisterSymmetricCipherDefaultFactories >(); RegisterSymmetricCipherDefaultFactories >(); RegisterSymmetricCipherDefaultFactories >(); s_registered = true; }