OpenVPN 3 Core Library
|
#include <tls_crypt.hpp>
Public Member Functions | |
CryptoTLSCryptInstance (SSLLib::Ctx libctx_arg, const CryptoAlgs::Type digest_arg, const CryptoAlgs::Type cipher_arg, int mode_arg) | |
void | init (SSLLib::Ctx libctx, const StaticKey &key_hmac, const StaticKey &key_crypt) |
size_t | output_hmac_size () const |
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) |
![]() | |
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 | |
CryptoAlgs::Type | digest |
CryptoAlgs::Type | cipher |
int | mode |
TLSCrypt< CRYPTO_API > | tls_crypt |
SSLLib::Ctx | libctx |
Additional Inherited Members | |
![]() | |
typedef RCPtr< TLSCryptInstance > | Ptr |
![]() | |
typedef RCPtr< RC > | Ptr |
![]() | |
static constexpr bool | is_thread_safe () |
Delegates call to RCImpl and returns the result. | |
Definition at line 199 of file tls_crypt.hpp.
|
inline |
Definition at line 202 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 239 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 234 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 229 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 223 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 213 of file tls_crypt.hpp.
|
inlinevirtual |
Implements openvpn::TLSCryptInstance.
Definition at line 218 of file tls_crypt.hpp.
|
private |
Definition at line 246 of file tls_crypt.hpp.
|
private |
Definition at line 245 of file tls_crypt.hpp.
|
private |
Definition at line 249 of file tls_crypt.hpp.
|
private |
Definition at line 247 of file tls_crypt.hpp.
|
private |
Definition at line 248 of file tls_crypt.hpp.