Thread: [Ocf-linux-users] Clarification regarding kernel talitos & OCF talitios driver
Brought to you by:
david-m
From: Shivdas G. <shi...@gm...> - 2011-02-03 07:52:36
|
Hi All, I have seen two implementation for the crypto acceleration driver talitos.c on in kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c I understand that crypto/ocf/talitos/talitos.c is a driver based on OCF-linux framework, but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c or in simple words why there are two similar drivers are available in the kernel? Thanks for any help. Thanks and regards, Shivdas Gujare |
From: David M. <dav...@mc...> - 2011-02-03 08:49:53
|
Jivin Shivdas Gujare lays it down ... > Hi All, > > I have seen two implementation for the crypto acceleration driver > talitos.c on in > kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c > > I understand that crypto/ocf/talitos/talitos.c is a driver based on > OCF-linux framework, > but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c > > or in simple words why there are two similar drivers are available in > the kernel? Only one is available in the kernel, kernel/drivers/crypto/talitios.c. The other one is part of OCF, and OCF is not part of the linux kernel :-) The OCF version of the talitos driver was written before linux had adequate HW crypto support, but now it does and a rtalitos driver has been written for and accepted into the kernel. Hope that helps :-) Cheers, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |
From: Shivdas G. <shi...@gm...> - 2011-02-03 09:07:05
|
Hi David, thanks for your prompt reply. So, do you have any idea how drivers/crypto/talitos.c driver is accessible via userspace, much like how OCF taltios driver is accessible to openssl via /dev/crypto. I am not able to find as of the interface from userspace to the kernel driver drivers/crypto/talitos.c. Thanks and Regards, Shihvdas Gujare On Thu, Feb 3, 2011 at 2:04 PM, David McCullough <dav...@mc...> wrote: > > Jivin Shivdas Gujare lays it down ... >> Hi All, >> >> I have seen two implementation for the crypto acceleration driver >> talitos.c on in >> kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c >> >> I understand that crypto/ocf/talitos/talitos.c is a driver based on >> OCF-linux framework, >> but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c >> >> or in simple words why there are two similar drivers are available in >> the kernel? > > Only one is available in the kernel, kernel/drivers/crypto/talitios.c. > > The other one is part of OCF, and OCF is not part of the linux kernel :-) > > The OCF version of the talitos driver was written before linux had adequate > HW crypto support, but now it does and a rtalitos driver has been written > for and accepted into the kernel. > > Hope that helps :-) > > Cheers, > Davidm > > -- > David McCullough, dav...@mc..., Ph:+61 734352815 > McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org > |
From: David M. <dav...@mc...> - 2011-02-03 09:55:57
|
Jivin Shivdas Gujare lays it down ... > Hi David, > > thanks for your prompt reply. > > So, do you have any idea how drivers/crypto/talitos.c driver is > accessible via userspace, > much like how OCF taltios driver is accessible to openssl via /dev/crypto. > > I am not able to find as of the interface from userspace to the kernel > driver drivers/crypto/talitos.c. You can still use OCF with its cryptosoft driver to access the in-kernel talitos driver from user space. OCF's cryptosoft driver utilises the in-kernel crypto drivers to do the work, Cheers, Davidm > > Thanks and Regards, > Shihvdas Gujare > > On Thu, Feb 3, 2011 at 2:04 PM, David McCullough > <dav...@mc...> wrote: > > > > Jivin Shivdas Gujare lays it down ... > >> Hi All, > >> > >> I have seen two implementation for the crypto acceleration driver > >> talitos.c on in > >> kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c > >> > >> I understand that crypto/ocf/talitos/talitos.c is a driver based on > >> OCF-linux framework, > >> but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c > >> > >> or in simple words why there are two similar drivers are available in > >> the kernel? > > > > Only one is available in the kernel, kernel/drivers/crypto/talitios.c. > > > > The other one is part of OCF, ??and OCF is not part of the linux kernel :-) > > > > The OCF version of the talitos driver was written before linux had adequate > > HW crypto support, ??but now it does and a rtalitos driver has been written > > for and accepted into the kernel. > > > > Hope that helps :-) > > > > Cheers, > > Davidm > > > > -- > > David McCullough, ?? ?? ??dav...@mc..., ??Ph:+61 734352815 > > McAfee - SnapGear ?? ?? ??http://www.mcafee.com ?? ?? ?? ?? http://www.uCdot.org > > > > -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |
From: Shivdas G. <shi...@gm...> - 2011-02-03 11:40:38
|
On Thu, Feb 3, 2011 at 3:23 PM, David McCullough <dav...@mc...> wrote: > > Jivin Shivdas Gujare lays it down ... >> Hi David, >> >> thanks for your prompt reply. >> >> So, do you have any idea how drivers/crypto/talitos.c driver is >> accessible via userspace, >> much like how OCF taltios driver is accessible to openssl via /dev/crypto. >> >> I am not able to find as of the interface from userspace to the kernel >> driver drivers/crypto/talitos.c. > > You can still use OCF with its cryptosoft driver to access the in-kernel > talitos driver from user space. OCF's cryptosoft driver utilises the > in-kernel crypto drivers to do the work, Thanks David, do you know any other way to access kernel hardware acceleration drivers from userspace other than using OCF framework? -Regards, Shivdas > > Cheers, > Davidm > >> >> Thanks and Regards, >> Shihvdas Gujare >> >> On Thu, Feb 3, 2011 at 2:04 PM, David McCullough >> <dav...@mc...> wrote: >> > >> > Jivin Shivdas Gujare lays it down ... >> >> Hi All, >> >> >> >> I have seen two implementation for the crypto acceleration driver >> >> talitos.c on in >> >> kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c >> >> >> >> I understand that crypto/ocf/talitos/talitos.c is a driver based on >> >> OCF-linux framework, >> >> but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c >> >> >> >> or in simple words why there are two similar drivers are available in >> >> the kernel? >> > >> > Only one is available in the kernel, kernel/drivers/crypto/talitios.c. >> > >> > The other one is part of OCF, ??and OCF is not part of the linux kernel :-) >> > >> > The OCF version of the talitos driver was written before linux had adequate >> > HW crypto support, ??but now it does and a rtalitos driver has been written >> > for and accepted into the kernel. >> > >> > Hope that helps :-) >> > >> > Cheers, >> > Davidm >> > >> > -- >> > David McCullough, ?? ?? ??dav...@mc..., ??Ph:+61 734352815 >> > McAfee - SnapGear ?? ?? ??http://www.mcafee.com ?? ?? ?? ?? http://www.uCdot.org >> > >> >> > > -- > David McCullough, dav...@mc..., Ph:+61 734352815 > McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org > |
From: David M. <dav...@mc...> - 2011-02-03 11:54:25
|
Jivin Shivdas Gujare lays it down ... > On Thu, Feb 3, 2011 at 3:23 PM, David McCullough > <dav...@mc...> wrote: > > > > Jivin Shivdas Gujare lays it down ... > >> Hi David, > >> > >> thanks for your prompt reply. > >> > >> So, do you have ??any idea how drivers/crypto/talitos.c driver is > >> accessible via userspace, > >> much like how OCF taltios driver is accessible to openssl via /dev/crypto. > >> > >> I am not able to find as of the interface from userspace to the kernel > >> driver drivers/crypto/talitos.c. > > > > You can still use OCF with its cryptosoft driver to access the in-kernel > > talitos driver from user space. ??OCF's cryptosoft driver utilises the > > in-kernel crypto drivers to do the work, > > Thanks David, > > do you know any other way to access kernel hardware acceleration > drivers from userspace > other than using OCF framework? There are a few OCF like (and cryptodev compatible) variants. I don't know of enything specific for linux that is usable and potentially better, Cheers, Davidm > >> Thanks and Regards, > >> Shihvdas Gujare > >> > >> On Thu, Feb 3, 2011 at 2:04 PM, David McCullough > >> <dav...@mc...> wrote: > >> > > >> > Jivin Shivdas Gujare lays it down ... > >> >> Hi All, > >> >> > >> >> I have seen two implementation for the crypto acceleration driver > >> >> talitos.c on in > >> >> kernel/drivers/crypto/talitios.c and another in crypto/ocf/talitos/talitos.c > >> >> > >> >> I understand that crypto/ocf/talitos/talitos.c is a driver based on > >> >> OCF-linux framework, > >> >> but not sure how is it related to kernel driver kernel/drivers/crypto/talitios.c > >> >> > >> >> or in simple words why there are two similar drivers are available in > >> >> the kernel? > >> > > >> > Only one is available in the kernel, kernel/drivers/crypto/talitios.c. > >> > > >> > The other one is part of OCF, ??and OCF is not part of the linux kernel :-) > >> > > >> > The OCF version of the talitos driver was written before linux had adequate > >> > HW crypto support, ??but now it does and a rtalitos driver has been written > >> > for and accepted into the kernel. > >> > > >> > Hope that helps :-) > >> > > >> > Cheers, > >> > Davidm > >> > > >> > -- > >> > David McCullough, ?? ?? ??dav...@mc..., ??Ph:+61 734352815 > >> > McAfee - SnapGear ?? ?? ??http://www.mcafee.com ?? ?? ?? ?? http://www.uCdot.org > >> > > >> > >> > > > > -- > > David McCullough, ?? ?? ??dav...@mc..., ??Ph:+61 734352815 > > McAfee - SnapGear ?? ?? ??http://www.mcafee.com ?? ?? ?? ?? http://www.uCdot.org > > > > -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |
From: Kim P. <kim...@fr...> - 2011-02-03 17:42:05
|
On Thu, 3 Feb 2011 21:50:29 +1000 David McCullough <dav...@mc...> wrote: > Jivin Shivdas Gujare lays it down ... > > do you know any other way to access kernel hardware acceleration > > drivers from userspace > > other than using OCF framework? > > There are a few OCF like (and cryptodev compatible) variants. I don't know > of enything specific for linux that is usable and potentially better, Linus recently pulled this: commit 03c8efc1ffeb6b82a22c1af8dd908af349563314 Author: Herbert Xu <he...@go...> Date: Tue Oct 19 21:12:39 2010 +0800 crypto: af_alg - User-space interface for Crypto API and here's Herbert original post that has an example userspace call sequence: http://www.mail-archive.com/lin...@vg.../msg04903.html Cheers, Kim |
From: David M. <dav...@mc...> - 2011-02-03 21:33:28
|
Jivin Kim Phillips lays it down ... > On Thu, 3 Feb 2011 21:50:29 +1000 > David McCullough <dav...@mc...> wrote: > > > Jivin Shivdas Gujare lays it down ... > > > do you know any other way to access kernel hardware acceleration > > > drivers from userspace > > > other than using OCF framework? > > > > There are a few OCF like (and cryptodev compatible) variants. I don't know > > of enything specific for linux that is usable and potentially better, > > Linus recently pulled this: > > commit 03c8efc1ffeb6b82a22c1af8dd908af349563314 > Author: Herbert Xu <he...@go...> > Date: Tue Oct 19 21:12:39 2010 +0800 > > crypto: af_alg - User-space interface for Crypto API > > and here's Herbert original post that has an example userspace call > sequence: > > http://www.mail-archive.com/lin...@vg.../msg04903.html Thanks Kim, I think I saw the original email but I didn't see the code posted, in fact, seems like I have not been getting the linux-crypto mails for a little while :-( Cheers, Davidm -- David McCullough, dav...@mc..., Ph:+61 734352815 McAfee - SnapGear http://www.mcafee.com http://www.uCdot.org |
From: Shivdas G. <shi...@gm...> - 2011-02-04 04:30:52
|
Hi Kim, Thanks for your help. Regards, Shivdas Gujare On Thu, Feb 3, 2011 at 11:11 PM, Kim Phillips <kim...@fr...> wrote: > On Thu, 3 Feb 2011 21:50:29 +1000 > David McCullough <dav...@mc...> wrote: > >> Jivin Shivdas Gujare lays it down ... >> > do you know any other way to access kernel hardware acceleration >> > drivers from userspace >> > other than using OCF framework? >> >> There are a few OCF like (and cryptodev compatible) variants. I don't know >> of enything specific for linux that is usable and potentially better, > > Linus recently pulled this: > > commit 03c8efc1ffeb6b82a22c1af8dd908af349563314 > Author: Herbert Xu <he...@go...> > Date: Tue Oct 19 21:12:39 2010 +0800 > > crypto: af_alg - User-space interface for Crypto API > > and here's Herbert original post that has an example userspace call > sequence: > > http://www.mail-archive.com/lin...@vg.../msg04903.html > > Cheers, > > Kim > > |