mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 03:47:05 -05:00
Better MD5 support with test vectors, speed test and libcrypto fast implementation.
This commit is contained in:
parent
26c0e26a33
commit
face268eb1
14 changed files with 182 additions and 53 deletions
11
util.h
11
util.h
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue