Compy 0.2.0
A lightweight RTSP 1.0 server library for embedded systems
Loading...
Searching...
No Matches
md5.h
Go to the documentation of this file.
1
9#pragma once
10
11#include <stddef.h>
12#include <stdint.h>
13
14typedef struct {
15 uint32_t state[4];
16 uint64_t count;
17 uint8_t buffer[64];
18} Compy_Md5;
19
20void compy_md5_init(Compy_Md5 *ctx);
21void compy_md5_update(Compy_Md5 *ctx, const uint8_t *data, size_t len);
22void compy_md5_final(Compy_Md5 *ctx, uint8_t digest[16]);
23
32void compy_md5_hex(const uint8_t *data, size_t len, char out[33]);
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 t...
Definition md5.c:159
Definition md5.h:14