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,59 @@
// ---------------------------------------------------------------------------
// Name: actITokenBlockCipherKey.h
// Product: cv act library
// Purpose: The interface ITokenBlockCipherKey enables access to a key stored
// on a secure token.
//
// Copyright: (c) 2008 cv cryptovision GmbH
// all rights reserved
// Licence: The conditions for the use of this software are regulated
// in the cv act library licence agreement.
//
// Autor: Markus Tesche
// Date: 05/15/2008
// ---------------------------------------------------------------------------
#ifndef ACT_ITokenBlockCipherKey_h
#define ACT_ITokenBlockCipherKey_h
#include "actTokenBase.h"
#include "actIBlockCipherKey.h"
#include "actITokenAuthOwner.h"
#include "actITokenFileOwner.h"
#include "actITokenBlockCipher.h"
namespace act
{
class IToken;
class ITokenConfig;
//
// ITokenBlockCipherKey
class ITokenBlockCipherKey
: public IBlockCipherKey
, public ITokenAuthOwner
, public ITokenFileOwner
{
public:
virtual ITokenBlockCipherKey* Clone() const = 0;
virtual ITokenBlockCipher* GetCipher() = 0;
virtual const ITokenBlockCipher* GetCipher() const = 0;
virtual KeyType GetType() const = 0;
virtual IToken* GetToken() const = 0;
virtual const char* GetName() const = 0;
virtual void Configure(ITokenConfig* tkcfg) = 0;
virtual void SetRawKey(const Blob& raw_key) = 0;
virtual void GetRawKey(Blob& raw_key) const = 0;
virtual void SetMode(const char* modename) = 0;
virtual void SetPadding(const char* padname) = 0;
};
} // namespace act
#endif // ACT_ITokenBlockCipherKey_h