Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f4a537a authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu
Browse files

crypto: aead - remove useless setting of type flags



Some aead algorithms set .cra_flags = CRYPTO_ALG_TYPE_AEAD.  But this is
redundant with the C structure type ('struct aead_alg'), and
crypto_register_aead() already sets the type flag automatically,
clearing any type flag that was already there.  Apparently the useless
assignment has just been copy+pasted around.

So, remove the useless assignment from all the aead algorithms.

This patch shouldn't change any actual behavior.

Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent c87a405e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1035,7 +1035,6 @@ static struct aead_alg gcm_aes_aead = {
	.chunksize		= AES_BLOCK_SIZE,

	.base			= {
		.cra_flags		= CRYPTO_ALG_TYPE_AEAD,
		.cra_blocksize		= 1,
		.cra_ctxsize		= sizeof(struct s390_aes_ctx),
		.cra_priority		= 900,
+0 −1
Original line number Diff line number Diff line
@@ -429,7 +429,6 @@ static struct aead_alg crypto_aegis128_alg = {
	.chunksize = AEGIS_BLOCK_SIZE,

	.base = {
		.cra_flags = CRYPTO_ALG_TYPE_AEAD,
		.cra_blocksize = 1,
		.cra_ctxsize = sizeof(struct aegis_ctx),
		.cra_alignmask = 0,
+0 −1
Original line number Diff line number Diff line
@@ -493,7 +493,6 @@ static struct aead_alg crypto_aegis128l_alg = {
	.chunksize = AEGIS128L_CHUNK_SIZE,

	.base = {
		.cra_flags = CRYPTO_ALG_TYPE_AEAD,
		.cra_blocksize = 1,
		.cra_ctxsize = sizeof(struct aegis_ctx),
		.cra_alignmask = 0,
+0 −1
Original line number Diff line number Diff line
@@ -444,7 +444,6 @@ static struct aead_alg crypto_aegis256_alg = {
	.chunksize = AEGIS_BLOCK_SIZE,

	.base = {
		.cra_flags = CRYPTO_ALG_TYPE_AEAD,
		.cra_blocksize = 1,
		.cra_ctxsize = sizeof(struct aegis_ctx),
		.cra_alignmask = 0,
+0 −1
Original line number Diff line number Diff line
@@ -514,7 +514,6 @@ static struct aead_alg crypto_morus1280_alg = {
	.chunksize = MORUS1280_BLOCK_SIZE,

	.base = {
		.cra_flags = CRYPTO_ALG_TYPE_AEAD,
		.cra_blocksize = 1,
		.cra_ctxsize = sizeof(struct morus1280_ctx),
		.cra_alignmask = 0,
Loading