diff --git a/seal.cpp b/seal.cpp index da0d2e15..15392ac0 100644 --- a/seal.cpp +++ b/seal.cpp @@ -93,9 +93,10 @@ void SEAL_Policy::OperateKeystream(KeystreamOperation operation, byte *output word32 a, b, c, d, n1, n2, n3, n4; unsigned int p, q; + assert(IsAlignedOn(m_T.begin(),GetAlignmentOf())); for (size_t iteration = 0; iteration < iterationCount; ++iteration) { -#define Ttab(x) *(word32 *)((byte *)m_T.begin()+x) + #define Ttab(x) *(word32 *)(void*)((byte *)m_T.begin()+x) a = m_outsideCounter ^ m_R[4*m_insideCounter]; b = rotrFixed(m_outsideCounter, 8U) ^ m_R[4*m_insideCounter+1];