RabbitCommon v2.2.6
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EvpAES Class Reference

The EvpAES class. More...

#include <EvpAES.h>

Public Member Functions

bool ecb_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, bool enc=true)
 
bool cbc_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool cfb1_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool cfb8_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool cfb128_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool ofb128_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool ctr_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool gcm_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool xts_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 
bool ocb_encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, bool enc=true)
 

Private Member Functions

bool encrypt (const QByteArray &in, QByteArray &out, const QByteArray &key, const QByteArray &ivec, const EVP_CIPHER *cipher, bool enc=true)
 
int testSSL ()
 

Private Attributes

EVP_CIPHER_CTX * ctx
 

Detailed Description

The EvpAES class.

Note
This class is intended for internal use only

Definition at line 20 of file EvpAES.h.

Constructor & Destructor Documentation

◆ EvpAES()

EvpAES::EvpAES ( )

Definition at line 10 of file EvpAES.cpp.

◆ ~EvpAES()

EvpAES::~EvpAES ( )

Definition at line 17 of file EvpAES.cpp.

Member Function Documentation

◆ cbc_encrypt()

bool EvpAES::cbc_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 50 of file EvpAES.cpp.

◆ cfb128_encrypt()

bool EvpAES::cfb128_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 131 of file EvpAES.cpp.

◆ cfb1_encrypt()

bool EvpAES::cfb1_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 77 of file EvpAES.cpp.

◆ cfb8_encrypt()

bool EvpAES::cfb8_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 104 of file EvpAES.cpp.

◆ ctr_encrypt()

bool EvpAES::ctr_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 185 of file EvpAES.cpp.

◆ ecb_encrypt()

bool EvpAES::ecb_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
bool  enc = true 
)

Definition at line 24 of file EvpAES.cpp.

◆ encrypt()

bool EvpAES::encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
const EVP_CIPHER *  cipher,
bool  enc = true 
)
private

Definition at line 295 of file EvpAES.cpp.

◆ gcm_encrypt()

bool EvpAES::gcm_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 212 of file EvpAES.cpp.

◆ ocb_encrypt()

bool EvpAES::ocb_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 261 of file EvpAES.cpp.

◆ ofb128_encrypt()

bool EvpAES::ofb128_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 158 of file EvpAES.cpp.

◆ testSSL()

int EvpAES::testSSL ( )
private

Definition at line 365 of file EvpAES.cpp.

◆ xts_encrypt()

bool EvpAES::xts_encrypt ( const QByteArray &  in,
QByteArray &  out,
const QByteArray &  key,
const QByteArray &  ivec,
bool  enc = true 
)

Definition at line 239 of file EvpAES.cpp.

Member Data Documentation

◆ ctx

EVP_CIPHER_CTX* EvpAES::ctx
private

Definition at line 65 of file EvpAES.h.


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