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

#include <tls_crypt.hpp>

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

Public Types

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

Public Member Functions

virtual void init (SSLLib::Ctx libctx, const StaticKey &key_hmac, const StaticKey &key_crypt)=0
 
virtual size_t output_hmac_size () const =0
 
virtual bool hmac_gen (unsigned char *header, const size_t header_len, const unsigned char *payload, const size_t payload_len)=0
 
virtual bool hmac_cmp (const unsigned char *header, const size_t header_len, const unsigned char *payload, const size_t payload_len)=0
 
virtual size_t encrypt (const unsigned char *iv, unsigned char *out, const size_t olen, const unsigned char *in, const size_t ilen)=0
 
virtual size_t decrypt (const unsigned char *iv, unsigned char *out, const size_t olen, const unsigned char *in, const size_t ilen)=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.
 

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 146 of file tls_crypt.hpp.

Member Typedef Documentation

◆ Ptr

Member Function Documentation

◆ decrypt()

virtual size_t openvpn::TLSCryptInstance::decrypt ( const unsigned char *  iv,
unsigned char *  out,
const size_t  olen,
const unsigned char *  in,
const size_t  ilen 
)
pure virtual

Implemented in openvpn::CryptoTLSCryptInstance< CRYPTO_API >.

Here is the caller graph for this function:

◆ encrypt()

virtual size_t openvpn::TLSCryptInstance::encrypt ( const unsigned char *  iv,
unsigned char *  out,
const size_t  olen,
const unsigned char *  in,
const size_t  ilen 
)
pure virtual

Implemented in openvpn::CryptoTLSCryptInstance< CRYPTO_API >.

Here is the caller graph for this function:

◆ hmac_cmp()

virtual bool openvpn::TLSCryptInstance::hmac_cmp ( const unsigned char *  header,
const size_t  header_len,
const unsigned char *  payload,
const size_t  payload_len 
)
pure virtual

Implemented in openvpn::CryptoTLSCryptInstance< CRYPTO_API >.

Here is the caller graph for this function:

◆ hmac_gen()

virtual bool openvpn::TLSCryptInstance::hmac_gen ( unsigned char *  header,
const size_t  header_len,
const unsigned char *  payload,
const size_t  payload_len 
)
pure virtual

Implemented in openvpn::CryptoTLSCryptInstance< CRYPTO_API >.

Here is the caller graph for this function:

◆ init()

virtual void openvpn::TLSCryptInstance::init ( SSLLib::Ctx  libctx,
const StaticKey key_hmac,
const StaticKey key_crypt 
)
pure virtual

Implemented in openvpn::CryptoTLSCryptInstance< CRYPTO_API >.

Here is the caller graph for this function:

◆ output_hmac_size()

virtual size_t openvpn::TLSCryptInstance::output_hmac_size ( ) const
pure virtual

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