Skip to content

Commit

Permalink
sparc64: Fix IV handling bug in des_sparc64_cbc_decrypt
Browse files Browse the repository at this point in the history
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: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 18, 2012
1 parent 979e93c commit 65d5fcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/sparc/crypto/des_asm.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d5fcf

Please sign in to comment.