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

#include <tlsprf.hpp>

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

Public Member Functions

 CryptoTLSPRFInstance (const bool self_is_server)
 
void self_randomize (StrongRandomAPI &rng) override
 
void self_write (Buffer &buf) override
 
void peer_read (Buffer &buf) override
 
bool peer_read_complete (BufferComplete &bc) override
 
void erase () override
 
void generate_key_expansion (OpenVPNStaticKey &dest, const ProtoSessionID &psid_self, const ProtoSessionID &psid_peer) const 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

TLSPRF< CRYPTO_API > self
 
TLSPRF< CRYPTO_API > peer
 

Additional Inherited Members

- Public Types inherited from openvpn::TLSPRFInstance
typedef RCPtr< TLSPRFInstancePtr
 
- 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::CryptoTLSPRFInstance< CRYPTO_API >

Definition at line 258 of file tlsprf.hpp.

Constructor & Destructor Documentation

◆ CryptoTLSPRFInstance()

template<typename CRYPTO_API >
openvpn::CryptoTLSPRFInstance< CRYPTO_API >::CryptoTLSPRFInstance ( const bool  self_is_server)
inline

Definition at line 261 of file tlsprf.hpp.

Member Function Documentation

◆ erase()

template<typename CRYPTO_API >
void openvpn::CryptoTLSPRFInstance< CRYPTO_API >::erase ( )
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 287 of file tlsprf.hpp.

◆ generate_key_expansion()

template<typename CRYPTO_API >
void openvpn::CryptoTLSPRFInstance< CRYPTO_API >::generate_key_expansion ( OpenVPNStaticKey dest,
const ProtoSessionID psid_self,
const ProtoSessionID psid_peer 
) const
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 293 of file tlsprf.hpp.

◆ peer_read()

template<typename CRYPTO_API >
void openvpn::CryptoTLSPRFInstance< CRYPTO_API >::peer_read ( Buffer buf)
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 277 of file tlsprf.hpp.

◆ peer_read_complete()

template<typename CRYPTO_API >
bool openvpn::CryptoTLSPRFInstance< CRYPTO_API >::peer_read_complete ( BufferComplete bc)
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 282 of file tlsprf.hpp.

◆ self_randomize()

template<typename CRYPTO_API >
void openvpn::CryptoTLSPRFInstance< CRYPTO_API >::self_randomize ( StrongRandomAPI rng)
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 267 of file tlsprf.hpp.

◆ self_write()

template<typename CRYPTO_API >
void openvpn::CryptoTLSPRFInstance< CRYPTO_API >::self_write ( Buffer buf)
inlineoverridevirtual

Implements openvpn::TLSPRFInstance.

Definition at line 272 of file tlsprf.hpp.

Member Data Documentation

◆ peer

template<typename CRYPTO_API >
TLSPRF<CRYPTO_API> openvpn::CryptoTLSPRFInstance< CRYPTO_API >::peer
private

Definition at line 302 of file tlsprf.hpp.

◆ self

template<typename CRYPTO_API >
TLSPRF<CRYPTO_API> openvpn::CryptoTLSPRFInstance< CRYPTO_API >::self
private

Definition at line 301 of file tlsprf.hpp.


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