Botan 1.10.17

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