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: virtio - 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>
Acked-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

+3 -2
+3 -2
drivers/crypto/virtio/virtio_crypto_akcipher_algs.c
··· 479 479 ctx->enginectx.op.prepare_request = NULL; 480 480 ctx->enginectx.op.unprepare_request = NULL; 481 481 482 + akcipher_set_reqsize(tfm, 483 + sizeof(struct virtio_crypto_akcipher_request)); 484 + 482 485 return 0; 483 486 } 484 487 ··· 508 505 .max_size = virtio_crypto_rsa_max_size, 509 506 .init = virtio_crypto_rsa_init_tfm, 510 507 .exit = virtio_crypto_rsa_exit_tfm, 511 - .reqsize = sizeof(struct virtio_crypto_akcipher_request), 512 508 .base = { 513 509 .cra_name = "rsa", 514 510 .cra_driver_name = "virtio-crypto-rsa", ··· 530 528 .max_size = virtio_crypto_rsa_max_size, 531 529 .init = virtio_crypto_rsa_init_tfm, 532 530 .exit = virtio_crypto_rsa_exit_tfm, 533 - .reqsize = sizeof(struct virtio_crypto_akcipher_request), 534 531 .base = { 535 532 .cra_name = "pkcs1pad(rsa,sha1)", 536 533 .cra_driver_name = "virtio-pkcs1-rsa-with-sha1",