store headers only once, refs #7

This commit is contained in:
Marc Wäckerlin
2010-10-29 10:54:12 +00:00
parent a0cd614bf3
commit 6846ed0daf
1026 changed files with 12807 additions and 99284 deletions

View File

@@ -0,0 +1,39 @@
//////////////////////////////////////////////////////////////////////////////////
// Name: actBlockCipherReg.h
// Product: cv act library
// Purpose: registry for factory functions in actBlockCipherKit.h
//
// Copyright: (c) 2000 cv cryptovision GmbH
// all rights reserved
// Licence: The conditions for the use of this software are regulated
// in the cv act library licence agreement.
//////////////////////////////////////////////////////////////////////////////////
#ifndef ACT_BlockCipherReg_h
#define ACT_BlockCipherReg_h
namespace act
{
class IBlockCipher;
typedef IBlockCipher* (*CreateBlockCipherPtr)();
struct BlockCipherMapEntry {
const char* Name;
CreateBlockCipherPtr CreatePtr;
};
class BlockCipherReg
{
public:
static IBlockCipher* CreateBlockCipher(const char* name);
static CreateBlockCipherPtr GetCreatePointer(const char* name);
static const char* GetName(void* createptr);
static const char* GetNextName(const char* name);
static void Insert(const char* name,CreateBlockCipherPtr createptr);
static void Insert(const BlockCipherMapEntry* map);
};
}
#endif