Skip to contentSkip to conversation

sparc64: Fix ECB looping constructs in AES code.

PATCH New David Miller 1 participant 1 message Dec 19, 2012

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 4/4 sparc64: Fix ECB looping constructs in AES code.

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

---
 arch/sparc/crypto/des_asm.S | 1 +
 1 file changed, 1 insertion(+)
arch/sparc/crypto/des_asm.S +1 -0
index 30b6e90..b5c8fc2 100644
@@ -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
Signature · 1 line
1.7.12.2.dirty