OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::CryptoDCContext Class Referenceabstract

#include <cryptodc.hpp>

Inheritance diagram for openvpn::CryptoDCContext:
[legend]
Collaboration diagram for openvpn::CryptoDCContext:
[legend]

Public Types

typedef RCPtr< CryptoDCContextPtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 

Public Member Functions

 CryptoDCContext (const CryptoAlgs::KeyDerivation method)
 
virtual CryptoDCInstance::Ptr new_obj (const unsigned int key_id)=0
 
virtual CryptoDCSettingsData crypto_info ()=0
 
virtual size_t encap_overhead () const =0
 
- Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
 RC () noexcept=default
 
 RC (const RC &)=delete
 
virtual ~RC ()=default
 
RCoperator= (const RC &)=delete
 
olong use_count () const noexcept
 Delegates call to RCImpl and returns the result.
 

Protected Attributes

CryptoAlgs::KeyDerivation key_derivation = CryptoAlgs::KeyDerivation::OPENVPN_PRF
 

Additional Inherited Members

- Static Public Member Functions inherited from openvpn::RC< thread_unsafe_refcount >
static constexpr bool is_thread_safe ()
 Delegates call to RCImpl and returns the result.
 

Detailed Description

Definition at line 161 of file cryptodc.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 169 of file cryptodc.hpp.

Constructor & Destructor Documentation

◆ CryptoDCContext()

openvpn::CryptoDCContext::CryptoDCContext ( const CryptoAlgs::KeyDerivation  method)
inlineexplicit

Definition at line 164 of file cryptodc.hpp.

Member Function Documentation

◆ crypto_info()

virtual CryptoDCSettingsData openvpn::CryptoDCContext::crypto_info ( )
pure virtual

Implemented in openvpn::AEAD::CryptoContext< CRYPTO_API >, openvpn::AEADEpoch::CryptoContext< CRYPTO_API >, openvpn::CryptoContextCHM< CRYPTO_API >, and openvpn::KoRekey::Context.

Here is the caller graph for this function:

◆ encap_overhead()

virtual size_t openvpn::CryptoDCContext::encap_overhead ( ) const
pure virtual

Implemented in openvpn::AEAD::CryptoContext< CRYPTO_API >, openvpn::AEADEpoch::CryptoContext< CRYPTO_API >, openvpn::CryptoContextCHM< CRYPTO_API >, and openvpn::KoRekey::Context.

Here is the caller graph for this function:

◆ new_obj()

virtual CryptoDCInstance::Ptr openvpn::CryptoDCContext::new_obj ( const unsigned int  key_id)
pure virtual

Implemented in openvpn::AEAD::CryptoContext< CRYPTO_API >, openvpn::AEADEpoch::CryptoContext< CRYPTO_API >, openvpn::CryptoContextCHM< CRYPTO_API >, and openvpn::KoRekey::Context.

Here is the caller graph for this function:

Member Data Documentation

◆ key_derivation

CryptoAlgs::KeyDerivation openvpn::CryptoDCContext::key_derivation = CryptoAlgs::KeyDerivation::OPENVPN_PRF
protected

Definition at line 179 of file cryptodc.hpp.


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