diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-07-03 10:55:08 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-07-26 15:03:57 +1000 |
commit | 368b1bdc0a5983c8c908ce2001229e2291eac583 (patch) | |
tree | f2d050eb7dbb3b76d20d38bbab901c8e252df2d9 /crypto | |
parent | 520c1993bbe620e39fd93de1a01b9e0dc0b97aa6 (diff) | |
download | linux-368b1bdc0a5983c8c908ce2001229e2291eac583.tar.gz linux-368b1bdc0a5983c8c908ce2001229e2291eac583.tar.bz2 linux-368b1bdc0a5983c8c908ce2001229e2291eac583.zip |
crypto: aegis128 - drop empty TFM init/exit routines
TFM init/exit routines are optional, so no need to provide empty ones.
Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/aegis128.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/crypto/aegis128.c b/crypto/aegis128.c index d78f77fc5dd1..32840d5e7f65 100644 --- a/crypto/aegis128.c +++ b/crypto/aegis128.c @@ -403,22 +403,11 @@ static int crypto_aegis128_decrypt(struct aead_request *req) return crypto_memneq(tag.bytes, zeros, authsize) ? -EBADMSG : 0; } -static int crypto_aegis128_init_tfm(struct crypto_aead *tfm) -{ - return 0; -} - -static void crypto_aegis128_exit_tfm(struct crypto_aead *tfm) -{ -} - static struct aead_alg crypto_aegis128_alg = { .setkey = crypto_aegis128_setkey, .setauthsize = crypto_aegis128_setauthsize, .encrypt = crypto_aegis128_encrypt, .decrypt = crypto_aegis128_decrypt, - .init = crypto_aegis128_init_tfm, - .exit = crypto_aegis128_exit_tfm, .ivsize = AEGIS128_NONCE_SIZE, .maxauthsize = AEGIS128_MAX_AUTH_SIZE, |