Restructure
This commit is contained in:
22
include/mcutil/hash/md5.h
Normal file
22
include/mcutil/hash/md5.h
Normal file
@@ -0,0 +1,22 @@
|
||||
// Taken from https://breder.org/md5-implementation
|
||||
// Author header continues below
|
||||
|
||||
// MD5 (Message-Digest Algorithm 5)
|
||||
// Copyright Victor Breder 2024
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
#ifndef _H_MCU_HASH_MD5
|
||||
#define _H_MCU_HASH_MD5
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint32_t a, b, c, d;
|
||||
} mcu_md5_context;
|
||||
|
||||
void mcu_md5_init(mcu_md5_context* ctx);
|
||||
void mcu_md5_digest(mcu_md5_context* ctx, void* buffer, size_t size);
|
||||
void mcu_md5_output(mcu_md5_context* ctx, uint8_t out[16]);
|
||||
|
||||
#endif // _H_MCU_HASH_MD5
|
||||
Reference in New Issue
Block a user