]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] Check cra_alignmask against cra_blocksize
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 3 Oct 2005 05:15:36 +0000 (15:15 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 30 Oct 2005 00:19:43 +0000 (11:19 +1100)
commit081ce5882b13042cb32fcc03bab42460df4e3eff
tree0f1ade69806e7f02196534b008ef8d2c925bf34b
parent10b1d726eb902d72c9cc5166c0356a57cc8fc969
[CRYPTO] Check cra_alignmask against cra_blocksize

The cipher code relies on the fact that the block size is a multiple
of the required alignment.  So we should check this at the time of
algorith registration.  We also ensure that the block size is bounded
by the page size.

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