OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TokenEncrypt Class Reference

#include <tokenencrypt.hpp>

Classes

class  Key
 

Public Types

enum  { ENCRYPT = 1 , DECRYPT = 0 }
 

Public Member Functions

 TokenEncrypt (const Key &key, const int mode)
 
 ~TokenEncrypt ()
 
void operator() (std::uint8_t *dest, const std::uint8_t *src, const int size)
 

Private Member Functions

 TokenEncrypt (const TokenEncrypt &)=delete
 
TokenEncryptoperator= (const TokenEncrypt &)=delete
 

Private Attributes

EVP_CIPHER_CTX * ctx
 

Detailed Description

Definition at line 31 of file tokenencrypt.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ENCRYPT 
DECRYPT 

Definition at line 50 of file tokenencrypt.hpp.

Constructor & Destructor Documentation

◆ TokenEncrypt() [1/2]

openvpn::TokenEncrypt::TokenEncrypt ( const Key key,
const int  mode 
)
inline

Definition at line 56 of file tokenencrypt.hpp.

◆ ~TokenEncrypt()

openvpn::TokenEncrypt::~TokenEncrypt ( )
inline

Definition at line 68 of file tokenencrypt.hpp.

◆ TokenEncrypt() [2/2]

openvpn::TokenEncrypt::TokenEncrypt ( const TokenEncrypt )
privatedelete

Member Function Documentation

◆ operator()()

void openvpn::TokenEncrypt::operator() ( std::uint8_t *  dest,
const std::uint8_t *  src,
const int  size 
)
inline

Definition at line 74 of file tokenencrypt.hpp.

◆ operator=()

TokenEncrypt & openvpn::TokenEncrypt::operator= ( const TokenEncrypt )
privatedelete

Member Data Documentation

◆ ctx

EVP_CIPHER_CTX* openvpn::TokenEncrypt::ctx
private

Definition at line 95 of file tokenencrypt.hpp.


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