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

#include <static_key.hpp>

Collaboration diagram for openvpn::StaticKey:
[legend]

Public Member Functions

 StaticKey ()
 
 StaticKey (const unsigned char *key_data, const size_t key_size)
 
 StaticKey (const key_t &keydata)
 
size_t size () const
 
const unsigned char * data () const
 
void erase ()
 
std::string render_hex () const
 
void parse_from_base64 (const std::string &b64, const size_t capacity)
 
std::string render_to_base64 () const
 
void init_from_rng (StrongRandomAPI &rng, const size_t key_size)
 

Private Types

typedef BufferAllocated key_t
 

Private Attributes

key_t key_data_
 

Friends

class OpenVPNStaticKey
 

Detailed Description

Definition at line 30 of file static_key.hpp.

Member Typedef Documentation

◆ key_t

Definition at line 33 of file static_key.hpp.

Constructor & Destructor Documentation

◆ StaticKey() [1/3]

openvpn::StaticKey::StaticKey ( )
inline

Definition at line 36 of file static_key.hpp.

◆ StaticKey() [2/3]

openvpn::StaticKey::StaticKey ( const unsigned char *  key_data,
const size_t  key_size 
)
inline

Definition at line 39 of file static_key.hpp.

◆ StaticKey() [3/3]

openvpn::StaticKey::StaticKey ( const key_t keydata)
inline

Definition at line 44 of file static_key.hpp.

Member Function Documentation

◆ data()

const unsigned char * openvpn::StaticKey::data ( ) const
inline

Definition at line 54 of file static_key.hpp.

Here is the caller graph for this function:

◆ erase()

void openvpn::StaticKey::erase ( )
inline

Definition at line 58 of file static_key.hpp.

◆ init_from_rng()

void openvpn::StaticKey::init_from_rng ( StrongRandomAPI rng,
const size_t  key_size 
)
inline

Definition at line 79 of file static_key.hpp.

Here is the caller graph for this function:

◆ parse_from_base64()

void openvpn::StaticKey::parse_from_base64 ( const std::string &  b64,
const size_t  capacity 
)
inline

Definition at line 68 of file static_key.hpp.

Here is the caller graph for this function:

◆ render_hex()

std::string openvpn::StaticKey::render_hex ( ) const
inline

Definition at line 63 of file static_key.hpp.

Here is the caller graph for this function:

◆ render_to_base64()

std::string openvpn::StaticKey::render_to_base64 ( ) const
inline

Definition at line 74 of file static_key.hpp.

Here is the caller graph for this function:

◆ size()

size_t openvpn::StaticKey::size ( ) const
inline

Definition at line 50 of file static_key.hpp.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ OpenVPNStaticKey

friend class OpenVPNStaticKey
friend

Definition at line 32 of file static_key.hpp.

Member Data Documentation

◆ key_data_

key_t openvpn::StaticKey::key_data_
private

Definition at line 87 of file static_key.hpp.


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