Botan
1.10.9
|
#include <par_hash.h>
Public Member Functions | |
void | clear () |
HashFunction * | clone () const |
void | final (byte out[]) |
SecureVector< byte > | final () |
virtual size_t | hash_block_size () const |
std::string | name () const |
size_t | output_length () const |
Parallel (const std::vector< HashFunction * > &hashes) | |
SecureVector< byte > | process (const byte in[], size_t length) |
SecureVector< byte > | process (const MemoryRegion< byte > &in) |
SecureVector< byte > | process (const std::string &in) |
void | update (const byte in[], size_t length) |
void | update (const MemoryRegion< byte > &in) |
void | update (const std::string &str) |
void | update (byte in) |
template<typename T > | |
void | update_be (const T in) |
~Parallel () | |
Parallel Hashes
Definition at line 19 of file par_hash.h.
Botan::Parallel::Parallel | ( | const std::vector< HashFunction * > & | hashes | ) |
hashes | a set of hashes to compute in parallel |
Definition at line 83 of file par_hash.cpp.
Referenced by clone().
Botan::Parallel::~Parallel | ( | ) |
Definition at line 91 of file par_hash.cpp.
|
virtual |
|
virtual |
Get a new object representing the same algorithm as *this
Implements Botan::HashFunction.
Definition at line 63 of file par_hash.cpp.
References Parallel().
|
inlineinherited |
Complete the computation and retrieve the final result.
out | The byte array to be filled with the result. Must be of length output_length() |
Definition at line 80 of file buf_comp.h.
Referenced by Botan::LubyRackoff::decrypt_n(), Botan::Lion::decrypt_n(), Botan::X942_PRF::derive(), Botan::KDF2::derive(), Botan::KDF1::derive(), Botan::PKCS5_PBKDF2::derive_key(), Botan::OpenPGP_S2K::derive_key(), Botan::PKCS5_PBKDF1::derive_key(), Botan::EMSA2::EMSA2(), Botan::LubyRackoff::encrypt_n(), Botan::Lion::encrypt_n(), Botan::Hash_Filter::end_msg(), Botan::MAC_Filter::end_msg(), Botan::HandshakeHash::final(), Botan::HandshakeHash::final_ssl3(), Botan::Record_Reader::get_record(), Botan::MGF1::mask(), Botan::EMSA3::raw_data(), Botan::Randpool::reseed(), and Botan::HMAC_RNG::reseed().
|
inlineinherited |
Complete the computation and retrieve the final result.
Definition at line 87 of file buf_comp.h.
|
inlinevirtualinherited |
The hash block size as defined for this algorithm
Reimplemented in Botan::MDx_HashFunction, Botan::Skein_512, Botan::Comb4P, Botan::Keccak_1600, Botan::GOST_34_11, and Botan::MD2.
Definition at line 32 of file hash.h.
Referenced by Botan::Comb4P::hash_block_size(), Botan::HMAC::HMAC(), and Botan::SSL3_MAC::SSL3_MAC().
|
virtual |
Implements Botan::Algorithm.
Definition at line 48 of file par_hash.cpp.
|
virtual |
Implements Botan::Buffered_Computation.
Definition at line 37 of file par_hash.cpp.
|
inlineinherited |
Update and finalize computation. Does the same as calling update() and final() consecutively.
in | the input to process as a byte array |
length | the length of the byte array |
Definition at line 101 of file buf_comp.h.
Referenced by Botan::Randpool::add_entropy(), Botan::EME1::EME1(), Botan::RTSS_Share::split(), and Botan::Cert_Extension::Subject_Key_ID::Subject_Key_ID().
|
inlineinherited |
Update and finalize computation. Does the same as calling update() and final() consecutively.
in | the input to process |
Definition at line 113 of file buf_comp.h.
References Botan::MemoryRegion< T >::size().
|
inlineinherited |
Update and finalize computation. Does the same as calling update() and final() consecutively.
in | the input to process as a string |
Definition at line 125 of file buf_comp.h.
|
inlineinherited |
Add new input to process.
in | the input to process as a byte array |
length | of param in in bytes |
Definition at line 33 of file buf_comp.h.
Referenced by Botan::HMAC_RNG::add_entropy(), Botan::Comb4P::clear(), Botan::LubyRackoff::decrypt_n(), Botan::Lion::decrypt_n(), Botan::X942_PRF::derive(), Botan::KDF2::derive(), Botan::KDF1::derive(), Botan::PKCS5_PBKDF2::derive_key(), Botan::OpenPGP_S2K::derive_key(), Botan::PKCS5_PBKDF1::derive_key(), Botan::LubyRackoff::encrypt_n(), Botan::Lion::encrypt_n(), Botan::HandshakeHash::final(), Botan::HandshakeHash::final_ssl3(), Botan::Record_Reader::get_record(), Botan::MGF1::mask(), Botan::HMAC_RNG::reseed(), Botan::EAX_Base::start_msg(), and Botan::EMSA3::update().
|
inlineinherited |
Add new input to process.
in | the input to process as a MemoryRegion |
Definition at line 39 of file buf_comp.h.
References Botan::MemoryRegion< T >::size().
|
inlineinherited |
Add new input to process.
str | the input to process as a std::string. Will be interpreted as a byte array based on the strings encoding. |
Definition at line 63 of file buf_comp.h.
|
inlineinherited |
|
inlineinherited |
Add an integer in big-endian order
in | the value |
Definition at line 48 of file buf_comp.h.
References Botan::get_byte().
Referenced by Botan::KDF2::derive(), Botan::PKCS5_PBKDF2::derive_key(), Botan::Record_Reader::get_record(), and Botan::MGF1::mask().