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

#include <tls_crypt_v2.hpp>

Collaboration diagram for openvpn::TLSCryptV2ClientKey:
[legend]

Public Types

enum  { WKC_MAX_SIZE = 1024 }
 

Public Member Functions

 OPENVPN_SIMPLE_EXCEPTION (tls_crypt_v2_client_key_parse_error)
 
 OPENVPN_SIMPLE_EXCEPTION (tls_crypt_v2_client_key_encode_error)
 
 OPENVPN_SIMPLE_EXCEPTION (tls_crypt_v2_client_key_bad_size)
 
 TLSCryptV2ClientKey ()=delete
 
 TLSCryptV2ClientKey (TLSCryptContext::Ptr context)
 
bool defined () const
 
void parse (const std::string &key_text)
 
void extract_key (OpenVPNStaticKey &tls_key)
 
std::string render () const
 
void extract_wkc (BufferAllocated &wkc_out) const
 

Private Attributes

BufferAllocated key
 
BufferAllocated wkc
 
const size_t key_size
 
const size_t tag_size
 

Detailed Description

Definition at line 87 of file tls_crypt_v2.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
WKC_MAX_SIZE 

Definition at line 90 of file tls_crypt_v2.hpp.

Constructor & Destructor Documentation

◆ TLSCryptV2ClientKey() [1/2]

openvpn::TLSCryptV2ClientKey::TLSCryptV2ClientKey ( )
delete

◆ TLSCryptV2ClientKey() [2/2]

openvpn::TLSCryptV2ClientKey::TLSCryptV2ClientKey ( TLSCryptContext::Ptr  context)
inline

Definition at line 101 of file tls_crypt_v2.hpp.

Member Function Documentation

◆ defined()

bool openvpn::TLSCryptV2ClientKey::defined ( ) const
inline

Definition at line 107 of file tls_crypt_v2.hpp.

◆ extract_key()

void openvpn::TLSCryptV2ClientKey::extract_key ( OpenVPNStaticKey tls_key)
inline

Definition at line 126 of file tls_crypt_v2.hpp.

Here is the caller graph for this function:

◆ extract_wkc()

void openvpn::TLSCryptV2ClientKey::extract_wkc ( BufferAllocated wkc_out) const
inline

Definition at line 143 of file tls_crypt_v2.hpp.

Here is the caller graph for this function:

◆ OPENVPN_SIMPLE_EXCEPTION() [1/3]

openvpn::TLSCryptV2ClientKey::OPENVPN_SIMPLE_EXCEPTION ( tls_crypt_v2_client_key_bad_size  )

◆ OPENVPN_SIMPLE_EXCEPTION() [2/3]

openvpn::TLSCryptV2ClientKey::OPENVPN_SIMPLE_EXCEPTION ( tls_crypt_v2_client_key_encode_error  )

◆ OPENVPN_SIMPLE_EXCEPTION() [3/3]

openvpn::TLSCryptV2ClientKey::OPENVPN_SIMPLE_EXCEPTION ( tls_crypt_v2_client_key_parse_error  )

◆ parse()

void openvpn::TLSCryptV2ClientKey::parse ( const std::string &  key_text)
inline

Definition at line 112 of file tls_crypt_v2.hpp.

Here is the caller graph for this function:

◆ render()

std::string openvpn::TLSCryptV2ClientKey::render ( ) const
inline

Definition at line 131 of file tls_crypt_v2.hpp.

Member Data Documentation

◆ key

BufferAllocated openvpn::TLSCryptV2ClientKey::key
private

Definition at line 149 of file tls_crypt_v2.hpp.

◆ key_size

const size_t openvpn::TLSCryptV2ClientKey::key_size
private

Definition at line 152 of file tls_crypt_v2.hpp.

◆ tag_size

const size_t openvpn::TLSCryptV2ClientKey::tag_size
private

Definition at line 153 of file tls_crypt_v2.hpp.

◆ wkc

BufferAllocated openvpn::TLSCryptV2ClientKey::wkc
private

Definition at line 150 of file tls_crypt_v2.hpp.


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