fix for wc_AesFeedbackCFB8() on big endian platforms

This commit is contained in:
Chris Conlon
2020-12-16 16:38:38 -07:00
parent 502e471cde
commit 6d9cf6b31e

View File

@@ -8588,6 +8588,9 @@ static int wc_AesFeedbackCFB8(Aes* aes, byte* out, const byte* in,
}
/* MSB + XOR */
#ifdef BIG_ENDIAN_ORDER
ByteReverseWords(aes->tmp, aes->tmp, AES_BLOCK_SIZE);
#endif
out[0] = aes->tmp[0] ^ in[0];
if (dir == AES_ENCRYPTION) {
pt = (byte*)aes->reg;