Botan
1.11.15
|
#include <pubkey.h>
Public Member Functions | |
secure_vector< byte > | decrypt (const byte in[], size_t length) const |
template<typename Alloc > | |
secure_vector< byte > | decrypt (const std::vector< byte, Alloc > &in) const |
PK_Decryptor_EME (const Private_Key &key, const std::string &eme) |
Botan::PK_Decryptor_EME::PK_Decryptor_EME | ( | const Private_Key & | key, |
const std::string & | eme | ||
) |
Construct an instance.
key | the key to use inside the encryptor |
eme | the EME to use |
Definition at line 89 of file pubkey.cpp.
References Botan::get_eme().
{ m_op.reset(get_pk_op<PK_Ops::Decryption>(key, eme_name)); m_eme.reset(get_eme(eme_name)); }
secure_vector<byte> Botan::PK_Decryptor::decrypt | ( | const byte | in[], |
size_t | length | ||
) | const [inline, inherited] |
Decrypt a ciphertext.
in | the ciphertext as a byte array |
length | the length of the above byte array |
Definition at line 97 of file pubkey.h.
Referenced by Botan::KeyPair::encryption_consistency_check().
{
return dec(in, length);
}
secure_vector<byte> Botan::PK_Decryptor::decrypt | ( | const std::vector< byte, Alloc > & | in | ) | const [inline, inherited] |