diff --git a/panama.cpp b/panama.cpp index c763b175..1631e02c 100644 --- a/panama.cpp +++ b/panama.cpp @@ -500,8 +500,7 @@ template void PanamaCipherPolicy::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount) { #if (CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)) && !defined(CRYPTOPP_DISABLE_PANAMA_ASM) - assert(IsAlignedOn(input,GetAlignmentOf())); - assert(IsAlignedOn(output,GetAlignmentOf())); + // No need for alignment assert. Panama_SSE2_Pull is ASM, and its not bound by C alignment requirements. if (B::ToEnum() == LITTLE_ENDIAN_ORDER && HasSSE2()) Panama_SSE2_Pull(iterationCount, this->m_state, (word32 *)(void *)output, (const word32 *)(void *)input); else