From 64981be36b1ba37c19d5a6ec993f065a825458b4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 22 Nov 2018 04:28:38 -0500 Subject: [PATCH] Remove unneeded assert in panama.cpp The code handles both aligned and unaligned cases --- panama.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;