summaryrefslogtreecommitdiffstats
path: root/old/botan/src/hash/sha1_sse2/sha1_sse2.cpp
blob: dddc06b7be0fced2742b4f86f431b2cf5523c1ca (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
/*
* SHA-160 (SSE2)
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#include <botan/sha1_sse2.h>

namespace Botan {

/*
* SHA-160 Compression Function
*/
void SHA_160_SSE2::compress_n(const byte input[], u32bit blocks)
   {
   for(u32bit i = 0; i != blocks; ++i)
      {
      botan_sha1_sse2_compress(digest, reinterpret_cast<const u32bit*>(input));
      input += HASH_BLOCK_SIZE;
      }
   }

}