aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/md4_x86_32/md4_x86_32.cpp
blob: ed3f72fc95f56208a69d24d9f8a61bf63bdb58ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* MD4 (x86-32)
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#include <botan/md4_x86_32.h>

namespace Botan {

/**
* MD4 compression function in x86-32 asm
* @param digest the current digest
* @param input the input block
* @param M the message buffer
*/
extern "C" void botan_md4_x86_32_compress(u32bit digest[4],
                                        const byte input[64],
                                        u32bit M[16]);

/*
* MD4 Compression Function
*/
void MD4_X86_32::compress_n(const byte input[], size_t blocks)
   {
   for(size_t i = 0; i != blocks; ++i)
      {
      botan_md4_x86_32_compress(&digest[0], input, &M[0]);
      input += hash_block_size();
      }
   }

}