[CRYPTO] api: Handle unaligned keys in setkey
commitca7c39385ce1a7b44894a4b225a4608624e90730
authorSebastian Siewior <linux-crypto@ml.breakpoint.cc>
Sat, 19 May 2007 09:51:21 +0000 (19 19:51 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Jul 2007 12:58:54 +0000 (11 20:58 +0800)
tree107948d1bd8010ccb5185f34e2c2ef93098586cb
parentfe3c5206adc5d7395828185ab73e9a522655b984
[CRYPTO] api: Handle unaligned keys in setkey

setkey() in {cipher,blkcipher,ablkcipher,hash}.c does not respect the
requested alignment by the algorithm. This patch fixes it. The extra
memory is allocated by kmalloc() with GFP_ATOMIC flag.

Signed-off-by: Sebastian Siewior <linux-crypto@ml.breakpoint.cc>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ablkcipher.c
crypto/blkcipher.c
crypto/cipher.c
crypto/hash.c