OpenVPN 3 Core Library
|
#include <tls_crypt.hpp>
Public Member Functions | |
OPENVPN_SIMPLE_EXCEPTION (ovpn_tls_crypt_context_digest_size) | |
OPENVPN_SIMPLE_EXCEPTION (ovpn_tls_crypt_context_bad_sizing) | |
OPENVPN_SIMPLE_EXCEPTION (ovpn_tls_crypt_wrong_mode) | |
TLSCrypt () | |
TLSCrypt (SSLLib::Ctx libctx, const CryptoAlgs::Type digest, const StaticKey &key_hmac, const CryptoAlgs::Type cipher, const StaticKey &key_crypt, const int mode) | |
bool | defined () const |
size_t | output_hmac_size () const |
void | init (SSLLib::Ctx libctx, const CryptoAlgs::Type digest, const StaticKey &key_hmac, const CryptoAlgs::Type cipher, const StaticKey &key_crypt, const int mode_arg) |
bool | hmac_gen (unsigned char *header, const size_t header_len, const unsigned char *payload, const size_t payload_len) |
bool | hmac_cmp (const unsigned char *header, const size_t header_len, const unsigned char *payload, const size_t payload_len) |
size_t | encrypt (const unsigned char *iv, unsigned char *out, const size_t olen, const unsigned char *in, const size_t ilen) |
size_t | decrypt (const unsigned char *iv, unsigned char *out, const size_t olen, const unsigned char *in, const size_t ilen) |
Private Member Functions | |
void | hmac_pre (const unsigned char *header, const size_t header_len, const unsigned char *payload, const size_t payload_len) |
size_t | encrypt_decrypt (const unsigned char *iv, unsigned char *out, const size_t olen, const unsigned char *in, const size_t ilen) |
Private Attributes | |
CRYPTO_API::HMACContext | ctx_hmac |
CRYPTO_API::CipherContext | ctx_crypt |
int | mode |
Definition at line 36 of file tls_crypt.hpp.
|
inline |
Definition at line 43 of file tls_crypt.hpp.
|
inline |
Definition at line 48 of file tls_crypt.hpp.
|
inline |
Definition at line 107 of file tls_crypt.hpp.
|
inline |
Definition at line 53 of file tls_crypt.hpp.
|
inline |
Definition at line 99 of file tls_crypt.hpp.
|
inlineprivate |
|
inline |
Definition at line 89 of file tls_crypt.hpp.
|
inline |
Definition at line 81 of file tls_crypt.hpp.
|
inlineprivate |
|
inline |
openvpn::TLSCrypt< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | ovpn_tls_crypt_context_bad_sizing | ) |
openvpn::TLSCrypt< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | ovpn_tls_crypt_context_digest_size | ) |
openvpn::TLSCrypt< CRYPTO_API >::OPENVPN_SIMPLE_EXCEPTION | ( | ovpn_tls_crypt_wrong_mode | ) |
|
inline |
|
private |
Definition at line 140 of file tls_crypt.hpp.
|
private |
Definition at line 139 of file tls_crypt.hpp.
|
private |
Definition at line 141 of file tls_crypt.hpp.