We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf4c34 commit 32a9fd8Copy full SHA for 32a9fd8
crypto/ahash.c
@@ -286,7 +286,6 @@ static int crypto_init_ahash_using_shash(struct crypto_tfm *tfm)
286
287
crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) &
288
CRYPTO_TFM_NEED_KEY);
289
- crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash);
290
291
return 0;
292
}
crypto/shash.c
@@ -511,6 +511,8 @@ static int shash_prepare_alg(struct shash_alg *alg)
511
if (alg->statesize > HASH_MAX_STATESIZE)
512
return -EINVAL;
513
514
+ base->cra_reqsize = sizeof(struct shash_desc) + alg->descsize;
515
+
516
517
518
0 commit comments