20 #include <sys/cdefs.h>
void kos_md5_start(kos_md5_cxt_t *cxt)
Initialize a MD5 context.
uint32 hash[4]
Intermediate hash value.
Definition: md5.h:35
void kos_md5_hash_block(kos_md5_cxt_t *cxt, const uint8 *input, uint32 size)
Hash a block of data with MD5.
unsigned long long uint64
64-bit unsigned integer
Definition: types.h:27
uint64 size
Size of the data in buf.
Definition: md5.h:34
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
void kos_md5_finish(kos_md5_cxt_t *cxt, uint8 output[16])
Complete a MD5 hash.
struct kos_md5_cxt kos_md5_cxt_t
MD5 context.
void kos_md5(const uint8 *input, uint32 size, uint8 output[16])
Compute the hash of a block of data with MD5.
MD5 context.
Definition: md5.h:33
uint8 buf[64]
Temporary storage of values to be hashed.
Definition: md5.h:36