OpenVPN 3 Core Library
|
#include <tlsprf.hpp>
Public Types | |
enum | { SIZE_OF_RANDOM = 32 } |
Public Member Functions | |
OPENVPN_SIMPLE_EXCEPTION (tlsprf_uninitialized) | |
OPENVPN_SIMPLE_EXCEPTION (tlsprf_client_server_mismatch) | |
OPENVPN_SIMPLE_EXCEPTION (tlsprf_tlsprf_failed) | |
TLSPRF (const bool server) | |
void | randomize (StrongRandomAPI &rng) |
void | read (Buffer &buf) |
bool | read_complete (BufferComplete &bc) |
void | write (Buffer &buf) |
void | generate_key_expansion (OpenVPNStaticKey &dest, const TLSPRF &peer, const ProtoSessionID &psid_self, const ProtoSessionID &psid_peer) const |
void | erase () |
std::string | dump (const char *title) |
~TLSPRF () | |
Static Public Member Functions | |
static void | openvpn_PRF (const unsigned char *secret, const size_t secret_len, const char *label, const unsigned char *client_seed, const size_t client_seed_len, const unsigned char *server_seed, const size_t server_seed_len, const ProtoSessionID *client_sid, const ProtoSessionID *server_sid, unsigned char *output, const size_t output_len) |
Private Member Functions | |
void | verify_initialized () const |
Static Private Member Functions | |
static void | gen_exp (OpenVPNStaticKey &dest, const TLSPRF &client, const ProtoSessionID &psid_client, const TLSPRF &server, const ProtoSessionID &psid_server) |
Private Attributes | |
bool | initialized_ |
bool | server_ |
unsigned char | pre_master [48] |
unsigned char | random1 [SIZE_OF_RANDOM] |
unsigned char | random2 [SIZE_OF_RANDOM] |
Definition at line 37 of file tlsprf.hpp.
anonymous enum |
Enumerator | |
---|---|
SIZE_OF_RANDOM |
Definition at line 43 of file tlsprf.hpp.
|
inline |
Definition at line 48 of file tlsprf.hpp.
|
inline |
Definition at line 124 of file tlsprf.hpp.
|
inline |
Definition at line 115 of file tlsprf.hpp.
|
inline |
|
inlinestaticprivate |
|
inline |
Definition at line 90 of file tlsprf.hpp.
|
inlinestatic |
openvpn::TLSPRF< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | tlsprf_client_server_mismatch | ) |
openvpn::TLSPRF< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | tlsprf_tlsprf_failed | ) |
openvpn::TLSPRF< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | tlsprf_uninitialized | ) |
|
inline |
Definition at line 53 of file tlsprf.hpp.
|
inline |
Definition at line 62 of file tlsprf.hpp.
|
inline |
Definition at line 71 of file tlsprf.hpp.
|
inlineprivate |
|
inline |
Definition at line 81 of file tlsprf.hpp.
|
private |
Definition at line 220 of file tlsprf.hpp.
|
private |
Definition at line 222 of file tlsprf.hpp.
|
private |
Definition at line 223 of file tlsprf.hpp.
|
private |
Definition at line 224 of file tlsprf.hpp.
|
private |
Definition at line 221 of file tlsprf.hpp.