Hot Door CORE 0.8.2
Adobe® Illustrator® Plug-in Library
|
Organizes all RSA functionality into one namespace for convenience. More...
Classes | |
class | PrivateKey |
Wraps around a private RSA key's raw data for some added conveniences. More... | |
class | PublicKey |
Wraps around a public RSA key's raw data for some added conveniences. More... | |
Typedefs | |
typedef std::unique_ptr< PublicKey > | PublicKeyUP |
typedef std::shared_ptr< PublicKey > | PublicKeySP |
typedef std::weak_ptr< PublicKey > | PublicKeyWP |
typedef std::unique_ptr< PrivateKey > | PrivateKeyUP |
typedef std::shared_ptr< PrivateKey > | PrivateKeySP |
typedef std::weak_ptr< PrivateKey > | PrivateKeyWP |
Functions | |
bool | generateKeyPair (const int32_t size_, PrivateKey &privKey__, PublicKey &pubKey__) |
Generates a new RSA key pair of a given size/length. | |
bool | encryptWithPublicKey (const PublicKey &key_, const std::string &data_, std::string &b64Cipher__) |
Encrypts a string (or raw bytes stuffed into a string) with a public RSA key. | |
bool | decryptWithPrivateKey (const PrivateKey &key_, const std::string &b64Cipher_, std::string &data__) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPublicKey() function or equivalent) | |
bool | encryptWithPrivateKey (const PrivateKey &key_, const std::string &data_, std::string &b64Cipher__) |
Encrypts a string (or raw bytes stuffed into a string) with a private RSA key. | |
bool | decryptWithPublicKey (const PublicKey &key_, const std::string &b64Cipher_, std::string &data__) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPrivateKey() function or equivalent) | |
Organizes all RSA functionality into one namespace for convenience.
bool hdi::core::crypt::rsa::decryptWithPrivateKey | ( | const PrivateKey & | key_, |
const std::string & | b64Cipher_, | ||
std::string & | data__ | ||
) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPublicKey() function or equivalent)
key_ | Private RSA key to use for decryption |
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::rsa::decryptWithPublicKey | ( | const PublicKey & | key_, |
const std::string & | b64Cipher_, | ||
std::string & | data__ | ||
) |
Decrypts a base-64 encoded string of cipher text (previously encrypted with the encryptWithPrivateKey() function or equivalent)
key_ | Public RSA key to use for decryption |
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::rsa::encryptWithPrivateKey | ( | const PrivateKey & | key_, |
const std::string & | data_, | ||
std::string & | b64Cipher__ | ||
) |
Encrypts a string (or raw bytes stuffed into a string) with a private RSA key.
key_ | Private RSA key to use for encryption |
data_ | Plain data to be encrypted (in the form of a string or binary data put inside of a string object) |
b64Cipher__ | Return-by-reference for the base-64 encoded cipher text |
bool hdi::core::crypt::rsa::encryptWithPublicKey | ( | const PublicKey & | key_, |
const std::string & | data_, | ||
std::string & | b64Cipher__ | ||
) |
Encrypts a string (or raw bytes stuffed into a string) with a public RSA key.
key_ | Public RSA key to use for encryption |
data_ | Plain data to be encrypted (in the form of a string or binary data put inside of a string object) |
b64Cipher__ | Return-by-reference for the base-64 encoded cipher text |
bool hdi::core::crypt::rsa::generateKeyPair | ( | const int32_t | size_, |
PrivateKey & | privKey__, | ||
PublicKey & | pubKey__ | ||
) |
Generates a new RSA key pair of a given size/length.
size_ | Size/length of the key in bits (must be n*1024; not recommended for n>16) |
privKey__ | Return-by-reference for the new private key |
pubKey__ | Return-by-reference for the new public key |