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 MD2 implementation.
7 *********************************************************************/
12 /*************************** HEADER FILES ***************************/
15 /****************************** MACROS ******************************/
16 #define MD2_BLOCK_SIZE 16
18 /**************************** DATA TYPES ****************************/
19 typedef unsigned char BYTE; // 8-bit byte
28 /*********************** FUNCTION DECLARATIONS **********************/
29 void md2_init(MD2_CTX *ctx);
30 void md2_update(MD2_CTX *ctx, const BYTE data[], size_t len);
31 void md2_final(MD2_CTX *ctx, BYTE hash[]); // size of hash must be MD2_BLOCK_SIZE