diff --git a/panama.cpp b/panama.cpp index c7a53418..afa0ceb8 100644 --- a/panama.cpp +++ b/panama.cpp @@ -470,13 +470,12 @@ template void PanamaCipherPolicy::CipherResynchronize(byte *keystreamBuffer, const byte *iv, size_t length) { CRYPTOPP_UNUSED(keystreamBuffer); CRYPTOPP_UNUSED(iv); CRYPTOPP_UNUSED(length); - CRYPTOPP_ASSERT(IsAlignedOn(iv,GetAlignmentOf())); CRYPTOPP_ASSERT(length==32); this->Reset(); this->Iterate(1, m_key); if (iv && IsAligned(iv)) - this->Iterate(1, (const word32 *)(void *)iv); + this->Iterate(1, reinterpret_cast(iv)); else { FixedSizeSecBlock buf;