![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cCipherRotary.h>
Public Member Functions | |
cCipherRotary (bool bEncodeMode=true) | |
virtual | ~cCipherRotary () |
virtual HRESULT | SetCipherKey (const void *pKeyData=nullptr, size_t nKeySize=0) override |
virtual HRESULT | Cipher (BYTE *pOutput, const BYTE *pInput, size_t nSizeBytes) override |
UNITTEST_FRIEND (cCipherRotary) | |
![]() | |
cCipherBase (bool bEncodeMode=true, CIPHER_BLOCK_TYPE eBlockMode=CIPHER_BLOCK_UNK) noexcept | |
virtual | ~cCipherBase () |
void | put_EncodeMode (bool bEncodeMode) noexcept |
bool | get_EncodeMode () const noexcept |
void | put_BlockMode (CIPHER_BLOCK_TYPE eBlockMode) noexcept |
virtual size_t | get_BlockAlignSize () const override |
virtual HRESULT | CipherModeECB (BYTE *pOutput, const BYTE *pInput) |
virtual HRESULT | CipherModeCBC (BYTE *pOutput, const BYTE *pInput, size_t nSize, BYTE *pIV) |
virtual HRESULT | CipherModeCFB (BYTE *pOutput, const BYTE *pInput, size_t nSize, BYTE *pIV, size_t *pIVOffset) |
virtual HRESULT | CipherModeCTR (BYTE *pOutput, const BYTE *pInput, size_t nSize, BYTE *pNonceCounter, size_t *pNCOffset, BYTE *pStreamBlock) |
![]() | |
virtual | ~CObject () |
virtual bool | isValidCheck () const noexcept |
< memory allocation and structure definitions are valid. More... | |
virtual void | AssertValid () const |
< memory allocation and structure definitions are valid. More... | |
virtual void | Serialize (cArchive &a) |
Protected Member Functions | |
bool | isMasterKeySet () const |
bool | InitCryptMasterKey (UINT32 dwVersion, UINT32 dwKeyHi, UINT32 dwKeyLo) |
HRESULT | put_CipherKey (UINT32 uSeed) |
Additional Inherited Members | |
![]() | |
static size_t GRAYCALL | CopyFillX (void *pOutput, size_t nOutSize, const void *pInput, size_t nInputSize) |
![]() | |
bool | m_bEncodeMode |
We are in encode/encrypt mode vs decode/decrypt mode. More... | |
CIPHER_BLOCK_TYPE | m_eBlockMode |
Cipher block mode. How are sequences of blocks treated? More... | |
Simple rotary encrypt/decrypt interface. Fast and cheap. no BlockAlignSize.
GrayLib::cCipherRotary::cCipherRotary | ( | bool | bEncodeMode = true | ) |
|
virtual |
|
overridevirtual |
Symmetric cipher.
Reimplemented from GrayLib::cCipherBase.
|
protected |
|
inlineprotected |
|
protected |
Generate the decrypt key based on the uSeed/IP we get from the client.
|
overridevirtual |
Reimplemented from GrayLib::cCipherBase.
GrayLib::cCipherRotary::UNITTEST_FRIEND | ( | cCipherRotary | ) |