Botan
1.11.15
|
#include <dlies.h>
Public Member Functions | |
DLIES_Encryptor (const PK_Key_Agreement_Key &, KDF *kdf, MessageAuthenticationCode *mac, size_t mac_key_len=20) | |
std::vector< byte > | encrypt (const byte in[], size_t length, RandomNumberGenerator &rng) const |
template<typename Alloc > | |
std::vector< byte > | encrypt (const std::vector< byte, Alloc > &in, RandomNumberGenerator &rng) const |
void | set_other_key (const std::vector< byte > &) |
Botan::DLIES_Encryptor::DLIES_Encryptor | ( | const PK_Key_Agreement_Key & | key, |
KDF * | kdf, | ||
MessageAuthenticationCode * | mac, | ||
size_t | mac_key_len = 20 |
||
) |
Definition at line 16 of file dlies.cpp.
References Botan::PK_Key_Agreement_Key::public_value().
: ka(key, "Raw"), kdf(kdf_obj), mac(mac_obj), mac_keylen(mac_kl) { my_key = key.public_value(); }
std::vector<byte> Botan::PK_Encryptor::encrypt | ( | const byte | in[], |
size_t | length, | ||
RandomNumberGenerator & | rng | ||
) | const [inline, inherited] |
Encrypt a message.
in | the message as a byte array |
length | the length of the above byte array |
rng | the random number source to use |
Definition at line 48 of file pubkey.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), and Botan::KeyPair::encryption_consistency_check().
{
return enc(in, length, rng);
}
std::vector<byte> Botan::PK_Encryptor::encrypt | ( | const std::vector< byte, Alloc > & | in, |
RandomNumberGenerator & | rng | ||
) | const [inline, inherited] |
void Botan::DLIES_Encryptor::set_other_key | ( | const std::vector< byte > & | ok | ) |