Skip to content

Commit ebb445f

Browse files
ebiggersherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 3b2f2d2 commit ebb445f

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/x86/crypto/aegis128-aesni-glue.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -227,22 +227,11 @@ static int crypto_aegis128_aesni_decrypt(struct aead_request *req)
227227
return crypto_memneq(tag.bytes, zeros.bytes, authsize) ? -EBADMSG : 0;
228228
}
229229

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-
239230
static struct aead_alg crypto_aegis128_aesni_alg = {
240231
.setkey = crypto_aegis128_aesni_setkey,
241232
.setauthsize = crypto_aegis128_aesni_setauthsize,
242233
.encrypt = crypto_aegis128_aesni_encrypt,
243234
.decrypt = crypto_aegis128_aesni_decrypt,
244-
.init = crypto_aegis128_aesni_init_tfm,
245-
.exit = crypto_aegis128_aesni_exit_tfm,
246235

247236
.ivsize = AEGIS128_NONCE_SIZE,
248237
.maxauthsize = AEGIS128_MAX_AUTH_SIZE,

0 commit comments

Comments
 (0)