| From 8140e3d5ac6d77113f515221de4ffcf925d74196 Mon Sep 17 00:00:00 2001 |
| From: "David S. Miller" <davem@davemloft.net> |
| Date: Wed, 19 Dec 2012 15:30:07 -0800 |
| Subject: sparc64: Fix ECB looping constructs in AES code. |
| |
| |
| From: "David S. Miller" <davem@davemloft.net> |
| |
| [ 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 | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/arch/sparc/crypto/des_asm.S |
| +++ b/arch/sparc/crypto/des_asm.S |
| @@ -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 |