2 MD2 is a message digest algorithm that can be used to condense an arbitrary
3 length message down to a 16 byte hash. The functions all need to be passed
4 a MD2_CTX which is used to hold the MD2 context during multiple MD2_Update()
5 function calls. The normal method of use for this library is as follows
13 This library requires the inclusion of 'md2.h'.
15 The main negative about MD2 is that it is slow, especially when compared
18 The functions are as follows:
22 This function needs to be called to initiate a MD2_CTX structure for
29 This updates the message digest context being generated with 'len'
30 bytes from the 'data' pointer. The number of bytes can be any
36 This function is called when a message digest of the data digested
37 with MD2_Update() is wanted. The message digest is put in the 'md'
38 array and is MD2_DIGEST_LENGTH (16) bytes long.
44 This function performs a MD2_Init(), followed by a MD2_Update()
45 followed by a MD2_Final() (using a local MD2_CTX).
46 The resulting digest is put into 'md' if it is not NULL.
47 Regardless of the value of 'md', the message
48 digest is returned from the function. If 'md' was NULL, the message
49 digest returned is being stored in a static structure.