]> git.baikalelectronics.ru Git - 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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:45 +0000 (09:02 +0800)
commitaec8d054096f17041058a99d26ffb41d82327523
treeda441a0cdc9b51668897f81e5ca4a204d19f2e8e
parent97dfb99c4c6b8b098ba633e5faf256d9b68aac60
crypto: virtio - implement missing support for output IVs

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: 659c9ea6816d ("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>
drivers/crypto/virtio/virtio_crypto_algs.c