Remove unneeded assert in panama.cpp

The code handles both aligned and unaligned cases
pull/748/head
Jeffrey Walton 2018-11-22 04:28:38 -05:00
parent 8d4103fb0c
commit 64981be36b
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 2 deletions

View File

@ -470,13 +470,12 @@ template <class B>
void PanamaCipherPolicy<B>::CipherResynchronize(byte *keystreamBuffer, const byte *iv, size_t length)
{
CRYPTOPP_UNUSED(keystreamBuffer); CRYPTOPP_UNUSED(iv); CRYPTOPP_UNUSED(length);
CRYPTOPP_ASSERT(IsAlignedOn(iv,GetAlignmentOf<word32>()));
CRYPTOPP_ASSERT(length==32);
this->Reset();
this->Iterate(1, m_key);
if (iv && IsAligned<word32>(iv))
this->Iterate(1, (const word32 *)(void *)iv);
this->Iterate(1, reinterpret_cast<const word32*>(iv));
else
{
FixedSizeSecBlock<word32, 8> buf;