summaryrefslogtreecommitdiff
path: root/iterhash.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-10 11:54:13 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-10 11:54:13 -0400
commit9748c3cf3edb5bb07f4930be77203ce4c5a8638f (patch)
tree0bb8b9e5de38496d6812c56e6e96593e2c43f9bf /iterhash.h
parent45fcd47c07fa9c761f61fe346f32b2164fd808c1 (diff)
downloadcryptopp-git-9748c3cf3edb5bb07f4930be77203ce4c5a8638f.tar.gz
Clear conversion warning
Diffstat (limited to 'iterhash.h')
-rw-r--r--iterhash.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/iterhash.h b/iterhash.h
index 45142f85..ab55b1fc 100644
--- a/iterhash.h
+++ b/iterhash.h
@@ -156,7 +156,10 @@ public:
protected:
T_HashWordType* DataBuf() {return this->m_data;}
- FixedSizeSecBlock<T_HashWordType, T_BlockSize/sizeof(T_HashWordType)> m_data;
+
+ // Squash conversion warning
+ CRYPTOPP_CONSTANT(DCOUNT=T_BlockSize/sizeof(T_HashWordType))
+ FixedSizeSecBlock<T_HashWordType, DCOUNT> m_data;
};
/// \brief Iterated hash with a static transformation function
@@ -186,9 +189,11 @@ 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;
+
+ // Squash conversion warning
+ CRYPTOPP_CONSTANT(SCOUNT=T_BlockSize/sizeof(T_HashWordType))
+ FixedSizeSecBlock<T_HashWordType, SCOUNT> m_state;
};
#if !defined(__GNUC__) && !defined(__clang__)