]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] api: Handle unaligned keys in setkey
authorSebastian Siewior <linux-crypto@ml.breakpoint.cc>
Sat, 19 May 2007 09:51:21 +0000 (19:51 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Jul 2007 12:58:54 +0000 (20:58 +0800)
commit900a8aabcdc8813aca971b1f9fc7297288fc0d0b
tree107948d1bd8010ccb5185f34e2c2ef93098586cb
parentba61d2d3f4b7cc456e1ec0044231843789c8d88f
[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