We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3787fb7 commit 2418431Copy full SHA for 2418431
2 files changed
crypto/geniv.c
@@ -112,8 +112,6 @@ int aead_init_geniv(struct crypto_aead *aead)
112
struct crypto_aead *child;
113
int err;
114
115
- spin_lock_init(&ctx->lock);
116
-
117
err = crypto_stdrng_get_bytes(ctx->salt, crypto_aead_ivsize(aead));
118
if (err)
119
goto out;
include/crypto/internal/geniv.h
@@ -9,11 +9,9 @@
9
#define _CRYPTO_INTERNAL_GENIV_H
10
11
#include <crypto/internal/aead.h>
12
-#include <linux/spinlock.h>
13
#include <linux/types.h>
14
15
struct aead_geniv_ctx {
16
- spinlock_t lock;
17
18
u8 salt[] __attribute__ ((aligned(__alignof__(u32))));
19
};
0 commit comments