Skip to contentSkip to conversation

sparc64: Fix IV handling bug in des_sparc64_cbc_decrypt

PATCH New David Miller 1 participant 1 message Sep 18, 2012

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 sparc64: Fix IV handling bug in des_sparc64_cbc_decrypt

The IV wasn't being propagated properly past the first loop iteration.

This bug lived only because the crypto layer tests for cbc(des) do not have any cases that go more than one loop.

---
 arch/sparc/crypto/des_asm.S |    1 +
 1 file changed, 1 insertion(+)
arch/sparc/crypto/des_asm.S +1 -0
index a7da935..30b6e90 100644
@@ -168,6 +168,7 @@ ENTRY(des_sparc64_cbc_decrypt)
 	DES_ROUND(28, 30, 32, 32)
 	DES_IIP(32, 32)
 	fxor	%f32, %f34, %f32
+	fsrc2	%f36, %f34
 	std	%f32, [%o1 + 0x00]
 	add	%o0, 0x08, %o0
 	subcc	%o2, 0x08, %o2
Signature · 1 line
1.7.10.4