]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sparc64: Fix ECB looping constructs in AES code.
authorDavid S. Miller <davem@davemloft.net>
Wed, 19 Dec 2012 23:30:07 +0000 (15:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:51 +0000 (09:18 -0800)
[ Upstream commit ce6889515d5d481a5bd8ce5913dfed18f08310ea ]

Things works better when you increment the source buffer pointer
properly.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/sparc/crypto/des_asm.S

index 30b6e90b28b2d793e1b18e5d342dabcfb515847b..b5c8fc269b5f3446964a6ee57a51d37eeb43e521 100644 (file)
@@ -376,6 +376,7 @@ ENTRY(des3_ede_sparc64_ecb_crypt)
 1:     ldd     [%o1 + 0x00], %f60
        DES3_LOOP_BODY(60)
        std     %f60, [%o2 + 0x00]
+       add     %o1, 0x08, %o1
        subcc   %o3, 0x08, %o3
        bne,pt  %icc, 1b
         add    %o2, 0x08, %o2