Botan 3.6.1
Crypto and TLS for C&
|
#include <ecies.h>
Public Member Functions | |
ECIES_Encryptor (const PK_Key_Agreement_Key &private_key, const ECIES_System_Params &ecies_params, RandomNumberGenerator &rng) | |
ECIES_Encryptor (RandomNumberGenerator &rng, const ECIES_System_Params &ecies_params) | |
std::vector< uint8_t > | encrypt (const uint8_t in[], size_t length, RandomNumberGenerator &rng) const |
std::vector< uint8_t > | encrypt (std::span< const uint8_t > in, RandomNumberGenerator &rng) const |
void | set_initialization_vector (const InitializationVector &iv) |
Set the initialization vector for the data encryption method. | |
void | set_label (std::string_view label) |
Set the label which is appended to the input for the message authentication code. | |
void | set_other_key (const EC_Point &public_point) |
Set the public key of the other party. | |
Botan::ECIES_Encryptor::ECIES_Encryptor | ( | const PK_Key_Agreement_Key & | private_key, |
const ECIES_System_Params & | ecies_params, | ||
RandomNumberGenerator & | rng ) |
private_key | the (ephemeral) private key which is used for the key agreement |
ecies_params | settings for ecies |
rng | random generator to use |
Definition at line 216 of file ecies.cpp.
References Botan::ECIES_KA_Params::compression_type(), Botan::ECIES_System_Params::create_cipher(), Botan::ECIES_System_Params::create_mac(), Botan::Encryption, and Botan::Uncompressed.
Botan::ECIES_Encryptor::ECIES_Encryptor | ( | RandomNumberGenerator & | rng, |
const ECIES_System_Params & | ecies_params ) |
Creates an ephemeral private key which is used for the key agreement
rng | random generator used during private key generation |
ecies_params | settings for ecies |
Definition at line 237 of file ecies.cpp.
|
inlineinherited |
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 37 of file pubkey.h.
Referenced by Botan::TLS::Client_Key_Exchange::Client_Key_Exchange(), and Botan::KeyPair::encryption_consistency_check().
|
inlineinherited |
|
inline |
|
inline |
|
inline |