Botan
1.11.15
|
#include <mce_kem.h>
Public Member Functions | |
secure_vector< Botan::byte > | decrypt (const byte msg[], size_t msg_len) |
template<typename Alloc > | |
secure_vector< Botan::byte > | decrypt_vec (const std::vector< byte, Alloc > &v) |
McEliece_KEM_Decryptor (const McEliece_PrivateKey &mce_key) |
Botan::McEliece_KEM_Decryptor::McEliece_KEM_Decryptor | ( | const McEliece_PrivateKey & | mce_key | ) |
Definition at line 49 of file mce_kem.cpp.
: m_raw_priv_op(mce_key) { }
secure_vector< Botan::byte > Botan::McEliece_KEM_Decryptor::decrypt | ( | const byte | msg[], |
size_t | msg_len | ||
) |
returns the derived 512-bit symmetric key
Definition at line 54 of file mce_kem.cpp.
References Botan::McEliece_Private_Operation::decrypt(), Botan::Buffered_Computation::final(), and Botan::Buffered_Computation::update().
Referenced by Botan::mceies_decrypt().
{ secure_vector<Botan::byte> message_and_error = m_raw_priv_op.decrypt(&msg[0], msg_len ); SHA_512 hash; hash.update(message_and_error); secure_vector<byte> sym_key = hash.final(); return sym_key; }
secure_vector<Botan::byte> Botan::McEliece_KEM_Decryptor::decrypt_vec | ( | const std::vector< byte, Alloc > & | v | ) | [inline] |