MD5
MD5 utilities. More...
Modules | |
Types | |
MD5 data types. | |
Functions | |
void | gos_md5_starts (gos_md5_context_t *ctx) |
MD5 context setup. More... | |
void | gos_md5_update (gos_md5_context_t *ctx, const unsigned char *input, int32_t ilen) |
MD5 process buffer. More... | |
void | gos_md5_finish (gos_md5_context_t *ctx, unsigned char output[16]) |
MD5 final digest. More... | |
void | gos_md5 (const unsigned char *input, int32_t ilen, unsigned char output[16]) |
Output = MD5( input buffer ) More... | |
void | gos_md5_hmac_starts (gos_md5_hmac_context_t *ctx, const unsigned char *key, uint32_t keylen) |
MD5 HMAC context setup. More... | |
void | gos_md5_hmac_update (gos_md5_hmac_context_t *ctx, const unsigned char *input, uint32_t ilen) |
MD5 HMAC process buffer. More... | |
void | gos_md5_hmac_finish (gos_md5_hmac_context_t *ctx, unsigned char output[16]) |
MD5 HMAC final digest. More... | |
void | gos_md5_hmac (const unsigned char *key, uint32_t keylen, const unsigned char *input, uint32_t ilen, unsigned char output[16]) |
Output = HMAC-MD5( hmac key, input buffer ) More... | |
Detailed Description
MD5 utilities.
Function Documentation
◆ gos_md5()
void gos_md5 | ( | const unsigned char * | input, |
int32_t | ilen, |
||
unsigned char | output[16] |
||
) |
Output = MD5( input buffer )
- Parameters
-
input
buffer holding the data ilen
length of the input data output
MD5 checksum result
◆ gos_md5_finish()
void gos_md5_finish | ( | gos_md5_context_t * | ctx, |
unsigned char | output[16] |
||
) |
MD5 final digest.
- Parameters
-
ctx
MD5 context output
MD5 checksum result
◆ gos_md5_hmac()
void gos_md5_hmac | ( | const unsigned char * | key, |
uint32_t | keylen, |
||
const unsigned char * | input, |
||
uint32_t | ilen, |
||
unsigned char | output[16] |
||
) |
Output = HMAC-MD5( hmac key, input buffer )
- Parameters
-
key
HMAC secret key keylen
Length of key input
buffer holding the data ilen
Length of input data output
HMAC-MD5 result
◆ gos_md5_hmac_finish()
void gos_md5_hmac_finish | ( | gos_md5_hmac_context_t * | ctx, |
unsigned char | output[16] |
||
) |
MD5 HMAC final digest.
- Parameters
-
ctx
HMAC context output
MD5 HMAC checksum result
◆ gos_md5_hmac_starts()
void gos_md5_hmac_starts | ( | gos_md5_hmac_context_t * | ctx, |
const unsigned char * | key, |
||
uint32_t | keylen |
||
) |
MD5 HMAC context setup.
- Parameters
-
ctx
HMAC context to be initialized key
HMAC secret key keylen
length of the HMAC key
◆ gos_md5_hmac_update()
void gos_md5_hmac_update | ( | gos_md5_hmac_context_t * | ctx, |
const unsigned char * | input, |
||
uint32_t | ilen |
||
) |
MD5 HMAC process buffer.
- Parameters
-
ctx
HMAC context input
buffer holding the data ilen
length of the input data
◆ gos_md5_starts()
void gos_md5_starts | ( | gos_md5_context_t * | ctx | ) |
MD5 context setup.
- Parameters
-
ctx
context to be initialized
◆ gos_md5_update()
void gos_md5_update | ( | gos_md5_context_t * | ctx, |
const unsigned char * | input, |
||
int32_t | ilen |
||
) |
MD5 process buffer.
- Parameters
-
ctx
MD5 context input
buffer holding the data ilen
length of the input data