]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
crypto: virtio - implement missing support for output IVs
authorArd Biesheuvel <ardb@kernel.org>
Sat, 9 Nov 2019 17:09:26 +0000 (18:09 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit772c3458d79f880ea05de03a8b571fcecf9d052b
treed30a71f52722c05a0d4fa51a26baf170ff2e301b
parentb731cc22d4b2a87d6b834431fb5b93fcd833493f
crypto: virtio - implement missing support for output IVs

BugLink: https://bugs.launchpad.net/bugs/1861934
commit 500e6807ce93b1fdc7d5b827c5cc167cc35630db upstream.

In order to allow for CBC to be chained, which is something that the
CTS template relies upon, implementations of CBC need to pass the
IV to be used for subsequent invocations via the IV buffer. This was
not implemented yet for virtio-crypto so implement it now.

Fixes: dbaf0624ffa5 ("crypto: add virtio-crypto driver")
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Gonglei <arei.gonglei@huawei.com>
Cc: virtualization@lists.linux-foundation.org
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/crypto/virtio/virtio_crypto_algs.c