]> git.proxmox.com Git - mirror_qemu.git/commit - crypto/cipher-builtin.c
crypto: extend mode as a parameter in qcrypto_cipher_supports()
authorGonglei <arei.gonglei@huawei.com>
Mon, 26 Sep 2016 09:23:21 +0000 (17:23 +0800)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 19 Oct 2016 09:09:24 +0000 (10:09 +0100)
commitf844836ddccf3dbcba142128da5dd8ee618f3e91
tree91556d3ea8b8236cf10d16681dacf2d95dfb4232
parente8ddc2eae5ccc41f0815e5c43e70cb04a7e67e2e
crypto: extend mode as a parameter in qcrypto_cipher_supports()

It can't guarantee all cipher modes are supported
if one cipher algorithm is supported by a backend.
Let's extend qcrypto_cipher_supports() to take both
the algorithm and mode as parameters.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
block/qcow.c
block/qcow2.c
crypto/cipher-builtin.c
crypto/cipher-gcrypt.c
crypto/cipher-nettle.c
include/crypto/cipher.h
tests/test-crypto-cipher.c
ui/vnc.c