Dooble
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
dooble_cryptography Class Reference
Inheritance diagram for dooble_cryptography:
Inheritance graph
[legend]
Collaboration diagram for dooble_cryptography:
Collaboration graph
[legend]

Public Types

enum class  HashTypes { KECCAK_512 , SHA3_512 }
 

Public Member Functions

 dooble_cryptography (const QByteArray &authentication_key, const QByteArray &encryption_key, const QString &block_cipher_type, const QString &hash_type)
 
 dooble_cryptography (const QString &block_cipher_type, const QString &hash_type)
 
QByteArray encrypt_then_mac (const QByteArray &data) const
 
QByteArray hmac (const QByteArray &message) const
 
QByteArray hmac (const QString &message) const
 
QByteArray mac_then_decrypt (const QByteArray &data) const
 
QPair< QByteArray, QByteArray > keys (void) const
 
bool as_plaintext (void) const
 
bool authenticated (void) const
 
void authenticate (const QByteArray &salt, const QByteArray &salted_password, const QString &password)
 
void set_authenticated (bool state)
 
void set_block_cipher_type (const QString &block_cipher_type)
 
void set_hash_type (const QString &hash_type)
 
void set_keys (const QByteArray &authentication_key, const QByteArray &encryption_key)
 

Static Public Member Functions

static bool memcmp (const QByteArray &a, const QByteArray &b)
 
static void memzero (QByteArray &bytes)
 
static void memzero (QString &text)
 

Static Public Attributes

static int s_authentication_key_length = 64
 
static int s_encryption_key_length = 32
 

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