Botan 3.6.1
Crypto and TLS for C&
|
Functions | |
std::string | decrypt (const uint8_t input[], size_t input_len, std::string_view passphrase) |
std::string | decrypt (std::string_view input, std::string_view passphrase) |
secure_vector< uint8_t > | decrypt_bin (const uint8_t input[], size_t input_len, std::string_view passphrase) |
BOTAN_DIAGNOSTIC_IGNORE_DEPRECATED_DECLARATIONS secure_vector< uint8_t > | decrypt_bin (std::string_view input, std::string_view passphrase) |
std::string | encrypt (const uint8_t input[], size_t input_len, std::string_view passphrase, RandomNumberGenerator &rng) |
This namespace holds various high-level crypto functions
std::string Botan::CryptoBox::decrypt | ( | const uint8_t | input[], |
size_t | input_len, | ||
std::string_view | passphrase ) |
Decrypt a message encrypted with CryptoBox::encrypt
input | the input data |
input_len | the length of input in bytes |
passphrase | the passphrase used to encrypt the message |
Definition at line 156 of file cryptobox.cpp.
References Botan::cast_uint8_ptr_to_char(), and decrypt_bin().
Referenced by decrypt().
std::string Botan::CryptoBox::decrypt | ( | std::string_view | input, |
std::string_view | passphrase ) |
Decrypt a message encrypted with CryptoBox::encrypt
input | the input data |
passphrase | the passphrase used to encrypt the message |
Definition at line 162 of file cryptobox.cpp.
References Botan::cast_char_ptr_to_uint8(), and decrypt().
secure_vector< uint8_t > Botan::CryptoBox::decrypt_bin | ( | const uint8_t | input[], |
size_t | input_len, | ||
std::string_view | passphrase ) |
Decrypt a message encrypted with CryptoBox::encrypt
input | the input data |
input_len | the length of input in bytes |
passphrase | the passphrase used to encrypt the message |
Definition at line 96 of file cryptobox.cpp.
References Botan::Cipher_Mode::create_or_throw(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::PasswordHashFamily::create_or_throw(), Botan::PEM_Code::decode_check_label(), Botan::Decryption, Botan::CT::is_equal(), and Botan::load_be().
Referenced by decrypt(), and decrypt_bin().
secure_vector< uint8_t > Botan::CryptoBox::decrypt_bin | ( | std::string_view | input, |
std::string_view | passphrase ) |
Decrypt a message encrypted with CryptoBox::encrypt
input | the input data |
passphrase | the passphrase used to encrypt the message |
Definition at line 152 of file cryptobox.cpp.
References Botan::cast_char_ptr_to_uint8(), and decrypt_bin().
std::string Botan::CryptoBox::encrypt | ( | const uint8_t | input[], |
size_t | input_len, | ||
std::string_view | passphrase, | ||
RandomNumberGenerator & | rng ) |
Encrypt a message using a passphrase
input | the input data |
input_len | the length of input in bytes |
passphrase | the passphrase used to encrypt the message |
rng | a ref to a random number generator, such as AutoSeeded_RNG |
Definition at line 42 of file cryptobox.cpp.
References Botan::copy_mem(), Botan::Cipher_Mode::create_or_throw(), Botan::MessageAuthenticationCode::create_or_throw(), Botan::PasswordHashFamily::create_or_throw(), Botan::PEM_Code::encode(), Botan::Encryption, Botan::RandomNumberGenerator::randomize(), and Botan::store_be().