OpenVPN 3 Core Library
Loading...
Searching...
No Matches
DataChannelEpochTest Class Reference
Inheritance diagram for DataChannelEpochTest:
[legend]
Collaboration diagram for DataChannelEpochTest:
[legend]

Public Member Functions

 DataChannelEpochTest (decltype(cipher) cipher, openvpn::StaticKey e1send, openvpn::StaticKey e1recv, uint16_t future_key_count=16)
 
 DataChannelEpochTest ()=default
 
openvpn::EpochDataChannelCryptoContextget_future_key (decltype(future_keys)::size_type i)
 
void iterate_send_key ()
 
openvpn::EpochKeyrecv_ ()
 
openvpn::EpochKeysend_ ()
 
openvpn::EpochDataChannelCryptoContextrecv_ctx_ ()
 
openvpn::EpochDataChannelCryptoContextsend_ctx_ ()
 
openvpn::EpochDataChannelCryptoContextretire_ ()
 
- Public Member Functions inherited from openvpn::DataChannelEpoch
void iterate_send_key ()
 
uint16_t get_future_keys_count ()
 
bool should_renegotiate ()
 
 DataChannelEpoch ()=default
 
 DataChannelEpoch (decltype(cipher) cipher, openvpn::StaticKey e1send, openvpn::StaticKey e1recv, SSLLib::Ctx libctx=nullptr, uint16_t future_key_count=16)
 
void replace_update_recv_key (std::uint16_t new_epoch, const SessionStats::Ptr &stats_arg)
 
void check_send_iterate ()
 
EpochDataChannelDecryptContextlookup_decrypt_key (uint16_t epoch)
 
EpochDataChannelEncryptContextencrypt ()
 

Additional Inherited Members

- Protected Member Functions inherited from openvpn::DataChannelEpoch
void generate_future_receive_keys ()
 
void generate_encrypt_ctx ()
 
- Protected Attributes inherited from openvpn::DataChannelEpoch
openvpn::CryptoAlgs::Type cipher
 
SSLLib::Ctx libctx
 
uint16_t future_keys_count
 
EpochDataChannelEncryptContext encrypt_ctx {}
 
EpochDataChannelDecryptContext decrypt_ctx {}
 
EpochDataChannelDecryptContext retiring_decrypt_ctx {}
 
std::vector< EpochDataChannelDecryptContextfuture_keys
 
EpochKey send {}
 
EpochKey receive {}
 

Detailed Description

class for unit test that exposes some of the internals for easier testing if internal are correct

Definition at line 488 of file test_crypto.cpp.

Constructor & Destructor Documentation

◆ DataChannelEpochTest() [1/2]

DataChannelEpochTest::DataChannelEpochTest ( decltype(cipher cipher,
openvpn::StaticKey  e1send,
openvpn::StaticKey  e1recv,
uint16_t  future_key_count = 16 
)
inline

Definition at line 491 of file test_crypto.cpp.

◆ DataChannelEpochTest() [2/2]

DataChannelEpochTest::DataChannelEpochTest ( )
default

Member Function Documentation

◆ get_future_key()

openvpn::EpochDataChannelCryptoContext & DataChannelEpochTest::get_future_key ( decltype(future_keys)::size_type  i)
inline

Definition at line 497 of file test_crypto.cpp.

◆ iterate_send_key()

void DataChannelEpochTest::iterate_send_key ( )
inline

Definition at line 502 of file test_crypto.cpp.

◆ recv_()

openvpn::EpochKey & DataChannelEpochTest::recv_ ( )
inline

Definition at line 508 of file test_crypto.cpp.

◆ recv_ctx_()

openvpn::EpochDataChannelCryptoContext & DataChannelEpochTest::recv_ctx_ ( )
inline

Definition at line 511 of file test_crypto.cpp.

◆ retire_()

openvpn::EpochDataChannelCryptoContext & DataChannelEpochTest::retire_ ( )
inline

Definition at line 515 of file test_crypto.cpp.

◆ send_()

openvpn::EpochKey & DataChannelEpochTest::send_ ( )
inline

Definition at line 509 of file test_crypto.cpp.

◆ send_ctx_()

openvpn::EpochDataChannelCryptoContext & DataChannelEpochTest::send_ctx_ ( )
inline

Definition at line 512 of file test_crypto.cpp.


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