libpromeki main
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
Core Cryptographic Utilities

Hash functions for data integrity. More...

Functions

MD5Digest md5 (const void *data, size_t len)
 Computes the MD5 hash of a block of data.
 
SHA1Digest sha1 (const void *data, size_t len)
 Computes the SHA-1 hash of a block of data.
 

Detailed Description

Hash functions for data integrity.

MD5 and SHA-1 implementations for checksums and content addressing. Not intended for security-critical use.

Function Documentation

◆ md5()

MD5Digest md5 ( const void data,
size_t  len 
)

Computes the MD5 hash of a block of data.

Parameters
dataPointer to the input data.
lenLength of the input data in bytes.
Returns
The 16-byte MD5 digest.

◆ sha1()

SHA1Digest sha1 ( const void data,
size_t  len 
)

Computes the SHA-1 hash of a block of data.

Parameters
dataPointer to the input data.
lenLength of the input data in bytes.
Returns
The 20-byte SHA-1 digest.