From 48852d97c6a506b3876b139ceb7fde203b9205c2 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 21 Mar 2021 19:13:17 +0100 Subject: Added hashing functions --- libc/inc/crypto.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 libc/inc/crypto.h (limited to 'libc/inc/crypto.h') diff --git a/libc/inc/crypto.h b/libc/inc/crypto.h new file mode 100644 index 0000000..bbe8d7e --- /dev/null +++ b/libc/inc/crypto.h @@ -0,0 +1,11 @@ +// MIT License, Copyright (c) 2021 Marvin Borner + +#ifndef CRYPTO_H +#define CRYPTO_H + +#include + +void md5(const void *initial_msg, u32 initial_len, u8 digest[16]); +u32 crc32(u32 crc, const void *buf, u32 size); + +#endif -- cgit v1.2.3