Botan
1.11.15
|
00001 /* 00002 * SHA-160 in x86-32 asm 00003 * (C) 1999-2007 Jack Lloyd 00004 * 00005 * Botan is released under the Simplified BSD License (see license.txt) 00006 */ 00007 00008 #ifndef BOTAN_SHA_160_X86_32_H__ 00009 #define BOTAN_SHA_160_X86_32_H__ 00010 00011 #include <botan/sha160.h> 00012 00013 namespace Botan { 00014 00015 /** 00016 * SHA-160 in x86 assembly 00017 */ 00018 class BOTAN_DLL SHA_160_X86_32 : public SHA_160 00019 { 00020 public: 00021 HashFunction* clone() const { return new SHA_160_X86_32; } 00022 00023 // Note 81 instead of normal 80: x86-32 asm needs an extra temp 00024 SHA_160_X86_32() : SHA_160(81) {} 00025 private: 00026 void compress_n(const byte[], size_t blocks); 00027 }; 00028 00029 } 00030 00031 #endif