Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: x86/aegis128 - remove no-op init and exit functions

Don't bother providing empty stubs for the init and exit methods in
struct aead_alg, since they are optional anyway.

Reviewed-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Eric Biggers and committed by
Herbert Xu
ebb445f5 3b2f2d22

-11
-11
arch/x86/crypto/aegis128-aesni-glue.c
··· 227 227 return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0; 228 228 } 229 229 230 - static int crypto_aegis128_aesni_init_tfm(struct crypto_aead *aead) 231 - { 232 - return 0; 233 - } 234 - 235 - static void crypto_aegis128_aesni_exit_tfm(struct crypto_aead *aead) 236 - { 237 - } 238 - 239 230 static struct aead_alg crypto_aegis128_aesni_alg = { 240 231 .setkey = crypto_aegis128_aesni_setkey, 241 232 .setauthsize = crypto_aegis128_aesni_setauthsize, 242 233 .encrypt = crypto_aegis128_aesni_encrypt, 243 234 .decrypt = crypto_aegis128_aesni_decrypt, 244 - .init = crypto_aegis128_aesni_init_tfm, 245 - .exit = crypto_aegis128_aesni_exit_tfm, 246 235 247 236 .ivsize = AEGIS128_NONCE_SIZE, 248 237 .maxauthsize = AEGIS128_MAX_AUTH_SIZE,