Revert "ppc assembly pack: always increment CTR IV as quadword"
authorPauli <paul.dale@oracle.com>
Sun, 19 May 2019 21:58:26 +0000 (07:58 +1000)
committerPauli <paul.dale@oracle.com>
Mon, 20 May 2019 08:08:42 +0000 (18:08 +1000)
The 32 bit counter behaviour is necessary and was intentional.

This reverts commit e9f148c9356b18995298f37bafbf1836a3fce078.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8958)

crypto/aes/asm/aesp8-ppc.pl

index 30ccecf7afce6c1263090450bf518753d3d09c81..44056e31aa19228c1848c61c35dc606e652df22b 100755 (executable)
@@ -1331,7 +1331,7 @@ Loop_ctr32_enc:
        addi            $idx,$idx,16
        bdnz            Loop_ctr32_enc
 
-       vadduqm         $ivec,$ivec,$one
+       vadduwm         $ivec,$ivec,$one
         vmr            $dat,$inptail
         lvx            $inptail,0,$inp
         addi           $inp,$inp,16