Better MD5 support with test vectors, speed test and libcrypto fast implementation.

This commit is contained in:
Andrea Mazzoleni 2011-03-25 21:04:46 +01:00
parent 26c0e26a33
commit face268eb1
14 changed files with 182 additions and 53 deletions

11
util.h
View file

@ -126,5 +126,16 @@ void* malloc_nofail(size_t size);
*/
void memxor(unsigned char* xor, const unsigned char* block, unsigned size);
/**
* Size of MD5 digest.
*/
#define MD5_SIZE 16
/**
* Computes the MD5 of a memory block.
*/
void memmd5(void* digest, const void* src, unsigned size);
#endif