aboutsummaryrefslogtreecommitdiff
path: root/crypto/Makefile.objs
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2016-12-22 11:37:03 +0800
committerMichael S. Tsirkin <mst@redhat.com>2017-01-10 07:02:52 +0200
commitc159a4d1d0434fcf670f8684273bce0eca117a27 (patch)
treead5d593195dd54537c3e0d80b37e4bb3e277edac /crypto/Makefile.objs
parent2e41dfe152331c4f5a8e6ccdb80bfc0d07422e82 (diff)
downloadqemu-c159a4d1d0434fcf670f8684273bce0eca117a27.zip
qemu-c159a4d1d0434fcf670f8684273bce0eca117a27.tar.gz
qemu-c159a4d1d0434fcf670f8684273bce0eca117a27.tar.bz2
virtio-crypto: use the correct length for cipher operation
In some modes of cipher algorithms, the length of destination data maybe larger then source data, such as ciphertext stealing (CTS). For symmetric algorithms, the length of ciphertext is definitly equal to the plaintext for each crypto operation. So we should use the src_len instead of dst_len avoid to pass the incorrect cryptographical results to the frontend driver. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'crypto/Makefile.objs')
0 files changed, 0 insertions, 0 deletions