diff --git a/misc.cpp b/misc.cpp index e03e6c86..92b7bf2f 100644 --- a/misc.cpp +++ b/misc.cpp @@ -25,8 +25,8 @@ void xorbuf(byte *buf, const byte *mask, size_t count) { if (!CRYPTOPP_BOOL_SLOW_WORD64 && IsStrictAligned(buf) && IsStrictAligned(mask)) { - assert(IsAlignedOn(input, GetStrictAlignedOn(buf))); - assert(IsAlignedOn(mask, GetStrictAlignedOn(mask))); + assert(IsAlignedOn(buf, GetStrictAlignmentOf())); + assert(IsAlignedOn(mask, GetStrictAlignmentOf())); for (i=0; i(output) && IsStrictAligned(input) && IsStrictAligned(mask)) { - assert(IsAlignedOn(output, GetStrictAlignedOn(output))); - assert(IsAlignedOn(input, GetStrictAlignedOn(input))); - assert(IsAlignedOn(mask, GetStrictAlignedOn(mask))); + assert(IsAlignedOn(output, GetStrictAlignmentOf())); + assert(IsAlignedOn(input, GetStrictAlignmentOf())); + assert(IsAlignedOn(mask, GetStrictAlignmentOf())); for (i=0; i(buf) && IsStrictAligned(mask)) { - assert(IsAlignedOn(buf, GetStrictAlignedOn(buf))); - assert(IsAlignedOn(mask, GetStrictAlignedOn(mask))); + assert(IsAlignedOn(buf, GetStrictAlignmentOf())); + assert(IsAlignedOn(mask, GetStrictAlignmentOf())); word64 acc64 = 0; for (i=0; i