Backed-off on assert. Panama_SSE2_Pull is ASM, and its not bound by C language fodder

pull/136/head
Jeffrey Walton 2016-01-25 17:25:39 -05:00
parent 49f18a81f1
commit be8ad11098
1 changed files with 1 additions and 2 deletions

View File

@ -500,8 +500,7 @@ template <class B>
void PanamaCipherPolicy<B>::OperateKeystream(KeystreamOperation operation, byte *output, const byte *input, size_t iterationCount) void PanamaCipherPolicy<B>::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) #if (CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE)) && !defined(CRYPTOPP_DISABLE_PANAMA_ASM)
assert(IsAlignedOn(input,GetAlignmentOf<word32>())); // No need for alignment assert. Panama_SSE2_Pull is ASM, and its not bound by C alignment requirements.
assert(IsAlignedOn(output,GetAlignmentOf<word32>()));
if (B::ToEnum() == LITTLE_ENDIAN_ORDER && HasSSE2()) if (B::ToEnum() == LITTLE_ENDIAN_ORDER && HasSSE2())
Panama_SSE2_Pull(iterationCount, this->m_state, (word32 *)(void *)output, (const word32 *)(void *)input); Panama_SSE2_Pull(iterationCount, this->m_state, (word32 *)(void *)output, (const word32 *)(void *)input);
else else