aboutsummaryrefslogtreecommitdiff
path: root/src/cryptopp/iterhash.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-10-09 20:26:40 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-10-09 20:26:40 +0200
commit8828da5f56313855e19f463ff1c09196812b997b (patch)
treee54e27b1a7d5287bbe245189c3044cc1a19ba02b /src/cryptopp/iterhash.h
parentba2db7262bec34d45c75c6842c3a1c0cfaba893e (diff)
parent4db9705dd839cbb386398b1eb4be2a67357c27c4 (diff)
downloadbitcoin-8828da5f56313855e19f463ff1c09196812b997b.tar.xz
Merge branch 'master' of https://github.com/bitcoin/bitcoin
Diffstat (limited to 'src/cryptopp/iterhash.h')
-rw-r--r--src/cryptopp/iterhash.h29
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