Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cCipherTypeDef Class Reference

#include <cCipherTypeDef.h>

Public Member Functions

 UNITTEST_FRIEND (cCipherTypeDef)
 

Static Public Member Functions

static const cCipherTypeDef *GRAYCALL GetCipherTypeDef (SSL_Cipher_TYPE eCipherType)
 

Public Attributes

CIPHER_BLOCK_TYPE m_eBlockMode
 Cipher mode (e.g. CIPHER_BLOCK_CBC) More...
 
CipherKeySize_TYPE m_nSizeKey
 
size_t m_nSizeIV
 IV/NONCE size, in bytes. For cipher that accept many sizes: recommended size. More...
 
CipherVariable_TYPE m_nVarFlags
 Flags for variable IV size, variable key size, etc. More...
 
size_t m_nBlockAlignSize
 block size, in bytes, size_t More...
 
CipherAlgorithm_TYPE m_eCipherAlgorithm
 Base cipher algorithm implementation for SSL_Cipher_TYPE. Indicates what cCipherBase to use. More...
 

Detailed Description

Metadata about cCipherBase. Allows SSL/TLS type cipher functions to be called in a generic way. e.g. SSL_Cipher_TYPE SSL_Cipher_AES_256_CBC

Member Function Documentation

◆ GetCipherTypeDef()

const cCipherTypeDef *GRAYCALL GrayLib::cCipherTypeDef::GetCipherTypeDef ( SSL_Cipher_TYPE  eCipherType)
static

Returns the cipher information structure associated with the given cipher type.

  • eCipherType = Type of the cipher to search for.
    Returns
    the cipher information structure associated with the given cipher_type, or nullptr if not found.

◆ UNITTEST_FRIEND()

GrayLib::cCipherTypeDef::UNITTEST_FRIEND ( cCipherTypeDef  )

Member Data Documentation

◆ m_eBlockMode

CIPHER_BLOCK_TYPE GrayLib::cCipherTypeDef::m_eBlockMode

Cipher mode (e.g. CIPHER_BLOCK_CBC)

◆ m_eCipherAlgorithm

CipherAlgorithm_TYPE GrayLib::cCipherTypeDef::m_eCipherAlgorithm

Base cipher algorithm implementation for SSL_Cipher_TYPE. Indicates what cCipherBase to use.

◆ m_nBlockAlignSize

size_t GrayLib::cCipherTypeDef::m_nBlockAlignSize

block size, in bytes, size_t

◆ m_nSizeIV

size_t GrayLib::cCipherTypeDef::m_nSizeIV

IV/NONCE size, in bytes. For cipher that accept many sizes: recommended size.

◆ m_nSizeKey

CipherKeySize_TYPE GrayLib::cCipherTypeDef::m_nSizeKey

Cipher key length, in bytes (default length for variable sized ciphers) (Includes parity bits for ciphers like DES)

◆ m_nVarFlags

CipherVariable_TYPE GrayLib::cCipherTypeDef::m_nVarFlags

Flags for variable IV size, variable key size, etc.

CipherVariable_IV_LEN | CipherVariable_KEY_LEN


The documentation for this class was generated from the following files: