[CRYPTO] Ensure cit_iv is aligned correctly
commitfbdae9f3e7fb57c07cb0d973f113eb25da2e8ff2
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 6 Jul 2005 20:53:29 +0000 (6 13:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2005 20:53:29 +0000 (6 13:53 -0700)
treeb20909c92c2d48ab449343967b1c365732d7e4ff
parent176c3652c544b6f8d4bb1984c58c10080f45dbf0
[CRYPTO] Ensure cit_iv is aligned correctly

This patch ensures that cit_iv is aligned according to cra_alignmask
by allocating it as part of the tfm structure.  As a side effect the
crypto layer will also guarantee that the tfm ctx area has enough space
to be aligned by cra_alignmask.  This allows us to remove the extra
space reservation from the Padlock driver.

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