OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TLSSessionTicketBase::Key Class Reference

#include <sess_ticket.hpp>

Public Member Functions

 Key (StrongRandomAPI &rng)
 
 Key (const std::string &cipher_key_b64, const std::string &hmac_key_b64)
 
 ~Key ()
 
std::string to_string () const
 
std::string cipher_b64 () const
 
std::string hmac_b64 () const
 
bool operator== (const Key &rhs) const
 
bool operator!= (const Key &rhs) const
 
template<typename KEY_TRANSFORM >
void key_transform (KEY_TRANSFORM &t)
 

Static Public Attributes

static constexpr size_t CIPHER_KEY_SIZE = 32
 
static constexpr size_t HMAC_KEY_SIZE = 16
 

Private Member Functions

 Key ()
 

Private Attributes

unsigned char cipher_value_ [CIPHER_KEY_SIZE]
 
unsigned char hmac_value_ [HMAC_KEY_SIZE]
 

Friends

class OpenSSLContext
 
class MbedTLSContext
 

Detailed Description

Definition at line 117 of file sess_ticket.hpp.

Constructor & Destructor Documentation

◆ Key() [1/3]

openvpn::TLSSessionTicketBase::Key::Key ( StrongRandomAPI rng)
inlineexplicit

Definition at line 123 of file sess_ticket.hpp.

◆ Key() [2/3]

openvpn::TLSSessionTicketBase::Key::Key ( const std::string &  cipher_key_b64,
const std::string &  hmac_key_b64 
)
inlineexplicit

Definition at line 129 of file sess_ticket.hpp.

◆ ~Key()

openvpn::TLSSessionTicketBase::Key::~Key ( )
inline

Definition at line 135 of file sess_ticket.hpp.

◆ Key() [3/3]

openvpn::TLSSessionTicketBase::Key::Key ( )
inlineprivate

Definition at line 198 of file sess_ticket.hpp.

Member Function Documentation

◆ cipher_b64()

std::string openvpn::TLSSessionTicketBase::Key::cipher_b64 ( ) const
inline

Definition at line 147 of file sess_ticket.hpp.

Here is the caller graph for this function:

◆ hmac_b64()

std::string openvpn::TLSSessionTicketBase::Key::hmac_b64 ( ) const
inline

Definition at line 152 of file sess_ticket.hpp.

Here is the caller graph for this function:

◆ key_transform()

template<typename KEY_TRANSFORM >
void openvpn::TLSSessionTicketBase::Key::key_transform ( KEY_TRANSFORM &  t)
inline

Definition at line 168 of file sess_ticket.hpp.

◆ operator!=()

bool openvpn::TLSSessionTicketBase::Key::operator!= ( const Key rhs) const
inline

Definition at line 162 of file sess_ticket.hpp.

◆ operator==()

bool openvpn::TLSSessionTicketBase::Key::operator== ( const Key rhs) const
inline

Definition at line 157 of file sess_ticket.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::TLSSessionTicketBase::Key::to_string ( ) const
inline

Definition at line 142 of file sess_ticket.hpp.

Friends And Related Symbol Documentation

◆ MbedTLSContext

friend class MbedTLSContext
friend

Definition at line 196 of file sess_ticket.hpp.

◆ OpenSSLContext

friend class OpenSSLContext
friend

Definition at line 195 of file sess_ticket.hpp.

Member Data Documentation

◆ CIPHER_KEY_SIZE

constexpr size_t openvpn::TLSSessionTicketBase::Key::CIPHER_KEY_SIZE = 32
staticconstexpr

Definition at line 120 of file sess_ticket.hpp.

◆ cipher_value_

unsigned char openvpn::TLSSessionTicketBase::Key::cipher_value_[CIPHER_KEY_SIZE]
private

Definition at line 202 of file sess_ticket.hpp.

◆ HMAC_KEY_SIZE

constexpr size_t openvpn::TLSSessionTicketBase::Key::HMAC_KEY_SIZE = 16
staticconstexpr

Definition at line 121 of file sess_ticket.hpp.

◆ hmac_value_

unsigned char openvpn::TLSSessionTicketBase::Key::hmac_value_[HMAC_KEY_SIZE]
private

Definition at line 203 of file sess_ticket.hpp.


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