16 #ifndef _UtlCryptoKeySym_h_ 17 #define _UtlCryptoKeySym_h_ 75 int encrypt(
const unsigned char* pSrc,
83 int decrypt(
const unsigned char* pSrc,
133 #endif // _UtlCryptoKeyRsa_h_ A generic cryptography key base class.
Definition: UtlCryptoKey.h:36
A symmetric key implementation of UtlCryptoKey.
Definition: UtlCryptoKeySym.h:34
UtlCryptoData * getBinaryKey() const
Retrieves a binary key value (for later use by loadBinaryKey)
int decrypt(const unsigned char *pSrc, int srcLen, unsigned char *pDest, int *pDestLen) const
Decrypts the given source data with the current key.
int getMaxEncryptedSize(int srcLen) const
Returns the max encrypted size of srcLen bytes from encrypt()
Crypto data operations.
Definition: UtlCryptoData.h:37
int getMaxDecryptedSize(int srcLen) const
Returns the max decrypted size of srcLen bytes from decrypt()
~UtlCryptoKeySym()
Destructor.
int generateKey()
Generates a new key.
Definition: UtlString.h:48
UtlCryptoKeySym()
Constructor.
int loadBinaryKey(const unsigned char *pSrc, int srcLen)
Loads a binary key value.
int UtlBoolean
Definition: UtlDefs.h:41
int getTotalKeyLength()
Return total key length.
int encrypt(const unsigned char *pSrc, int srcLen, unsigned char *pDest, int *pDestLen) const
Encrypts the given source data with the current key.
struct evp_cipher_st EVP_CIPHER
Definition: UtlCryptoKey.h:25
UtlString output() const
Get humane-readable describe.