Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65d5fcf5 authored by David S. Miller's avatar David S. Miller
Browse files

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.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 979e93ca
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -168,6 +168,7 @@ ENTRY(des_sparc64_cbc_decrypt)
	DES_ROUND(28, 30, 32, 32)
	DES_ROUND(28, 30, 32, 32)
	DES_IIP(32, 32)
	DES_IIP(32, 32)
	fxor	%f32, %f34, %f32
	fxor	%f32, %f34, %f32
	fsrc2	%f36, %f34
	std	%f32, [%o1 + 0x00]
	std	%f32, [%o1 + 0x00]
	add	%o0, 0x08, %o0
	add	%o0, 0x08, %o0
	subcc	%o2, 0x08, %o2
	subcc	%o2, 0x08, %o2