28 #ifndef __CASYMCIPHERCTR__
29 #define __CASYMCIPHERCTR__
62 #ifndef ONLY_LOCAL_PROXY
93 memcpy(
m_iv1,p_iv,16);
94 memcpy(
m_iv2,p_iv,16);
106 memcpy(
m_iv2,p_iv,16);
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 CTR mode.
SINT32 setIVs(const UINT8 *p_iv)
Sets iv1 and iv2 to p_iv.
SINT32 crypt2(const UINT8 *in, UINT8 *out, UINT32 len)
Decryptes in to out using iv2 and key2.
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 crypt1(const UINT8 *in, UINT8 *out, UINT32 len)
Encryptes/Decrpytes in to out using iv1 and key1.
EVP_CIPHER_CTX * m_ctxAES2
SINT32 setIV2(const UINT8 *p_iv)
Sets iv2 to p_iv.
SINT32 setKey(const UINT8 *key)
Sets the keys for crypt1() and crypt2() to the same key.
EVP_CIPHER_CTX * m_ctxAES1