|
Botan 1.10.17
|
#include <md5_x86_32.h>
Public Member Functions | |
| void | clear () |
| HashFunction * | clone () const |
| SecureVector< byte > | final () |
| void | final (byte out[]) |
| size_t | hash_block_size () const |
| std::string | name () const |
| size_t | output_length () const |
| 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 (byte in) |
| void | update (const byte in[], size_t length) |
| void | update (const MemoryRegion< byte > &in) |
| void | update (const std::string &str) |
| template<typename T> | |
| void | update_be (const T in) |
Protected Member Functions | |
| void | add_data (const byte input[], size_t length) |
| void | copy_out (byte[]) |
| void | final_result (byte output[]) |
| virtual void | write_count (byte out[]) |
Protected Attributes | |
| SecureVector< u32bit > | digest |
| SecureVector< u32bit > | M |
MD5 in x86 assembly
Definition at line 18 of file md5_x86_32.h.
|
protectedvirtualinherited |
Add more data to the computation
| input | is an input buffer |
| length | is the length of input in bytes |
Implements Botan::Buffered_Computation.
Definition at line 41 of file mdx_hash.cpp.
References compress_n().
|
virtualinherited |
Zeroize internal state
Implements Botan::Algorithm.
Definition at line 126 of file md5.cpp.
References Botan::MDx_HashFunction::clear(), digest, M, and Botan::zeroise().
Referenced by MD5().
|
inlinevirtual |
Get a new object representing the same algorithm as *this
Reimplemented from Botan::MD5.
Definition at line 21 of file md5_x86_32.h.
|
protectedvirtualinherited |
Copy the output to the buffer
| buffer | to put the output into |
Implements Botan::MDx_HashFunction.
Definition at line 117 of file md5.cpp.
References digest, output_length(), and Botan::store_le().
|
inlineinherited |
Complete the computation and retrieve the final result.
Definition at line 87 of file buf_comp.h.
References output_length().
|
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::X942_PRF::derive(), Botan::HandshakeHash::final(), and Botan::HandshakeHash::final_ssl3().
|
protectedvirtualinherited |
Write the final output to out
| out | is an output buffer of output_length() |
Implements Botan::Buffered_Computation.
Definition at line 71 of file mdx_hash.cpp.
References clear(), compress_n(), copy_out(), write_count(), and Botan::zeroise().
|
inlinevirtualinherited |
The hash block size as defined for this algorithm
Reimplemented from Botan::HashFunction.
Definition at line 32 of file mdx_hash.h.
Referenced by Botan::MD4::compress_n(), Botan::MD5::compress_n(), Botan::SHA_160::compress_n(), and write_count().
|
inlinevirtualinherited |
Implements Botan::Algorithm.
Definition at line 21 of file md5.h.
|
inlinevirtualinherited |
Implements Botan::Buffered_Computation.
Definition at line 22 of file md5.h.
Referenced by copy_out(), and Botan::SSL3_PRF::derive().
|
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::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.
References update().
|
inlineinherited |
Process a single byte.
| in | the byte to process |
Definition at line 72 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::X942_PRF::derive(), Botan::HandshakeHash::final(), Botan::HandshakeHash::final_ssl3(), process(), and Botan::EAX_Base::start_msg().
|
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 |
Add an integer in big-endian order
| in | the value |
Definition at line 48 of file buf_comp.h.
References Botan::get_byte().
|
protectedvirtualinherited |
Write the count, if used, to this spot
| out | where to write the counter to |
Definition at line 93 of file mdx_hash.cpp.
References hash_block_size(), Botan::Invalid_State::Invalid_State(), Botan::Buffered_Computation::output_length(), Botan::store_be(), and Botan::store_le().
Referenced by copy_out(), and final_result().
|
protectedinherited |
The digest value, exposed for use by subclasses (x86 asm)
Definition at line 41 of file md5.h.
Referenced by clear(), compress_n(), copy_out(), and MD5().
|
protectedinherited |
The message buffer, exposed for use by subclasses (x86 asm)
Definition at line 36 of file md5.h.
Referenced by clear(), compress_n(), and MD5().