plusaes
Base

Macros

#define PLUSAES_VERSION   0x01000000
 

Enumerations

enum  plusaes::Error {
  kErrorOk = 0 , kErrorInvalidDataSize = 1 , kErrorInvalidKeySize , kErrorInvalidBufferSize ,
  kErrorInvalidKey , kErrorDeprecated , kErrorInvalidIvSize , kErrorInvalidTagSize ,
  kErrorInvalidTag
}
 

Functions

unsigned int plusaes::version ()
 
std::vector< unsigned char > plusaes::key_from_string (const char(*key_str)[17])
 
std::vector< unsigned char > plusaes::key_from_string (const char(*key_str)[25])
 
std::vector< unsigned char > plusaes::key_from_string (const char(*key_str)[33])
 
unsigned long plusaes::get_padded_encrypted_size (const unsigned long data_size)
 

Detailed Description

Base definitions and convenient functions

Macro Definition Documentation

◆ PLUSAES_VERSION

#define PLUSAES_VERSION   0x01000000

Version number of the plusaes. 0x01020304 -> 1.2.3.4

Enumeration Type Documentation

◆ Error

Error code

Function Documentation

◆ get_padded_encrypted_size()

unsigned long plusaes::get_padded_encrypted_size ( const unsigned long  data_size)
inline

Calculates encrypted data size when padding is enabled.

◆ key_from_string() [1/3]

std::vector< unsigned char > plusaes::key_from_string ( const char(*)  key_str[17])
inline

Create 128-bit key from string.

◆ key_from_string() [2/3]

std::vector< unsigned char > plusaes::key_from_string ( const char(*)  key_str[25])
inline

Create 192-bit key from string.

◆ key_from_string() [3/3]

std::vector< unsigned char > plusaes::key_from_string ( const char(*)  key_str[33])
inline

Create 256-bit key from string.

◆ version()

unsigned int plusaes::version ( )
inline

Version number of plusaes.