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

Commit a9df3597 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

[CRYPTO] Remove unused iv field from context structure



The iv field in des_ctx/des3_ede_ctx/serpent_ctx has never been used.
This was noticed by Dag Arne Osvik.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a2a892a2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -38,12 +38,10 @@
#define ROR(d,c,o)	((d) = (d) >> (c) | (d) << (o))

struct des_ctx {
	u8 iv[DES_BLOCK_SIZE];
	u32 expkey[DES_EXPKEY_WORDS];
};

struct des3_ede_ctx {
	u8 iv[DES_BLOCK_SIZE];
	u32 expkey[DES3_EDE_EXPKEY_WORDS];
};

+0 −1
Original line number Diff line number Diff line
@@ -210,7 +210,6 @@
	x4 ^= x2;

struct serpent_ctx {
	u8 iv[SERPENT_BLOCK_SIZE];
	u32 expkey[SERPENT_EXPKEY_WORDS];
};