Multi-pass MD2 hash generator.
More...
Multi-pass MD2 hash generator.
This structure is needed to perform a multi-pass MD2 hash and contains cached data and a running checksum.
void MemoryCopy(void *pOutput, const void *pInput, uintptr_t uCount) noexcept
Copy raw memory from one buffer to another.
Definition brmemoryfunctions.cpp:186
Multi-pass MD2 hash generator.
Definition burger.h:7179
Select a type based if the conditional is true or false.
Definition burger.h:3178
- See also
- MD2_t or hash(MD2_t *,const void *,uintptr_t)
◆ finalize()
Finalize the hashing.
When multi-pass hashing is performed, this call is necessary to finalize the hash so that the generated checksum can be applied into the hash
- See also
- init(void), process(const void *,uintptr_t)
◆ init()
◆ process() [1/2]
Process a single 16 byte block of data.
MD2 data is processed in 16 byte chunks. This function will process 16 bytes on input and update the hash and checksum
- Parameters
-
pBlock | Pointer to a buffer of 16 bytes of data to hash |
- See also
- process(const void*, uintptr_t), finalize(void) or init(void)
◆ process() [2/2]
Process an arbitrary number of input bytes.
Process input data into the hash. If data chunks are not a multiple of 16 bytes, the excess will be cached and a future call will continue the hashing where it left off.
- Parameters
-
pInput | Pointer to a buffer of data to hash |
uLength | Number of bytes to hash |
- See also
- process(const uint8_t[16]), finalize(void)
◆ m_CacheBuffer
uint8_t Burger::MD2Hasher_t::m_CacheBuffer[16] |
Cached input data for multi-pass hashing.
◆ m_Checksum
uint8_t Burger::MD2Hasher_t::m_Checksum[16] |
◆ m_Hash
MD2_t Burger::MD2Hasher_t::m_Hash |
◆ m_uCount
Number of bytes in the cache (0-15)