summaryrefslogtreecommitdiff
path: root/drivers/crypto/virtio/virtio_crypto_core.c
diff options
context:
space:
mode:
authorlei he <helei.sig11@bytedance.com>2022-05-06 16:16:26 +0300
committerMichael S. Tsirkin <mst@redhat.com>2022-05-31 19:45:09 +0300
commita36bd0ad9fbf69d0d711b1c105954ce8d6cc144a (patch)
treeb7e152f78d90541dbe09767faa38f06c93a3ed5e /drivers/crypto/virtio/virtio_crypto_core.c
parent977231e8d45657871a86fe3c7bed94921d04e447 (diff)
downloadlinux-a36bd0ad9fbf69d0d711b1c105954ce8d6cc144a.tar.xz
virtio-crypto: adjust dst_len at ops callback
For some akcipher operations(eg, decryption of pkcs1pad(rsa)), the length of returned result maybe less than akcipher_req->dst_len, we need to recalculate the actual dst_len through the virt-queue protocol. Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Jason Wang <jasowang@redhat.com> Cc: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gonglei <arei.gonglei@huawei.com> Signed-off-by: lei he <helei.sig11@bytedance.com> Signed-off-by: zhenwei pi <pizhenwei@bytedance.com> Message-Id: <20220506131627.180784-5-pizhenwei@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/crypto/virtio/virtio_crypto_core.c')
0 files changed, 0 insertions, 0 deletions