28 #ifndef __CASYMCIPHEROFB__
29 #define __CASYMCIPHEROFB__
50 #ifdef INTEL_IPP_CRYPTO
52 ippsRijndael128GetSize(&size);
69 #ifndef ONLY_LOCAL_PROXY
72 #ifdef INTEL_IPP_CRYPTO
111 memcpy(
m_iv1,p_iv,16);
112 memcpy(
m_iv2,p_iv,16);
122 memcpy(
m_iv2,p_iv,16);
139 #ifdef INTEL_IPP_CRYPTO
SINT32 waitForDestroy()
If called checks if the reference counter equals zero.
This class could be used for encryption/decryption of data (streams) with AES using 128bit OFB mode.
SINT32 setIVs(const UINT8 *p_iv)
Sets iv1 and iv2 to p_iv.
static SINT32 testSpeed()
SINT32 setKeys(const UINT8 *key, UINT32 keysize)
Sets the keys for crypt1() and crypt2() either to the same key (if keysize==KEY_SIZE) or to different...
SINT32 setKey(const UINT8 *key)
Sets the keys for crypt1() and crypt2() to the same key.
SINT32 setIV2(const UINT8 *p_iv)
Sets iv2 to p_iv.
SINT32 crypt1(const UINT8 *in, UINT8 *out, UINT32 len)
Encryptes/Decrpytes in to out using iv1 and key1.
SINT32 crypt2(const UINT8 *in, UINT8 *out, UINT32 len)
Decryptes in to out using iv2 and key2.