40 #ifndef __CAASYMCHANNELCIPHER__
41 #define __CAASYMCHANNELCIPHER__
112 #define CASymCipherMuxSocket CASymChannelCipher
SYMCHANNELCIPHER_ALGORITHM
const UINT8 *const SYMCHANNELCIPHER_ALG_NAME_OFB
const UINT8 *const SYMCHANNELCIPHER_ALG_NAME_NULL
const UINT8 *const SYMCHANNELCIPHER_ALG_NAME_CTR
#define INCLUDE_MIDDLE_MIX
From this class other classes could be derived, which need some kind from "locking" in memory.
virtual bool isKeyValid()=0
virtual SINT32 setKeys(const UINT8 *key, UINT32 keysize)=0
Sets the keys for crypt1() and crypt2() either to the same key (if keysize==KEY_SIZE) or to different...
static const UINT8 *const getAlgorithmName(SYMCHANNELCIPHER_ALGORITHM alg)
virtual SINT32 setIV2(const UINT8 *p_iv)=0
Sets iv2 to p_iv.
virtual SINT32 crypt2(const UINT8 *in, UINT8 *out, UINT32 len)=0
virtual SINT32 setKey(const UINT8 *key)=0
Sets the keys for crypt1() and crypt2() to the same key.
virtual SINT32 setIVs(const UINT8 *p_iv)=0
Sets iv1 and iv2 to p_iv.
virtual SINT32 crypt1(const UINT8 *in, UINT8 *out, UINT32 len)=0