diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-29 21:24:23 +0800 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:55:46 -0700 |
commit | 19ac76f2eb1a2e81897420e24c77cf86feda5ede (patch) | |
tree | 6a58008a1e8d9ec6f661b16c502e2f8317d51d25 /crypto/algapi.c | |
parent | a756adb565ce3e7a19caa0e4abe9ba7e12ff952b (diff) | |
download | linux-crypto-19ac76f2eb1a2e81897420e24c77cf86feda5ede.tar.gz linux-crypto-19ac76f2eb1a2e81897420e24c77cf86feda5ede.zip |
[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>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index d891f56f..58cc1916 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -63,9 +63,6 @@ static int crypto_check_alg(struct crypto_alg *alg) if (alg->cra_alignmask & (alg->cra_alignmask + 1)) return -EINVAL; - if (alg->cra_alignmask & alg->cra_blocksize) - return -EINVAL; - if (alg->cra_blocksize > PAGE_SIZE / 8) return -EINVAL; |