Re: [Ocf-linux-users] Can cryptosoft be used as a bridge between OCF and Linux crypto APIs
Brought to you by:
david-m
From: Zhou, B. <b-...@ti...> - 2011-05-05 20:28:09
|
Yun, Thanks for your response. That's good news to me:-) By saying "can practically be used", I meant it can handle all use cases of OpenSSL; and the reason I asked that is because I see following comments in cryptosoft.c and it makes me feel that some cases might not be handled here. I'm not familiar with OpenSSL, so not sure if this logic prevents some openSSL usage. static void swcr_process_req(struct swcr_req *req) { struct swcr_data *sw; struct cryptop *crp = req->crp; struct cryptodesc *crd = req->crd; struct sk_buff *skb = (struct sk_buff *) crp->crp_buf; struct uio *uiop = (struct uio *) crp->crp_buf; int sg_num, sg_len, skip; dprintk("%s()\n", __FUNCTION__); /* * Find the crypto context. * * XXX Note that the logic here prevents us from having * XXX the same algorithm multiple times in a session * XXX (or rather, we can but it won't give us the right * XXX results). To do that, we'd need some way of differentiating * XXX between the various instances of an algorithm (so we can * XXX locate the correct crypto context). */ Regards, Bin -----Original Message----- From: Yun-Fong Loh [mailto:yl...@ed...] Sent: Thursday, May 05, 2011 4:05 PM To: Zhou, Bin Cc: ocf...@li... Subject: Re: [Ocf-linux-users] Can cryptosoft be used as a bridge between OCF and Linux crypto APIs I have used cryptosoft successfully with OpenSSL. What criteria are you using to determine whether it can "practically be used"? Yun On Thu, May 5, 2011 at 12:20 PM, Zhou, Bin <b-...@ti...> wrote: > Hi, > > We are doing Linux Async Crypto drivers for HW accelerators (AES, DES/3DES, > SHA1/MD5) and kernel version we are using now is 2.6.37. Since user space > APIs for Linux Crypto are still under development and not available in > 2.6.37, we are looking at putting OCF on top of Linux crypto APIs. We see > that there is cryptosoft module in OCF package which can translate between > OCF requests and Linux crypto requests. > > Does anybody know if cryptosoft can practically be used as a bridge to > handle all possible OpenSSL use cases? > > If it can not, is there any other existing software that is able to perform > as a bridge? > > > > Many thanks in advance! > > > > Bin > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > Ocf-linux-users mailing list > Ocf...@li... > https://lists.sourceforge.net/lists/listinfo/ocf-linux-users > > |