[PADLOCK] Move fast path work into aes_set_key and upper layer
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 Jul 2005 20:52:27 +0000 (13:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2005 20:52:27 +0000 (13:52 -0700)
commit6789b2dc455b90efc9c88886c9366adc9abb7347
treea962565f31b2c8c0cb112b2ce482cceb3d16caef
parent95477377995aefa2ec1654a9a3777bd57ea99146
[PADLOCK] Move fast path work into aes_set_key and upper layer

Most of the work done aes_padlock can be done in aes_set_key.  This
means that we only have to do it once when the key changes rather
than every time we perform an encryption or decryption.

This patch also sets cra_alignmask to let the upper layer ensure
that the buffers fed to us are aligned correctly.

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