Botan 2.19.3
Crypto and TLS for C&
|
#include <buf_comp.h>
Public Member Functions | |
secure_vector< uint8_t > | final () |
template<typename Alloc > | |
void | final (std::vector< uint8_t, Alloc > &out) |
void | final (uint8_t out[]) |
std::vector< uint8_t > | final_stdvec () |
virtual size_t | output_length () const =0 |
secure_vector< uint8_t > | process (const secure_vector< uint8_t > &in) |
secure_vector< uint8_t > | process (const std::string &in) |
secure_vector< uint8_t > | process (const std::vector< uint8_t > &in) |
secure_vector< uint8_t > | process (const uint8_t in[], size_t length) |
void | update (const secure_vector< uint8_t > &in) |
void | update (const std::string &str) |
void | update (const std::vector< uint8_t > &in) |
void | update (const uint8_t in[], size_t length) |
void | update (uint8_t in) |
void | update_be (uint16_t val) |
void | update_be (uint32_t val) |
void | update_be (uint64_t val) |
void | update_le (uint16_t val) |
void | update_le (uint32_t val) |
void | update_le (uint64_t val) |
virtual | ~Buffered_Computation ()=default |
This class represents any kind of computation which uses an internal state, such as hash functions or MACs
Definition at line 20 of file buf_comp.h.
|
virtualdefault |
|
inline |
Complete the computation and retrieve the final result.
Definition at line 90 of file buf_comp.h.
|
inline |
Definition at line 105 of file buf_comp.h.
|
inline |
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 83 of file buf_comp.h.
Referenced by botan_hash_final(), botan_mac_final(), Botan::ed25519_gen_keypair(), Botan::ed25519_sign(), Botan::ed25519_verify(), Botan::TLS::TLS_CBC_HMAC_AEAD_Encryption::finish(), Botan::TLS::TLS_CBC_HMAC_AEAD_Decryption::finish(), and Botan::pbkdf2().
|
inline |
Definition at line 97 of file buf_comp.h.
|
pure virtual |
Implemented in Botan::BLAKE2b, Botan::Adler32, Botan::CRC24, Botan::CRC32, Botan::Comb4P, Botan::GOST_34_11, Botan::Keccak_1600, Botan::MD4, Botan::MD5, Botan::Parallel, Botan::RIPEMD_160, Botan::SHA_160, Botan::SHA_224, Botan::SHA_256, Botan::SHA_384, Botan::SHA_512, Botan::SHA_512_256, Botan::SHA_3, Botan::SHAKE_128, Botan::SHAKE_256, Botan::Skein_512, Botan::SM3, Botan::Streebog, Botan::Tiger, Botan::Whirlpool, Botan::CBC_MAC, Botan::CMAC, Botan::GMAC, Botan::HMAC, Botan::Poly1305, Botan::SipHash, and Botan::ANSI_X919_MAC.
Referenced by botan_hash_output_length(), botan_mac_output_length(), Botan::Tiger::clone(), Botan::pbkdf2(), Botan::TLS::TLS_CBC_HMAC_AEAD_Mode::TLS_CBC_HMAC_AEAD_Mode(), and Botan::MDx_HashFunction::write_count().
|
inline |
Update and finalize computation. Does the same as calling update() and final() consecutively.
in | the input to process |
Definition at line 130 of file buf_comp.h.
|
inline |
|
inline |
Update and finalize computation. Does the same as calling update() and final() consecutively.
in | the input to process |
Definition at line 142 of file buf_comp.h.
|
inline |
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 118 of file buf_comp.h.
|
inline |
Add new input to process.
in | the input to process as a secure_vector |
Definition at line 39 of file buf_comp.h.
|
inline |
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 66 of file buf_comp.h.
References Botan::cast_char_ptr_to_uint8().
|
inline |
Add new input to process.
in | the input to process as a std::vector |
Definition at line 48 of file buf_comp.h.
|
inline |
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_hash_update(), botan_mac_update(), Botan::ed25519_gen_keypair(), Botan::ed25519_sign(), Botan::ed25519_verify(), Botan::TLS::TLS_CBC_HMAC_AEAD_Encryption::finish(), Botan::TLS::TLS_CBC_HMAC_AEAD_Decryption::finish(), and Botan::pbkdf2().
|
inline |
Process a single byte.
in | the byte to process |
Definition at line 75 of file buf_comp.h.
void Botan::Buffered_Computation::update_be | ( | uint16_t | val | ) |
Definition at line 12 of file buf_comp.cpp.
References Botan::store_be().
Referenced by Botan::pbkdf2().
void Botan::Buffered_Computation::update_be | ( | uint32_t | val | ) |
Definition at line 19 of file buf_comp.cpp.
References Botan::store_be().
void Botan::Buffered_Computation::update_be | ( | uint64_t | val | ) |
Definition at line 26 of file buf_comp.cpp.
References Botan::store_be().
void Botan::Buffered_Computation::update_le | ( | uint16_t | val | ) |
Definition at line 33 of file buf_comp.cpp.
References Botan::store_le().
void Botan::Buffered_Computation::update_le | ( | uint32_t | val | ) |
Definition at line 40 of file buf_comp.cpp.
References Botan::store_le().
void Botan::Buffered_Computation::update_le | ( | uint64_t | val | ) |
Definition at line 47 of file buf_comp.cpp.
References Botan::store_le().