Mixe for Privacy and Anonymity in the Internet
|
This class implemtns the symmetric channel cipher interface - but does not do eny encryption!. More...
#include <CASymCipherNull.hpp>
Public Member Functions | |
CASymCipherNull () | |
~CASymCipherNull () | |
bool | isKeyValid () |
SINT32 | setKey (const UINT8 *key) |
Sets the keys for crypt1() and crypt2() to the same key. More... | |
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 values, if keysize==2* KEY_SIZE. More... | |
SINT32 | setIVs (const UINT8 *p_iv) |
Sets iv1 and iv2 to p_iv. More... | |
SINT32 | setIV2 (const UINT8 *p_iv) |
Sets iv2 to p_iv. More... | |
SINT32 | crypt1 (const UINT8 *in, UINT8 *out, UINT32 len) |
SINT32 | crypt2 (const UINT8 *in, UINT8 *out, UINT32 len) |
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... | |
Additional Inherited Members | |
Static Public Member Functions inherited from CASymChannelCipher | |
static const UINT8 *const | getAlgorithmName (SYMCHANNELCIPHER_ALGORITHM alg) |
Protected Member Functions inherited from CALockAble | |
SINT32 | waitForDestroy () |
If called checks if the reference counter equals zero. More... | |
This class implemtns the symmetric channel cipher interface - but does not do eny encryption!.
Definition at line 37 of file CASymCipherNull.hpp.
|
inline |
Definition at line 41 of file CASymCipherNull.hpp.
|
inline |
Definition at line 45 of file CASymCipherNull.hpp.
References CALockAble::waitForDestroy().
Implements CASymChannelCipher.
Definition at line 94 of file CASymCipherNull.hpp.
|
inlinevirtual |
Implements CASymChannelCipher.
Definition at line 51 of file CASymCipherNull.hpp.
Sets iv2 to p_iv.
p_iv | 16 random bytes used for new iv2. |
E_SUCCESS |
Implements CASymChannelCipher.
Definition at line 83 of file CASymCipherNull.hpp.
References E_SUCCESS.
Sets iv1 and iv2 to p_iv.
p_iv | 16 random bytes used for new iv1 and iv2. |
E_SUCCESS |
Implements CASymChannelCipher.
Definition at line 74 of file CASymCipherNull.hpp.
References E_SUCCESS.
Sets the keys for crypt1() and crypt2() to the same key.
Implements CASymChannelCipher.
Definition at line 57 of file CASymCipherNull.hpp.
References E_SUCCESS.
Sets the keys for crypt1() and crypt2() either to the same key (if keysize==KEY_SIZE) or to different values, if keysize==2* KEY_SIZE.
Implements CASymChannelCipher.
Definition at line 64 of file CASymCipherNull.hpp.
References E_SUCCESS.