* [Qemu-devel] [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev
@ 2016-12-07 1:31 Longpeng(Mike)
2016-12-07 9:07 ` Daniel P. Berrange
0 siblings, 1 reply; 3+ messages in thread
From: Longpeng(Mike) @ 2016-12-07 1:31 UTC (permalink / raw)
To: arei.gonglei, berrange
Cc: eblake, wu.wubin, jianjay.zhou, qemu-devel, Longpeng(Mike)
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>
---
backends/cryptodev-builtin.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c
index a4224f4..5fb2836 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);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev
2016-12-07 1:31 [Qemu-devel] [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev Longpeng(Mike)
@ 2016-12-07 9:07 ` Daniel P. Berrange
2016-12-09 5:48 ` Gonglei (Arei)
0 siblings, 1 reply; 3+ messages in thread
From: Daniel P. Berrange @ 2016-12-07 9:07 UTC (permalink / raw)
To: Longpeng(Mike); +Cc: arei.gonglei, eblake, wu.wubin, jianjay.zhou, qemu-devel
On Wed, Dec 07, 2016 at 09:31:25AM +0800, Longpeng(Mike) wrote:
> 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>
> ---
> backends/cryptodev-builtin.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c
> index a4224f4..5fb2836 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);
Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Regards,
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev
2016-12-07 9:07 ` Daniel P. Berrange
@ 2016-12-09 5:48 ` Gonglei (Arei)
0 siblings, 0 replies; 3+ messages in thread
From: Gonglei (Arei) @ 2016-12-09 5:48 UTC (permalink / raw)
To: Daniel P. Berrange, longpeng
Cc: eblake@redhat.com, Wubin (H), Zhoujian (jay, Euler),
qemu-devel@nongnu.org
>
> From: Daniel P. Berrange [mailto:berrange@redhat.com]
> Sent: Wednesday, December 07, 2016 5:07 PM
> To: longpeng
> Cc: Gonglei (Arei); eblake@redhat.com; Wubin (H); Zhoujian (jay, Euler);
> qemu-devel@nongnu.org
> Subject: Re: [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev
>
> On Wed, Dec 07, 2016 at 09:31:25AM +0800, Longpeng(Mike) wrote:
> > 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>
> > ---
> > backends/cryptodev-builtin.c | 4 ----
> > 1 file changed, 4 deletions(-)
> >
> > diff --git a/backends/cryptodev-builtin.c b/backends/cryptodev-builtin.c
> > index a4224f4..5fb2836 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);
>
> Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
>
Queued, thanks.
Regards,
-Gonglei
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-09 5:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-07 1:31 [Qemu-devel] [PATCH for-2.9] cryptodev: remove single-DES support in cryptodev Longpeng(Mike)
2016-12-07 9:07 ` Daniel P. Berrange
2016-12-09 5:48 ` Gonglei (Arei)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).