OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::CryptoOvpnHMACInstance< CRYPTO_API > Class Template Reference

#include <ovpnhmac.hpp>

Inheritance diagram for openvpn::CryptoOvpnHMACInstance< CRYPTO_API >:
[legend]
Collaboration diagram for openvpn::CryptoOvpnHMACInstance< CRYPTO_API >:
[legend]

Public Member Functions

 CryptoOvpnHMACInstance (const CryptoAlgs::Type digest_arg)
 
void init (const StaticKey &key) override
 
size_t output_size () const override
 
void ovpn_hmac_gen (unsigned char *data, const size_t data_size, const size_t l1, const size_t l2, const size_t l3) override
 
bool ovpn_hmac_cmp (const unsigned char *data, const size_t data_size, const size_t l1, const size_t l2, const size_t l3) override
 
- 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.
 

Private Attributes

CryptoAlgs::Type digest
 
OvpnHMAC< CRYPTO_API > ovpn_hmac
 

Additional Inherited Members

- Public Types inherited from openvpn::OvpnHMACInstance
typedef RCPtr< OvpnHMACInstancePtr
 
- Public Types inherited from openvpn::RC< thread_unsafe_refcount >
typedef RCPtr< RCPtr
 
- 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

template<typename CRYPTO_API>
class openvpn::CryptoOvpnHMACInstance< CRYPTO_API >

Definition at line 182 of file ovpnhmac.hpp.

Constructor & Destructor Documentation

◆ CryptoOvpnHMACInstance()

template<typename CRYPTO_API >
openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::CryptoOvpnHMACInstance ( const CryptoAlgs::Type  digest_arg)
inline

Definition at line 185 of file ovpnhmac.hpp.

Member Function Documentation

◆ init()

template<typename CRYPTO_API >
void openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::init ( const StaticKey key)
inlineoverridevirtual

Implements openvpn::OvpnHMACInstance.

Definition at line 190 of file ovpnhmac.hpp.

◆ output_size()

template<typename CRYPTO_API >
size_t openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::output_size ( ) const
inlineoverridevirtual

Implements openvpn::OvpnHMACInstance.

Definition at line 195 of file ovpnhmac.hpp.

◆ ovpn_hmac_cmp()

template<typename CRYPTO_API >
bool openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::ovpn_hmac_cmp ( const unsigned char *  data,
const size_t  data_size,
const size_t  l1,
const size_t  l2,
const size_t  l3 
)
inlineoverridevirtual

Implements openvpn::OvpnHMACInstance.

Definition at line 209 of file ovpnhmac.hpp.

◆ ovpn_hmac_gen()

template<typename CRYPTO_API >
void openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::ovpn_hmac_gen ( unsigned char *  data,
const size_t  data_size,
const size_t  l1,
const size_t  l2,
const size_t  l3 
)
inlineoverridevirtual

Implements openvpn::OvpnHMACInstance.

Definition at line 200 of file ovpnhmac.hpp.

Member Data Documentation

◆ digest

template<typename CRYPTO_API >
CryptoAlgs::Type openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::digest
private

Definition at line 219 of file ovpnhmac.hpp.

◆ ovpn_hmac

template<typename CRYPTO_API >
OvpnHMAC<CRYPTO_API> openvpn::CryptoOvpnHMACInstance< CRYPTO_API >::ovpn_hmac
private

Definition at line 220 of file ovpnhmac.hpp.


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