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: rsa-pkcs1pad - Use helper to set reqsize

The value of reqsize must only be changed through the helper.

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

+4 -1
+4 -1
crypto/rsa-pkcs1pad.c
··· 579 579 return PTR_ERR(child_tfm); 580 580 581 581 ctx->child = child_tfm; 582 + 583 + akcipher_set_reqsize(tfm, sizeof(struct pkcs1pad_request) + 584 + crypto_akcipher_reqsize(child_tfm)); 585 + 582 586 return 0; 583 587 } 584 588 ··· 678 674 inst->alg.set_pub_key = pkcs1pad_set_pub_key; 679 675 inst->alg.set_priv_key = pkcs1pad_set_priv_key; 680 676 inst->alg.max_size = pkcs1pad_get_max_size; 681 - inst->alg.reqsize = sizeof(struct pkcs1pad_request) + rsa_alg->reqsize; 682 677 683 678 inst->free = pkcs1pad_free; 684 679