GATE
C/C++ Framework
Loading...
Searching...
No Matches
md5hash.h File Reference

MD5 hash generation. More...

Functions

GATE_ENCODE_API void gate_md5_init (gate_md5_t *md5)
 Initializies a MD5 hash struct.
GATE_ENCODE_API void gate_md5_update (gate_md5_t *md5, void const *databuffer, gate_size_t databufferlength)
 Feeds bytes to the hash calculation.
GATE_ENCODE_API void gate_md5_finish (gate_md5_t *md5, gate_md5_result_t *resulthashbuffer)
 Finalizes hash calculation and creates hash results.

Detailed Description

MD5 hash generation.

Function Documentation

◆ gate_md5_init()

GATE_ENCODE_API void gate_md5_init ( gate_md5_t * md5)

Initializies a MD5 hash struct.

Parameters
[in]md5Pointer to MD5 hash struct

◆ gate_md5_update()

GATE_ENCODE_API void gate_md5_update ( gate_md5_t * md5,
void const * databuffer,
gate_size_t databufferlength )

Feeds bytes to the hash calculation.

Parameters
[in]md5Pointer to MD5 hash struct
[in]databufferPointer to data buffer to be added to calculation
[in]databufferlengthLength of bytes in databuffer

◆ gate_md5_finish()

GATE_ENCODE_API void gate_md5_finish ( gate_md5_t * md5,
gate_md5_result_t * resulthashbuffer )

Finalizes hash calculation and creates hash results.

Parameters
[in]md5Pointer to MD5 hash struct
[out]resulthashbufferPointer to output hash buffer to be filled with result