![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cSSLMsg.h>
Public Member Functions | |
cSSLMsgHeader () noexcept | |
cSSLMsgHeader (SSL_MSG_TYPE eMsgType, SSL_VERSION_TYPE eVer, WORD wContLen) | |
bool | isValidMsgType () const noexcept |
SSL_MSG_TYPE | get_MsgType () const noexcept |
void | put_MsgType (SSL_MSG_TYPE eMsgType) |
bool | isValidVersion () const noexcept |
SSL_VERSION_TYPE | get_Version () const noexcept |
void | put_Version (SSL_VERSION_TYPE v) |
bool | isValidContLength () const noexcept |
WORD | get_ContLength () const noexcept |
void | put_ContLength (WORD nContLen) |
bool | isValid () const |
void | Set (SSL_MSG_TYPE eMsgType, SSL_VERSION_TYPE eVer, WORD wContLength) |
Public Attributes | |
BYTE | m_nMsgType |
SSL_MSG_TYPE. Message or content type. More... | |
BYTE | m_nVersion3 |
Major version is always 3. Anything but 3 is junk. SSL_VERSION_MAJOR_BYTE. More... | |
BYTE | m_nVersion |
Minor version byte from SSL_VERSION_TYPE. More... | |
BYTE | m_nContLengthH |
k_Content_Size_Max More... | |
BYTE | m_nContLengthL |
CONTENT/payload length of m_u to follow. network order = high,low order bytes. not include self. More... | |
Static Public Attributes | |
static const size_t | k_nSizePref = 3 |
just type and version. not length. More... | |
![]() | |
static const size_t | k_PSK_Size_Max = 32 |
256 bits More... | |
static const size_t | k_MAC_Size_Max = 48 |
16 to 48. SHA-384 used for HMAC. like k_HashSizeMax More... | |
static const size_t | k_Number_Size_Max = 1024 |
Max reasonable size of a big number used for crypt purposes. 8k bits. like cBigInteger::k_SIZE_MAX. More... | |
static const size_t | k_Content_Size_Max = 16384 |
Size of content. >= k_MaxFragLens[MAX]. More... | |
static const WORD | k_MaxFragLens [SSL_MAX_FRAG_LEN_QTY] |
Header for SSLv3/TLS. NOT SSLv2.
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
Decode data/payload length to host order. Does NOT include size of cSSLMsgHeader.
|
inlinenoexcept |
|
inlinenoexcept |
Get just the minor version number. thats all that matters. ASSUME m_nVersion3 = 3
|
inline |
Sanity check
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
just type and version. not length.
BYTE GrayLib::cSSLMsgHeader::m_nContLengthH |
k_Content_Size_Max
BYTE GrayLib::cSSLMsgHeader::m_nContLengthL |
CONTENT/payload length of m_u to follow. network order = high,low order bytes. not include self.
BYTE GrayLib::cSSLMsgHeader::m_nMsgType |
SSL_MSG_TYPE. Message or content type.
BYTE GrayLib::cSSLMsgHeader::m_nVersion |
Minor version byte from SSL_VERSION_TYPE.
BYTE GrayLib::cSSLMsgHeader::m_nVersion3 |
Major version is always 3. Anything but 3 is junk. SSL_VERSION_MAJOR_BYTE.