Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
md5.h File Reference

Minimal MD5 implementation (RFC 1321). More...

#include <stddef.h>
#include <stdint.h>
Include dependency graph for md5.h:

Go to the source code of this file.

Data Structures

struct  Compy_Md5
 

Functions

void compy_md5_init (Compy_Md5 *ctx)
 
void compy_md5_update (Compy_Md5 *ctx, const uint8_t *data, size_t len)
 
void compy_md5_final (Compy_Md5 *ctx, uint8_t digest[16])
 
void compy_md5_hex (const uint8_t *data, size_t len, char out[33])
 Computes MD5 of data and writes the result as a 32-character lowercase hex string to out (plus null terminator).
 

Detailed Description

Minimal MD5 implementation (RFC 1321).

Public domain — derived from the RSA reference implementation. This is a private header; do not include directly from application code.

Function Documentation

◆ compy_md5_hex()

void compy_md5_hex ( const uint8_t *  data,
size_t  len,
char  out[33] 
)

Computes MD5 of data and writes the result as a 32-character lowercase hex string to out (plus null terminator).

Parameters
[in]dataInput data.
[in]lenLength of data.
[out]outOutput buffer, must be at least 33 bytes.