Re: [Cryptodev-linux-devel] question about how cryptodev-linux works with hardware crypto drivers

2013-02-28 Thread Nikos Mavrogiannopoulos
On 02/27/2013 01:45 AM, Zi Zhou wrote:

> I am new to cryptodev and HW acceleration. So my question is very
> basic. I have built cryptodev module and loaded to my kernel, the HW
> crypto driver is in development by other party, I don't quite know 
> how the 2 glue together. Is there any extra logic needed? If the HW
> crypto driver is not ready yet, does cryptodev knows to use kernel
> software crypto library? 


In kernels that support it cryptodev can provide the userspace with
information (see SIOP_FLAG_KERNEL_DRIVER_ONLY) on whether the driver for
a particular algorithm is hardware accelerated or not. GnuTLS uses that
information and does not use software algorithms in kernel.

regards,
Nikos


___
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel


[Cryptodev-linux-devel] question about how cryptodev-linux works with hardware crypto drivers

2013-02-26 Thread Zi Zhou
Hi,

I am new to cryptodev and HW acceleration. So my question is very basic.

I have built cryptodev module and loaded to my kernel, the HW crypto driver is 
in development by other party, I don't quite know
how the 2 glue together. Is there any extra logic needed? If the HW crypto 
driver is not ready yet, does cryptodev knows to use kernel software crypto 
library?
Is it done automatically in code or need special configuration in kernel or 
somewhere?

Thank you very much and appreciate your help!

Zi
___
Cryptodev-linux-devel mailing list
Cryptodev-linux-devel@gna.org
https://mail.gna.org/listinfo/cryptodev-linux-devel