Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: shash - Set reqsize in shash_alg

Make reqsize static for shash algorithms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+2 -1
-1
crypto/ahash.c
··· 286 286 287 287 crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) & 288 288 CRYPTO_TFM_NEED_KEY); 289 - crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); 290 289 291 290 return 0; 292 291 }
+2
crypto/shash.c
··· 511 511 if (alg->statesize > HASH_MAX_STATESIZE) 512 512 return -EINVAL; 513 513 514 + base->cra_reqsize = sizeof(struct shash_desc) + alg->descsize; 515 + 514 516 return 0; 515 517 } 516 518