Skip to content

Commit

Permalink
[CRYPTO] Remove unused iv field from context structure
Browse files Browse the repository at this point in the history
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: Herbert Xu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
herbertx authored and davem330 committed Jul 6, 2005
1 parent a2a892a commit a9df359
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions crypto/des.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};

Expand Down
1 change: 0 additions & 1 deletion crypto/serpent.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,6 @@
x4 ^= x2;

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

Expand Down

0 comments on commit a9df359

Please sign in to comment.