Use non-virtual IteratedHashWithStaticTransform::Init in ctor (GH #147)

This commit is contained in:
Jeffrey Walton 2021-06-03 21:10:59 -04:00
parent 926543ef66
commit 26a819d5c2
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -191,7 +191,8 @@ public:
unsigned int DigestSize() const {return DIGESTSIZE;}
protected:
IteratedHashWithStaticTransform() {this->Init();}
// https://github.com/weidai11/cryptopp/issues/147#issuecomment-766231864
IteratedHashWithStaticTransform() {IteratedHashWithStaticTransform::Init();}
void HashEndianCorrectedBlock(const T_HashWordType *data) {T_Transform::Transform(this->m_state, data);}
void Init() {T_Transform::InitState(this->m_state);}