#ifndef MD5_H #define MD5_H typedef signed char int8_t; typedef short int16_t; typedef int int32_t; typedef long long int64_t; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; typedef struct{ uint64_t size; // Size of input in bytes uint32_t buffer[4]; // Current accumulation of hash uint8_t input[64]; // Input to be used in the next step uint8_t digest[16]; // Result of algorithm }MD5Context; void md5Init(MD5Context *ctx); void md5Update(MD5Context *ctx, uint8_t *input, size_t input_len); void md5Finalize(MD5Context *ctx); void md5Step(uint32_t *buffer, uint32_t *input); void md5String(char *input, uint8_t *result); // void md5File(FILE *file, uint8_t *result); #endif