diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-01-25 17:25:39 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-01-25 17:25:39 -0500 |
commit | be8ad110989b8eb5bc446f4151d6c9f59888155f (patch) | |
tree | 95b34f941ac2f02dd8c540d3410ec3a7b7667c91 /panama.cpp | |
parent | 49f18a81f143bb23d372972b322019d23ee64816 (diff) | |
download | cryptopp-git-be8ad110989b8eb5bc446f4151d6c9f59888155f.tar.gz |
Backed-off on assert. Panama_SSE2_Pull is ASM, and its not bound by C language fodder
Diffstat (limited to 'panama.cpp')
-rw-r--r-- | panama.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -500,8 +500,7 @@ template <class B> 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)
- assert(IsAlignedOn(input,GetAlignmentOf<word32>()));
- assert(IsAlignedOn(output,GetAlignmentOf<word32>()));
+ // 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
|