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>
This commit is contained in:
Longpeng(Mike) 2016-12-07 09:11:50 +08:00 committed by Gonglei
parent eaa5740304
commit d7a2127a4c
1 changed files with 0 additions and 4 deletions

View File

@ -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);