Proud::CCryptoFast Class Reference

Static Public Member Functions

static PROUD_API bool ExpandFrom (CCryptoFastKey &outKey, const uint8_t *inputKey, int keyLength)
 
static int GetEncryptSize (int inputLength)
 
static bool Encrypt (const CCryptoFastKey &key, const uint8_t *input, int inputLength, uint8_t *output, int &outputLength, ErrorInfoPtr &errorInfo)
 
static bool Decrypt (const CCryptoFastKey &key, const uint8_t *input, int inputLength, uint8_t *output, int &outputLength, ErrorInfoPtr &errorInfo)
 
static bool EncryptByteArray (const CCryptoFastKey &key, const ByteArray &input, ByteArray &output, ErrorInfoPtr &errorInfo)
 
static bool DecryptByteArray (const CCryptoFastKey &key, const ByteArray &input, ByteArray &output, ErrorInfoPtr &errorInfo)
 
static PROUD_API bool EncryptMessage (const CCryptoFastKey &key, const CMessage &input, CMessage &output, int offset, ErrorInfoPtr &errorInfo)
 
static PROUD_API bool DecryptMessage (const CCryptoFastKey &key, const CMessage &input, CMessage &output, int offset, ErrorInfoPtr &errorInfo)
 

Member Function Documentation

static bool Proud::CCryptoFast::Decrypt ( const CCryptoFastKey key,
const uint8_t *  input,
int  inputLength,
uint8_t *  output,
int &  outputLength,
ErrorInfoPtr errorInfo 
)
static

Decrypt data

Parameters
keySymmetric key
inputEncrypted message
inputLengthSize of Encrypted message
outputDecrypted result value
outputLengthSize of Decrypted text
static bool Proud::CCryptoFast::DecryptByteArray ( const CCryptoFastKey key,
const ByteArray input,
ByteArray output,
ErrorInfoPtr errorInfo 
)
static

Decrypt ByteArray

Parameters
keySymmetric key
inputEncrypted message
outputDecrypted result value
static PROUD_API bool Proud::CCryptoFast::DecryptMessage ( const CCryptoFastKey key,
const CMessage input,
CMessage output,
int  offset,
ErrorInfoPtr errorInfo 
)
static

Decrypt Message

Parameters
keySymmetric key
inputEncrypted message
outputDecrypted result value
offsetDecrypt start position at encrypted message
static bool Proud::CCryptoFast::Encrypt ( const CCryptoFastKey key,
const uint8_t *  input,
int  inputLength,
uint8_t *  output,
int &  outputLength,
ErrorInfoPtr errorInfo 
)
static

Encrypt data

Parameters
keySymmetric key
inputPlain text message
inputLengthSize of plain text
outputEncrypted result value
outputLengthSize of Encrypted result
static bool Proud::CCryptoFast::EncryptByteArray ( const CCryptoFastKey key,
const ByteArray input,
ByteArray output,
ErrorInfoPtr errorInfo 
)
static

Encrypt ByteArray

Parameters
keySymmetric key
inputPlain text message
outputEncrypted result value
static PROUD_API bool Proud::CCryptoFast::EncryptMessage ( const CCryptoFastKey key,
const CMessage input,
CMessage output,
int  offset,
ErrorInfoPtr errorInfo 
)
static

Encrypt Message

Parameters
keySymmetric key
inputPlain text message
outputEncrypted result value
offsetEncrypt start position at plain text message
static PROUD_API bool Proud::CCryptoFast::ExpandFrom ( CCryptoFastKey outKey,
const uint8_t *  inputKey,
int  keyLength 
)
static
Parameters
outKey
inputKey
keyLength16 or 24 or 32 bytes
static int Proud::CCryptoFast::GetEncryptSize ( int  inputLength)
static
Parameters
keySymmetric key
inputLengthSize of plain text
Returns
Size of Encrypted result