[parent not found: <CAOMf8tqdo+t3B1r5t-j84pdEaiA-c-8f1H0FF44DNcYqV=1t8w@mail.gmail.com>]
* Re: [GSoC] project proposal
[not found] ` <CAOMf8tqdo+t3B1r5t-j84pdEaiA-c-8f1H0FF44DNcYqV=1t8w@mail.gmail.com>
@ 2015-04-21 14:07 ` Paolo Bonzini
2015-04-22 8:20 ` Stefan Hajnoczi
0 siblings, 1 reply; 18+ messages in thread
From: Paolo Bonzini @ 2015-04-21 14:07 UTC (permalink / raw)
To: Catalin Vasile, Stefan Hajnoczi; +Cc: MA..., Kim Phillips
On 21/04/2015 16:07, Catalin Vasile wrote:
> I don't get the part with getting cryptodev upstream.
> I don't know what getting cryptodev upstream actually implies.
> From what I know cryptodev is done (is a functional project) that was
> rejected in the Linux Kernel
> and there isn't actually way to get it upstream.
Yes, I agree.
Paolo
> On Tue, Mar 31, 2015 at 8:14 PM, Stefan Hajnoczi <stefanha@gmail.com
> <mailto:stefanha@gmail.com>> wrote:
>
> On Wed, Mar 18, 2015 at 8:59 PM, Paolo Bonzini <pbonzini@redhat.com
> <mailto:pbonzini@redhat.com>> wrote:
> > On 18/03/2015 18:05, Catalin Vasile wrote:
> >> cryptodev is not merged into upstream from what I know.
> >
> > Yes, but QEMU runs on non-Linux platforms too. Of course doing
> > vhost+driver or gnutls+driver would be already more than enough for the
> > summer.
>
> My suggestion is to work on the gnutls driver. Then, if you have time
> left, get cryptodev upstream (it can be part of your GSoC project
> plan).
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [GSoC] project proposal
2015-04-21 14:07 ` Paolo Bonzini
@ 2015-04-22 8:20 ` Stefan Hajnoczi
2015-04-22 8:51 ` Catalin Vasile
0 siblings, 1 reply; 18+ messages in thread
From: Stefan Hajnoczi @ 2015-04-22 8:20 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Catalin Vasile, MA..., Kim Phillips
[-- Attachment #1: Type: text/plain, Size: 514 bytes --]
On Tue, Apr 21, 2015 at 04:07:56PM +0200, Paolo Bonzini wrote:
> On 21/04/2015 16:07, Catalin Vasile wrote:
> > I don't get the part with getting cryptodev upstream.
> > I don't know what getting cryptodev upstream actually implies.
> > From what I know cryptodev is done (is a functional project) that was
> > rejected in the Linux Kernel
> > and there isn't actually way to get it upstream.
>
> Yes, I agree.
The limitations of AF_ALG need to addressed somehow, so what is the next
step?
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-04-22 8:20 ` Stefan Hajnoczi
@ 2015-04-22 8:51 ` Catalin Vasile
2015-04-22 13:43 ` Paolo Bonzini
2015-04-23 8:33 ` Stefan Hajnoczi
0 siblings, 2 replies; 18+ messages in thread
From: Catalin Vasile @ 2015-04-22 8:51 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Paolo Bonzini, MA..., Kim Phillips
On Wed, Apr 22, 2015 at 11:20 AM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Tue, Apr 21, 2015 at 04:07:56PM +0200, Paolo Bonzini wrote:
>> On 21/04/2015 16:07, Catalin Vasile wrote:
>> > I don't get the part with getting cryptodev upstream.
>> > I don't know what getting cryptodev upstream actually implies.
>> > From what I know cryptodev is done (is a functional project) that was
>> > rejected in the Linux Kernel
>> > and there isn't actually way to get it upstream.
>>
>> Yes, I agree.
>
> The limitations of AF_ALG need to addressed somehow, so what is the next
> step?
>
> Stefan
If we want a mainstream userspace backend that could interact with a
lot of crypto engines, we could use OpenSSL (it can actually use
cryptodev and AF_ALG as engines).
For now, until mid June (my diploma project presentation) I still want
to use vhost as a backend for the sole purpose of having a finished
backend which now I have a good grasp upon.
If the finished work would be good enough work to be merged upstream
will be talked later.
As a GSoC project, OpenSSL as a backend would continue the
virtio-crypto development, as it's not uncommon to have multiple types
of backends.
The current work on virtio-crypto qemu and guest module is pretty
backend agnostic, and could allow future development(use of other
backends and other features).
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-04-22 8:51 ` Catalin Vasile
@ 2015-04-22 13:43 ` Paolo Bonzini
2015-04-22 15:11 ` Catalin Vasile
2015-04-23 8:33 ` Stefan Hajnoczi
1 sibling, 1 reply; 18+ messages in thread
From: Paolo Bonzini @ 2015-04-22 13:43 UTC (permalink / raw)
To: Catalin Vasile, Stefan Hajnoczi; +Cc: MA...
On 22/04/2015 10:51, Catalin Vasile wrote:
> If we want a mainstream userspace backend that could interact with a
> lot of crypto engines, we could use OpenSSL (it can actually use
> cryptodev and AF_ALG as engines).
> For now, until mid June (my diploma project presentation) I still want
> to use vhost as a backend for the sole purpose of having a finished
> backend which now I have a good grasp upon.
> If the finished work would be good enough work to be merged upstream
> will be talked later.
> As a GSoC project, OpenSSL as a backend would continue the
> virtio-crypto development, as it's not uncommon to have multiple types
> of backends.
> The current work on virtio-crypto qemu and guest module is pretty
> backend agnostic, and could allow future development(use of other
> backends and other features).
OpenSSL's license is not compatible with QEMU, hence the suggestion of
using gnutls.
Paolo
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-04-22 13:43 ` Paolo Bonzini
@ 2015-04-22 15:11 ` Catalin Vasile
0 siblings, 0 replies; 18+ messages in thread
From: Catalin Vasile @ 2015-04-22 15:11 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Stefan Hajnoczi, MA...
I found my way through it's API.
http://www.gnutls.org/manual/gnutls.html#Cryptographic-API
Does anyone know if it has one shot givencrypt (generate IV and
encrypt as one job)?
I see an option to get random data, but I was thinking if there is an
one shot option.
On Wed, Apr 22, 2015 at 4:43 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>
> On 22/04/2015 10:51, Catalin Vasile wrote:
>> If we want a mainstream userspace backend that could interact with a
>> lot of crypto engines, we could use OpenSSL (it can actually use
>> cryptodev and AF_ALG as engines).
>> For now, until mid June (my diploma project presentation) I still want
>> to use vhost as a backend for the sole purpose of having a finished
>> backend which now I have a good grasp upon.
>> If the finished work would be good enough work to be merged upstream
>> will be talked later.
>> As a GSoC project, OpenSSL as a backend would continue the
>> virtio-crypto development, as it's not uncommon to have multiple types
>> of backends.
>> The current work on virtio-crypto qemu and guest module is pretty
>> backend agnostic, and could allow future development(use of other
>> backends and other features).
>
> OpenSSL's license is not compatible with QEMU, hence the suggestion of
> using gnutls.
>
> Paolo
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-04-22 8:51 ` Catalin Vasile
2015-04-22 13:43 ` Paolo Bonzini
@ 2015-04-23 8:33 ` Stefan Hajnoczi
1 sibling, 0 replies; 18+ messages in thread
From: Stefan Hajnoczi @ 2015-04-23 8:33 UTC (permalink / raw)
To: Catalin Vasile; +Cc: Paolo Bonzini, MA..., Kim Phillips
On Wed, Apr 22, 2015 at 9:51 AM, Catalin Vasile
<catalinvasile92@gmail.com> wrote:
> On Wed, Apr 22, 2015 at 11:20 AM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
>> On Tue, Apr 21, 2015 at 04:07:56PM +0200, Paolo Bonzini wrote:
>>> On 21/04/2015 16:07, Catalin Vasile wrote:
>>> > I don't get the part with getting cryptodev upstream.
>>> > I don't know what getting cryptodev upstream actually implies.
>>> > From what I know cryptodev is done (is a functional project) that was
>>> > rejected in the Linux Kernel
>>> > and there isn't actually way to get it upstream.
>>>
>>> Yes, I agree.
>>
>> The limitations of AF_ALG need to addressed somehow, so what is the next
>> step?
>>
>> Stefan
>
> If we want a mainstream userspace backend that could interact with a
> lot of crypto engines, we could use OpenSSL (it can actually use
> cryptodev and AF_ALG as engines).
> For now, until mid June (my diploma project presentation) I still want
> to use vhost as a backend for the sole purpose of having a finished
> backend which now I have a good grasp upon.
I understand.
Once you have a first approximation of the new virtio crypto device
interface, I suggest continuing the discussion with the VIRTIO working
group:
https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=virtio#feedback
If you send a virtio spec proposal you can get feedback.
Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-03-31 17:14 ` Stefan Hajnoczi
[not found] ` <CAOMf8tqdo+t3B1r5t-j84pdEaiA-c-8f1H0FF44DNcYqV=1t8w@mail.gmail.com>
@ 2015-04-21 14:09 ` Catalin Vasile
2015-04-21 14:11 ` Catalin Vasile
2015-04-21 14:24 ` Catalin Vasile
3 siblings, 0 replies; 18+ messages in thread
From: Catalin Vasile @ 2015-04-21 14:09 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Paolo Bonzini, MA..., Kim Phillips
I don't get the part with getting cryptodev upstream.
I don't know what getting cryptodev upstream actually implies.
>From what I know cryptodev is done (is a functional project) that was
rejected in the Linux Kernel
and there isn't actually way to get it upstream.
On Tue, Mar 31, 2015 at 8:14 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Mar 18, 2015 at 8:59 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> On 18/03/2015 18:05, Catalin Vasile wrote:
>>> cryptodev is not merged into upstream from what I know.
>>
>> Yes, but QEMU runs on non-Linux platforms too. Of course doing
>> vhost+driver or gnutls+driver would be already more than enough for the
>> summer.
>
> My suggestion is to work on the gnutls driver. Then, if you have time
> left, get cryptodev upstream (it can be part of your GSoC project
> plan).
>
> That approach is more beneficial in the long run. It will allow other
> applications to use the Crypto API too.
>
> vhost is good for exploiting kernel-only functionality (usually due to
> security/reliability boundaries). In this case the only reason for
> vhost is that the userspace API isn't ready yet. Use the opportunity
> to contribute to that effort instead of working around it.
>
> Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [GSoC] project proposal
2015-03-31 17:14 ` Stefan Hajnoczi
[not found] ` <CAOMf8tqdo+t3B1r5t-j84pdEaiA-c-8f1H0FF44DNcYqV=1t8w@mail.gmail.com>
2015-04-21 14:09 ` Catalin Vasile
@ 2015-04-21 14:11 ` Catalin Vasile
2015-04-21 14:24 ` Catalin Vasile
3 siblings, 0 replies; 18+ messages in thread
From: Catalin Vasile @ 2015-04-21 14:11 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Paolo Bonzini, MA...
I don't get the part with getting cryptodev upstream.
I don't know what getting cryptodev upstream actually implies.
>From what I know cryptodev is done (is a functional project) that was
rejected in the Linux Kernel
and there isn't actually way to get it upstream.
On Tue, Mar 31, 2015 at 8:14 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Mar 18, 2015 at 8:59 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> On 18/03/2015 18:05, Catalin Vasile wrote:
>>> cryptodev is not merged into upstream from what I know.
>>
>> Yes, but QEMU runs on non-Linux platforms too. Of course doing
>> vhost+driver or gnutls+driver would be already more than enough for the
>> summer.
>
> My suggestion is to work on the gnutls driver. Then, if you have time
> left, get cryptodev upstream (it can be part of your GSoC project
> plan).
>
> That approach is more beneficial in the long run. It will allow other
> applications to use the Crypto API too.
>
> vhost is good for exploiting kernel-only functionality (usually due to
> security/reliability boundaries). In this case the only reason for
> vhost is that the userspace API isn't ready yet. Use the opportunity
> to contribute to that effort instead of working around it.
>
> Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [GSoC] project proposal
2015-03-31 17:14 ` Stefan Hajnoczi
` (2 preceding siblings ...)
2015-04-21 14:11 ` Catalin Vasile
@ 2015-04-21 14:24 ` Catalin Vasile
2015-04-22 8:27 ` Stefan Hajnoczi
3 siblings, 1 reply; 18+ messages in thread
From: Catalin Vasile @ 2015-04-21 14:24 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Paolo Bonzini, MA...
Can you give me more details on GnuTLS?
I'm going through some documentation and code and I see that it
doesn't actually have separate encryption and authentication
primitives.
P.S. I have excluded Kim Philiphs from this mail because the mailing
list doesn't allow me to send e-mails to users not included on the
mailing list subscribers.
On Tue, Mar 31, 2015 at 8:14 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Wed, Mar 18, 2015 at 8:59 PM, Paolo Bonzini <pbonzini@redhat.com> wrote:
>> On 18/03/2015 18:05, Catalin Vasile wrote:
>>> cryptodev is not merged into upstream from what I know.
>>
>> Yes, but QEMU runs on non-Linux platforms too. Of course doing
>> vhost+driver or gnutls+driver would be already more than enough for the
>> summer.
>
> My suggestion is to work on the gnutls driver. Then, if you have time
> left, get cryptodev upstream (it can be part of your GSoC project
> plan).
>
> That approach is more beneficial in the long run. It will allow other
> applications to use the Crypto API too.
>
> vhost is good for exploiting kernel-only functionality (usually due to
> security/reliability boundaries). In this case the only reason for
> vhost is that the userspace API isn't ready yet. Use the opportunity
> to contribute to that effort instead of working around it.
>
> Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread* Re: [GSoC] project proposal
2015-04-21 14:24 ` Catalin Vasile
@ 2015-04-22 8:27 ` Stefan Hajnoczi
2015-04-22 8:42 ` Catalin Vasile
0 siblings, 1 reply; 18+ messages in thread
From: Stefan Hajnoczi @ 2015-04-22 8:27 UTC (permalink / raw)
To: Catalin Vasile; +Cc: Paolo Bonzini, MA...
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
On Tue, Apr 21, 2015 at 05:24:55PM +0300, Catalin Vasile wrote:
> Can you give me more details on GnuTLS?
> I'm going through some documentation and code and I see that it
> doesn't actually have separate encryption and authentication
> primitives.
gnutls is a natural choice because QEMU already uses it for TLS, but if
it doesn't support the primitives you need, then AF_ALG could be used
directly.
http://www.gnutls.org/manual/gnutls.html#Using-GnuTLS-as-a-cryptographic-library
Stefan
[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [GSoC] project proposal
2015-04-22 8:27 ` Stefan Hajnoczi
@ 2015-04-22 8:42 ` Catalin Vasile
0 siblings, 0 replies; 18+ messages in thread
From: Catalin Vasile @ 2015-04-22 8:42 UTC (permalink / raw)
To: Stefan Hajnoczi; +Cc: Paolo Bonzini, MA...
In those examples algorithms are used with standard protocols, not
with standalone algorithms.
CryptoAPI itself offers basic primitives such as encryption and
authentication which can be combined however you like.
Some combinations care result in other protocol implementations as well.
On Wed, Apr 22, 2015 at 11:27 AM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Tue, Apr 21, 2015 at 05:24:55PM +0300, Catalin Vasile wrote:
>> Can you give me more details on GnuTLS?
>> I'm going through some documentation and code and I see that it
>> doesn't actually have separate encryption and authentication
>> primitives.
>
> gnutls is a natural choice because QEMU already uses it for TLS, but if
> it doesn't support the primitives you need, then AF_ALG could be used
> directly.
>
> http://www.gnutls.org/manual/gnutls.html#Using-GnuTLS-as-a-cryptographic-library
>
> Stefan
^ permalink raw reply [flat|nested] 18+ messages in thread