diff options
author | Eric Biggers <ebiggers@google.com> | 2023-10-18 22:53:35 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-10-27 18:04:24 +0800 |
commit | 46e921315febd3931065750ebbc64e5ced3c2f99 (patch) | |
tree | b2cea608080ecf5c7ce791bb6fc149cf26cb50d3 | |
parent | b510a3de6eef2ca0d324f320df639441fb8526cb (diff) | |
download | linux-crypto-46e921315febd3931065750ebbc64e5ced3c2f99.tar.gz linux-crypto-46e921315febd3931065750ebbc64e5ced3c2f99.zip |
crypto: vmac - don't set alignmask
The vmac template is setting its alignmask to that of its underlying
'cipher'. This doesn't actually accomplish anything useful, though, so
stop doing it. (vmac_update() does have an alignment bug, where it
assumes u64 alignment when it shouldn't, but that bug exists both before
and after this patch.) This is a prerequisite for removing support for
nonzero alignmasks from shash.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/vmac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/vmac.c b/crypto/vmac.c index 4633b2dd..0a1d8efa 100644 --- a/crypto/vmac.c +++ b/crypto/vmac.c @@ -649,7 +649,6 @@ static int vmac_create(struct crypto_template *tmpl, struct rtattr **tb) inst->alg.base.cra_priority = alg->cra_priority; inst->alg.base.cra_blocksize = alg->cra_blocksize; - inst->alg.base.cra_alignmask = alg->cra_alignmask; inst->alg.base.cra_ctxsize = sizeof(struct vmac_tfm_ctx); inst->alg.base.cra_init = vmac_init_tfm; |