From a3e710fbd44ca8a0f4840b4e3366c6fc946ecfc5 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Thu, 27 Dec 2007 11:57:12 +0000 Subject: * cypher and auth-algo selectable via commandline * libgcrypt uses secure memory now * a few bugfixes --- cypherFactory.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'cypherFactory.h') diff --git a/cypherFactory.h b/cypherFactory.h index 3f44827..f245301 100644 --- a/cypherFactory.h +++ b/cypherFactory.h @@ -31,7 +31,6 @@ #ifndef _CYPHER_FACTORY_H_ #define _CYPHER_FACTORY_H_ -#include #include #include "datatypes.h" @@ -43,17 +42,7 @@ public: CypherFactory() {}; ~CypherFactory() {}; - Cypher* create(std::string const& type) - { - if( type == "null" ) - return new NullCypher(); - else if( type == "aes" ) - return new AesIcmCypher(); - else - throw std::invalid_argument("cypher not available"); - } - + Cypher* create(std::string const& type); }; - #endif -- cgit v1.2.3