summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ubifs/auth.c')
-rw-r--r--fs/ubifs/auth.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/ubifs/auth.c b/fs/ubifs/auth.c
index 5bf5fd08879e..b758004085c4 100644
--- a/fs/ubifs/auth.c
+++ b/fs/ubifs/auth.c
@@ -33,7 +33,6 @@ int __ubifs_node_calc_hash(const struct ubifs_info *c, const void *node,
33 int err; 33 int err;
34 34
35 shash->tfm = c->hash_tfm; 35 shash->tfm = c->hash_tfm;
36 shash->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
37 36
38 err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash); 37 err = crypto_shash_digest(shash, node, le32_to_cpu(ch->len), hash);
39 if (err < 0) 38 if (err < 0)
@@ -56,7 +55,6 @@ static int ubifs_hash_calc_hmac(const struct ubifs_info *c, const u8 *hash,
56 int err; 55 int err;
57 56
58 shash->tfm = c->hmac_tfm; 57 shash->tfm = c->hmac_tfm;
59 shash->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
60 58
61 err = crypto_shash_digest(shash, hash, c->hash_len, hmac); 59 err = crypto_shash_digest(shash, hash, c->hash_len, hmac);
62 if (err < 0) 60 if (err < 0)
@@ -88,7 +86,6 @@ int ubifs_prepare_auth_node(struct ubifs_info *c, void *node,
88 return -ENOMEM; 86 return -ENOMEM;
89 87
90 hash_desc->tfm = c->hash_tfm; 88 hash_desc->tfm = c->hash_tfm;
91 hash_desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
92 ubifs_shash_copy_state(c, inhash, hash_desc); 89 ubifs_shash_copy_state(c, inhash, hash_desc);
93 90
94 err = crypto_shash_final(hash_desc, hash); 91 err = crypto_shash_final(hash_desc, hash);
@@ -123,7 +120,6 @@ static struct shash_desc *ubifs_get_desc(const struct ubifs_info *c,
123 return ERR_PTR(-ENOMEM); 120 return ERR_PTR(-ENOMEM);
124 121
125 desc->tfm = tfm; 122 desc->tfm = tfm;
126 desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
127 123
128 err = crypto_shash_init(desc); 124 err = crypto_shash_init(desc);
129 if (err) { 125 if (err) {
@@ -364,7 +360,6 @@ static int ubifs_node_calc_hmac(const struct ubifs_info *c, const void *node,
364 ubifs_assert(c, ofs_hmac + hmac_len < len); 360 ubifs_assert(c, ofs_hmac + hmac_len < len);
365 361
366 shash->tfm = c->hmac_tfm; 362 shash->tfm = c->hmac_tfm;
367 shash->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
368 363
369 err = crypto_shash_init(shash); 364 err = crypto_shash_init(shash);
370 if (err) 365 if (err)
@@ -483,7 +478,6 @@ int ubifs_hmac_wkm(struct ubifs_info *c, u8 *hmac)
483 return 0; 478 return 0;
484 479
485 shash->tfm = c->hmac_tfm; 480 shash->tfm = c->hmac_tfm;
486 shash->flags = CRYPTO_TFM_REQ_MAY_SLEEP;
487 481
488 err = crypto_shash_init(shash); 482 err = crypto_shash_init(shash);
489 if (err) 483 if (err)