]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CRYPTO] Update IV correctly for Padlock CBC encryption
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 Jul 2005 20:54:09 +0000 (13:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2005 20:54:09 +0000 (13:54 -0700)
commit476df259cd577e20379b02a7f7ffd086ea925a83
tree85697704c53e0905d1b83a4ec3525cf20ca53455
parent915e8561d559abba1b81934e31e54a3f850fa7bf
[CRYPTO] Update IV correctly for Padlock CBC encryption

When the Padlock does CBC encryption, the memory pointed to by EAX is
not updated at all.  Instead, it updates the value of EAX by pointing
it to the last block in the output.  Therefore to maintain the correct
semantics we need to copy the IV.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/padlock-aes.c