diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 10:38:10 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-05 10:38:10 -0400 |
commit | b898c8fce687de9320bfae8dd2392e92c5464831 (patch) | |
tree | 0eae81bd8a40703143a5bbe74ce6648ca0b143c7 /src/cryptopp/iterhash.h | |
parent | 8bc52d069247b3c7968bbb5c9ced9e6a7baa57e8 (diff) | |
parent | 452506fc4153be072fe443fe3e3cbf76d9563a42 (diff) | |
download | bitcoin-b898c8fce687de9320bfae8dd2392e92c5464831.tar.xz |
Merge branch 'no-cryptopp' of https://github.com/tcatm/bitcoin
Diffstat (limited to 'src/cryptopp/iterhash.h')
-rw-r--r-- | src/cryptopp/iterhash.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/cryptopp/iterhash.h b/src/cryptopp/iterhash.h deleted file mode 100644 index 2f5895e2d3..0000000000 --- a/src/cryptopp/iterhash.h +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef CRYPTOPP_ITERHASH_H -#define CRYPTOPP_ITERHASH_H - -#include "secblock.h" - -NAMESPACE_BEGIN(CryptoPP) - -// *** trimmed down dependency from iterhash.h *** -template <class T_HashWordType, class T_Endianness, unsigned int T_BlockSize, unsigned int T_StateSize, class T_Transform, unsigned int T_DigestSize = 0, bool T_StateAligned = false> -class CRYPTOPP_NO_VTABLE IteratedHashWithStaticTransform -{ -public: - CRYPTOPP_CONSTANT(DIGESTSIZE = T_DigestSize ? T_DigestSize : T_StateSize) - unsigned int DigestSize() const {return DIGESTSIZE;}; - typedef T_HashWordType HashWordType; - CRYPTOPP_CONSTANT(BLOCKSIZE = T_BlockSize) - -protected: - IteratedHashWithStaticTransform() {this->Init();} - void HashEndianCorrectedBlock(const T_HashWordType *data) {T_Transform::Transform(this->m_state, data);} - void Init() {T_Transform::InitState(this->m_state);} - - T_HashWordType* StateBuf() {return this->m_state;} - FixedSizeAlignedSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType), T_StateAligned> m_state; -}; - -NAMESPACE_END - -#endif |