Mixe for Privacy and Anonymity in the Internet
|
This class could be used for encryption/decryption of data (streams) with AES using 128bit GCM mode. More...
#include <CASymCipherGCM.hpp>
Public Member Functions | |
CASymCipherGCM () | |
~CASymCipherGCM () | |
bool | isKeyValid () |
void | setGCMKeys (UINT8 *keyRecv, UINT8 *keySend) |
SINT32 | encryptMessage (const UINT8 *in, UINT32 inlen, UINT8 *out) |
SINT32 | decryptMessage (const UINT8 *in, UINT32 inlen, UINT8 *out, bool integrityCheck) |
Public Member Functions inherited from CALockAble | |
CALockAble () | |
virtual | ~CALockAble () |
SINT32 | lock () |
Locks the lockable object by threadsafe incrementing a reference counter. More... | |
SINT32 | unlock () |
Unlocks the lockable object by threadsafe decrementing a reference counter. More... | |
Protected Attributes | |
bool | m_bKeySet |
Private Attributes | |
CAMutex * | m_pcsEnc |
CAMutex * | m_pcsDec |
gcm_ctx_64k * | m_pGCMCtxEnc |
gcm_ctx_64k * | m_pGCMCtxDec |
UINT32 | m_nEncMsgCounter |
UINT32 * | m_pEncMsgIV |
UINT32 | m_nDecMsgCounter |
UINT32 * | m_pDecMsgIV |
Additional Inherited Members | |
Protected Member Functions inherited from CALockAble | |
SINT32 | waitForDestroy () |
If called checks if the reference counter equals zero. More... | |
This class could be used for encryption/decryption of data (streams) with AES using 128bit GCM mode.
Definition at line 38 of file CASymCipherGCM.hpp.
|
inline |
Definition at line 44 of file CASymCipherGCM.hpp.
References m_bKeySet, m_nDecMsgCounter, m_nEncMsgCounter, m_pcsDec, m_pcsEnc, m_pDecMsgIV, m_pEncMsgIV, m_pGCMCtxDec, and m_pGCMCtxEnc.
|
inline |
Definition at line 63 of file CASymCipherGCM.hpp.
References m_pcsDec, m_pcsEnc, m_pDecMsgIV, m_pEncMsgIV, m_pGCMCtxDec, m_pGCMCtxEnc, and CALockAble::waitForDestroy().
|
inline |
Definition at line 156 of file CASymCipherGCM.hpp.
References E_SUCCESS, E_UNKNOWN, m_nDecMsgCounter, m_pDecMsgIV, and m_pGCMCtxDec.
Referenced by CALastMixA::loop().
Definition at line 136 of file CASymCipherGCM.hpp.
References E_SUCCESS, m_nEncMsgCounter, m_pEncMsgIV, and m_pGCMCtxEnc.
Referenced by CALastMixA::loop().
|
inline |
Definition at line 90 of file CASymCipherGCM.hpp.
References m_bKeySet.
Definition at line 95 of file CASymCipherGCM.hpp.
References m_nDecMsgCounter, m_nEncMsgCounter, m_pDecMsgIV, m_pEncMsgIV, m_pGCMCtxDec, and m_pGCMCtxEnc.
Referenced by CALastMixA::loop().
|
protected |
Definition at line 214 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), and isKeyValid().
|
private |
Definition at line 210 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), decryptMessage(), and setGCMKeys().
|
private |
Definition at line 208 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), encryptMessage(), and setGCMKeys().
|
private |
Definition at line 200 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), and ~CASymCipherGCM().
|
private |
Definition at line 199 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), and ~CASymCipherGCM().
|
private |
Definition at line 211 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), decryptMessage(), setGCMKeys(), and ~CASymCipherGCM().
|
private |
Definition at line 209 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), encryptMessage(), setGCMKeys(), and ~CASymCipherGCM().
|
private |
Definition at line 203 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), decryptMessage(), setGCMKeys(), and ~CASymCipherGCM().
|
private |
Definition at line 202 of file CASymCipherGCM.hpp.
Referenced by CASymCipherGCM(), encryptMessage(), setGCMKeys(), and ~CASymCipherGCM().