]> git.baikalelectronics.ru Git - kernel.git/commit
[CRYPTO] blkcipher: Remove alignment restriction on block size
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 29 Sep 2007 13:24:23 +0000 (21:24 +0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:55:46 +0000 (16:55 -0700)
commit7efc75637cde2fbf5ec460e36481d73812f26bef
tree94cf5beb318c16e608fb7e03d4eed7decaaeefc1
parentca5d9e91bf06052b6ffc70bc1db9846db07a2da4
[CRYPTO] blkcipher: Remove alignment restriction on block size

Previously we assumed for convenience that the block size is a multiple of
the algorithm's required alignment.  With the pending addition of CTR this
will no longer be the case as the block size will be 1 due to it being a
stream cipher.  However, the alignment requirement will be that of the
underlying implementation which will most likely be greater than 1.

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