Botan  1.10.9
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
25  private:
26  void compress_n(const byte[], size_t blocks);
27  };
28 
29 }
30 
31 #endif
unsigned char byte
Definition: types.h:22
HashFunction * clone() const
Definition: sha1_x86_32.h:21