diff options
author | Longpeng(Mike) | 2016-12-07 02:11:50 +0100 |
---|---|---|
committer | Gonglei | 2016-12-24 06:46:27 +0100 |
commit | d7a2127a4c5b2d52c94d5c27a5744a055ddc14f7 (patch) | |
tree | a47fbc605201f2307388ae2cb8c617ef7dcffa5a | |
parent | cryptodev: add xts(aes) support (diff) | |
download | qemu-d7a2127a4c5b2d52c94d5c27a5744a055ddc14f7.tar.gz qemu-d7a2127a4c5b2d52c94d5c27a5744a055ddc14f7.tar.xz qemu-d7a2127a4c5b2d52c94d5c27a5744a055ddc14f7.zip |
cryptodev: remove single-DES support in cryptodev
Single-DES is obsolete and it's broken/useless for decades, we should
remove it in cryptodev, as suggested by Daniel.
Guest who wants to use this obsolete cipher alg will use its built-in
implementation instead.
Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com>
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
-rw-r--r-- | backends/cryptodev-builtin.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c index a4224f4b1e..5fb2836fde 100644 --- a/backends/cryptodev-builtin.c +++ b/backends/cryptodev-builtin.c @@ -205,10 +205,6 @@ static int cryptodev_builtin_create_cipher_session( return -1; } break; - case VIRTIO_CRYPTO_CIPHER_DES_ECB: - mode = QCRYPTO_CIPHER_MODE_ECB; - algo = QCRYPTO_CIPHER_ALG_DES_RFB; - break; default: error_setg(errp, "Unsupported cipher alg :%u", sess_info->cipher_alg); |