Botan  1.10.9
md5_x86_32.cpp
Go to the documentation of this file.
1 /*
2 * MD5 (x86-32)
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7 
8 #include <botan/md5_x86_32.h>
9 
10 namespace Botan {
11 
12 namespace {
13 
14 extern "C"
15 void botan_md5_x86_32_compress(u32bit[4], const byte[64], u32bit[16]);
16 
17 }
18 
19 /*
20 * MD5 Compression Function
21 */
22 void MD5_X86_32::compress_n(const byte input[], size_t blocks)
23  {
24  for(size_t i = 0; i != blocks; ++i)
25  {
26  botan_md5_x86_32_compress(digest, input, M);
27  input += hash_block_size();
28  }
29  }
30 
31 }
size_t hash_block_size() const
Definition: mdx_hash.h:32
unsigned char byte
Definition: types.h:22
SecureVector< u32bit > M
Definition: md5.h:36
SecureVector< u32bit > digest
Definition: md5.h:41
unsigned int u32bit
Definition: types.h:32