OpenVPN 3 Core Library
|
#include <korekey.hpp>
Public Member Functions | |
Instance (const Receiver::Ptr &rcv_arg, const CryptoDCContext::Ptr &dc_context_delegate, const unsigned int key_id, const Frame::Ptr &frame) | |
unsigned int | defined () const override |
void | init_cipher (StaticKey &&encrypt_key, StaticKey &&decrypt_key) override |
void | init_hmac (StaticKey &&encrypt_key, StaticKey &&decrypt_key) override |
void | init_pid (const char *recv_name, const int recv_unit, const SessionStats::Ptr &recv_stats_arg) override |
void | init_remote_peer_id (const int remote_peer_id) override |
bool | consider_compression (const CompressContext &comp_ctx) override |
void | rekey (const RekeyType type) override |
void | explicit_exit_notify () override |
bool | encrypt (BufferAllocated &buf, const unsigned char *op32) override |
Error::Type | decrypt (BufferAllocated &buf, const std::time_t now, const unsigned char *op32) override |
![]() | |
RC () noexcept=default | |
RC (const RC &)=delete | |
virtual | ~RC ()=default |
RC & | operator= (const RC &)=delete |
olong | use_count () const noexcept |
Delegates call to RCImpl and returns the result. | |
Private Attributes | |
Receiver::Ptr | rcv |
Info | info |
Additional Inherited Members | |
![]() | |
enum | { CIPHER_DEFINED = (1 << 0) , HMAC_DEFINED = (1 << 1) , CRYPTO_DEFINED = (1 << 2) , EXPLICIT_EXIT_NOTIFY_DEFINED = (1 << 3) } |
enum | RekeyType { ACTIVATE_PRIMARY , ACTIVATE_PRIMARY_MOVE , NEW_SECONDARY , PRIMARY_SECONDARY_SWAP , DEACTIVATE_SECONDARY , DEACTIVATE_ALL } |
typedef RCPtr< CryptoDCInstance > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 34 of file korekey.hpp.
|
inline |
Definition at line 37 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 78 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 105 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 48 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 100 of file korekey.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::CryptoDCInstance.
Definition at line 91 of file korekey.hpp.
|
inlineoverridevirtual |
Initialised the encryption/decryption cipher of the classs. Note that this is and init_hmac need to typically called before encrypt/decrypt can be called.
Implements openvpn::CryptoDCInstance.
Definition at line 53 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 60 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 67 of file korekey.hpp.
|
inlineoverridevirtual |
Reimplemented from openvpn::CryptoDCInstance.
Definition at line 73 of file korekey.hpp.
|
inlineoverridevirtual |
Implements openvpn::CryptoDCInstance.
Definition at line 86 of file korekey.hpp.
|
private |
Definition at line 113 of file korekey.hpp.
|
private |
Definition at line 112 of file korekey.hpp.