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

#include <cryptoalgs.hpp>

Public Member Functions

constexpr Alg (const char *name, const unsigned int flags, const Mode mode, const unsigned int size, const unsigned int iv_length, const unsigned int block_size, uint64_t aead_usage_limit)
 
const char * name () const
 
unsigned int flags () const
 
Mode mode () const
 
size_t size () const
 
size_t key_length () const
 
size_t iv_length () const
 
size_t block_size () const
 
bool dc_cipher () const
 
bool dc_digest () const
 
void allow_dc (bool allow)
 
uint64_t aead_usage_limit () const
 

Private Attributes

const char * name_
 
unsigned int flags_
 
Mode mode_
 
unsigned int size_
 
unsigned int iv_length_
 
unsigned int block_size_
 
uint64_t aead_usage_limit_
 

Detailed Description

Definition at line 109 of file cryptoalgs.hpp.

Constructor & Destructor Documentation

◆ Alg()

constexpr openvpn::CryptoAlgs::Alg::Alg ( const char *  name,
const unsigned int  flags,
const Mode  mode,
const unsigned int  size,
const unsigned int  iv_length,
const unsigned int  block_size,
uint64_t  aead_usage_limit 
)
inlineconstexpr

Definition at line 112 of file cryptoalgs.hpp.

Member Function Documentation

◆ aead_usage_limit()

uint64_t openvpn::CryptoAlgs::Alg::aead_usage_limit ( ) const
inline

Returns the number q + s of total invocations + plain text blocks that should not be exceeded

Definition at line 177 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ allow_dc()

void openvpn::CryptoAlgs::Alg::allow_dc ( bool  allow)
inline

Definition at line 167 of file cryptoalgs.hpp.

◆ block_size()

size_t openvpn::CryptoAlgs::Alg::block_size ( ) const
inline

Definition at line 154 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ dc_cipher()

bool openvpn::CryptoAlgs::Alg::dc_cipher ( ) const
inline

Definition at line 158 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ dc_digest()

bool openvpn::CryptoAlgs::Alg::dc_digest ( ) const
inline

Definition at line 162 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ flags()

unsigned int openvpn::CryptoAlgs::Alg::flags ( ) const
inline

Definition at line 134 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ iv_length()

size_t openvpn::CryptoAlgs::Alg::iv_length ( ) const
inline

Definition at line 150 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ key_length()

size_t openvpn::CryptoAlgs::Alg::key_length ( ) const
inline

Definition at line 146 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ mode()

Mode openvpn::CryptoAlgs::Alg::mode ( ) const
inline

Definition at line 138 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ name()

const char * openvpn::CryptoAlgs::Alg::name ( ) const
inline

Definition at line 130 of file cryptoalgs.hpp.

Here is the caller graph for this function:

◆ size()

size_t openvpn::CryptoAlgs::Alg::size ( ) const
inline

Definition at line 142 of file cryptoalgs.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ aead_usage_limit_

uint64_t openvpn::CryptoAlgs::Alg::aead_usage_limit_
private

Definition at line 189 of file cryptoalgs.hpp.

◆ block_size_

unsigned int openvpn::CryptoAlgs::Alg::block_size_
private

Definition at line 188 of file cryptoalgs.hpp.

◆ flags_

unsigned int openvpn::CryptoAlgs::Alg::flags_
private

Definition at line 184 of file cryptoalgs.hpp.

◆ iv_length_

unsigned int openvpn::CryptoAlgs::Alg::iv_length_
private

Definition at line 187 of file cryptoalgs.hpp.

◆ mode_

Mode openvpn::CryptoAlgs::Alg::mode_
private

Definition at line 185 of file cryptoalgs.hpp.

◆ name_

const char* openvpn::CryptoAlgs::Alg::name_
private

Definition at line 183 of file cryptoalgs.hpp.

◆ size_

unsigned int openvpn::CryptoAlgs::Alg::size_
private

Definition at line 186 of file cryptoalgs.hpp.


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