diff options
author | David S. Miller <davem@davemloft.net> | 2012-12-19 18:30:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-19 18:30:07 -0500 |
commit | ce6889515d5d481a5bd8ce5913dfed18f08310ea (patch) | |
tree | a11b74035a55f1e2381f4aef8c132222c370f2ae /arch/sparc | |
parent | b35d282ef7345320b594d48d8d70caedfa962a01 (diff) |
sparc64: Fix ECB looping constructs in AES code.
Things works better when you increment the source buffer pointer
properly.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/crypto/des_asm.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sparc/crypto/des_asm.S b/arch/sparc/crypto/des_asm.S index 30b6e90b28b2..b5c8fc269b5f 100644 --- a/arch/sparc/crypto/des_asm.S +++ b/arch/sparc/crypto/des_asm.S | |||
@@ -376,6 +376,7 @@ ENTRY(des3_ede_sparc64_ecb_crypt) | |||
376 | 1: ldd [%o1 + 0x00], %f60 | 376 | 1: ldd [%o1 + 0x00], %f60 |
377 | DES3_LOOP_BODY(60) | 377 | DES3_LOOP_BODY(60) |
378 | std %f60, [%o2 + 0x00] | 378 | std %f60, [%o2 + 0x00] |
379 | add %o1, 0x08, %o1 | ||
379 | subcc %o3, 0x08, %o3 | 380 | subcc %o3, 0x08, %o3 |
380 | bne,pt %icc, 1b | 381 | bne,pt %icc, 1b |
381 | add %o2, 0x08, %o2 | 382 | add %o2, 0x08, %o2 |