1 /*********************************************************************
3 * Author: Brad Conte (brad AT bradconte.com)
5 * Disclaimer: This code is presented "as is" without any guarantees.
6 * Details: Defines the API for the corresponding MD5 implementation.
7 *********************************************************************/
12 /*************************** HEADER FILES ***************************/
14 #include "crypto_types.h"
16 /****************************** MACROS ******************************/
17 #define MD5_BLOCK_SIZE 16 // MD5 outputs a 16 byte digest
19 /**************************** DATA TYPES ****************************/
24 unsigned long long bitlen;
28 /*********************** FUNCTION DECLARATIONS **********************/
29 void md5_init(MD5_CTX *ctx);
30 void md5_update(MD5_CTX *ctx, const BYTE data[], size_t len);
31 void md5_final(MD5_CTX *ctx, BYTE hash[]);