Botan 1.10.17

sha1_x86_32.h
Go to the documentation of this file.
1 /*
2 * SHA-160 in x86-32 asm
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Distributed under the terms of the Botan license
6 */
7
8 #ifndef BOTAN_SHA_160_X86_32_H__
9 #define BOTAN_SHA_160_X86_32_H__
10
11 #include <botan/sha160.h>
12
13 namespace Botan {
14
15 /**
16 * SHA-160 in x86 assembly
17 */
18 class BOTAN_DLL SHA_160_X86_32 : public SHA_160
19 {
20 public:
21 HashFunction* clone() const { return new SHA_160_X86_32; }
22
23 // Note 81 instead of normal 80: x86-32 asm needs an extra temp
24 SHA_160_X86_32() : SHA_160(81) {}
25 private:
26 void compress_n(const byte[], size_t blocks);
27 };
28
29 }
30
31 #endif
Botan::byte
unsigned char byte
Definition: types.h:22
Botan::SHA_160
Definition: sha160.h:18
Botan
Definition: algo_base.h:14
Botan::SHA_160_X86_32
Definition: sha1_x86_32.h:18
Botan::HashFunction
Definition: hash.h:20
Botan::SHA_160_X86_32::clone
HashFunction * clone() const
Definition: sha1_x86_32.h:21
Botan::SHA_160_X86_32::SHA_160_X86_32
SHA_160_X86_32()
Definition: sha1_x86_32.h:24