diff options
Diffstat (limited to 'src/lib/hash/md5_x86_32/md5_x86_32.cpp')
-rw-r--r-- | src/lib/hash/md5_x86_32/md5_x86_32.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/lib/hash/md5_x86_32/md5_x86_32.cpp b/src/lib/hash/md5_x86_32/md5_x86_32.cpp new file mode 100644 index 000000000..73071ac18 --- /dev/null +++ b/src/lib/hash/md5_x86_32/md5_x86_32.cpp @@ -0,0 +1,31 @@ +/* +* MD5 (x86-32) +* (C) 1999-2007 Jack Lloyd +* +* Distributed under the terms of the Botan license +*/ + +#include <botan/md5_x86_32.h> + +namespace Botan { + +namespace { + +extern "C" +void botan_md5_x86_32_compress(u32bit[4], const byte[64], u32bit[16]); + +} + +/* +* MD5 Compression Function +*/ +void MD5_X86_32::compress_n(const byte input[], size_t blocks) + { + for(size_t i = 0; i != blocks; ++i) + { + botan_md5_x86_32_compress(&digest[0], input, &M[0]); + input += hash_block_size(); + } + } + +} |