From cc5baa9c335a8c7b2aabfd30b0e23c81ccbde3c4 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 13 Oct 2018 19:20:08 -0400 Subject: [PATCH] Fix typo in AdvancedProcessBlocks64_6x2_NEON AdvancedProcessBlocks64_6x2_NEON was only used by Simon and Speck. It was causing failures in wide-block tests for CBC decryption only. --- adv-simd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adv-simd.h b/adv-simd.h index db6d2113..9f480344 100644 --- a/adv-simd.h +++ b/adv-simd.h @@ -291,7 +291,7 @@ inline size_t AdvancedProcessBlocks64_6x2_NEON(F2 func2, F6 func6, inIncrement += inIncrement ? blockSize : 0; xorIncrement += xorIncrement ? blockSize : 0; outIncrement += outIncrement ? blockSize : 0; - inBlocks = PtrAdd(inBlocks, inIncrement); + inBlocks = PtrSub(inBlocks, inIncrement); xorBlocks = PtrSub(xorBlocks, xorIncrement); outBlocks = PtrSub(outBlocks, outIncrement); }