[CRYPTO] padlock: Only reset the key once for each CBC and ECB operation
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 26 Dec 2007 13:04:44 +0000 (00:04 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:59 +0000 (08:16 +1100)
commit866cd902e864e9d0e31299efa9d61fc9a9bec315
treee324d07a3ada70c77722e31af9d5d604482cada0
parent1c5dfe6a959b79215c0f73d793169a7d5755900e
[CRYPTO] padlock: Only reset the key once for each CBC and ECB operation

Currently we reset the key for each segment fed to the xcrypt instructions.
This patch optimises this for CBC and ECB so that we only do this once for
each encrypt/decrypt operation.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock-aes.c