Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Organizes all AES functionality into one namespace for convenience. More...
Classes | |
class | InitVector |
Wraps around an AES initialization vector's raw data for some added conveniences. More... | |
class | Key |
Wraps around an AES key's raw data for some added conveniences. More... | |
Typedefs | |
typedef std::vector< byte > | ByteVector |
typedef std::unique_ptr< Key > | KeyUP |
typedef std::shared_ptr< Key > | KeySP |
typedef std::weak_ptr< Key > | KeyWP |
typedef std::unique_ptr< InitVector > | InitVectorUP |
typedef std::shared_ptr< InitVector > | InitVectorSP |
typedef std::weak_ptr< InitVector > | InitVectorWP |
Functions | |
bool | encrypt (const Key &key_, const InitVector &iv_, const std::string &data_, std::string &b64Cipher__) |
Encrypts a string (or raw bytes stuffed into a string) with an AES key. | |
bool | decrypt (const Key &key_, const InitVector &iv_, const std::string &b64Cipher_, std::string &data__) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encrypt() function or equivalent) | |
plat::AESKey * | __accessImpl (const Key &) |
plat::AESInitializationVector * | __accessImpl (const InitVector &) |
Organizes all AES functionality into one namespace for convenience.
bool hdi::core::crypt::aes::decrypt | ( | const Key & | key_, |
const InitVector & | iv_, | ||
const std::string & | b64Cipher_, | ||
std::string & | data__ | ||
) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encrypt() function or equivalent)
key_ | AES key to use for decryption |
iv_ | Initialization vector to use for this decryption call |
b64Cipher_ | Base-64 encoded cipher text to attempt to decrypt |
data__ | Return-by-reference for the decrypted plain text (or raw bytes stuffed into a string) |
bool hdi::core::crypt::aes::encrypt | ( | const Key & | key_, |
const InitVector & | iv_, | ||
const std::string & | data_, | ||
std::string & | b64Cipher__ | ||
) |
Encrypts a string (or raw bytes stuffed into a string) with an AES key.
key_ | AES key to use for encryption |
iv_ | Initialization vector to use for this encryption call |
data_ | Plain data to be encrypted (in the form of a string or binary data inside of a string object) |
b64Cipher__ | Return-by-reference for the base-64 encoded cipher text |