Re: Async Crypto API

2010-02-08 Thread Herbert Xu
On Tue, Feb 02, 2010 at 03:46:58PM +0200, Dmitry Kasatkin wrote: > in sync API final() does not have any data. > > Is async driver also should ignore req->src in final() call? Yes req->src can be ignored in final. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~

Re: Async Crypto API

2010-02-08 Thread Herbert Xu
On Tue, Feb 02, 2010 at 02:17:51PM +0200, Dmitry Kasatkin wrote: > Hi, > > In the case when finup() is not used, just update/update/../final > driver finalize calculation from the final function. > > It takes a time and if it may not sleep, can final() also return > EINPROGRESS? Sure, final can

Re: Async Crypto API

2010-02-02 Thread Dmitry Kasatkin
in sync API final() does not have any data. Is async driver also should ignore req->src in final() call? - Dmitry Kasatkin Dmitry (Nokia-D/Helsinki) wrote: > Hi, > > It actually would not make sense as final() suppose to cleanup > everything and in the case of EINPROGRESS we can not do it. > >

Re: Async Crypto API

2010-02-02 Thread Dmitry Kasatkin
Hi, It actually would not make sense as final() suppose to cleanup everything and in the case of EINPROGRESS we can not do it. So the question how then to "wait for completion" of the hash by HW if not to use finup() - Dmitry Kasatkin Dmitry (Nokia-D/Helsinki) wrote: > Hi, > > In the case when

Re: Async Crypto API

2010-02-02 Thread Dmitry Kasatkin
Hi, In the case when finup() is not used, just update/update/../final driver finalize calculation from the final function. It takes a time and if it may not sleep, can final() also return EINPROGRESS? Thanks, Dmitry ext Herbert Xu wrote: > Dmitry Kasatkin wrote: > >> Hello, >> >> I have on

Re: Async Crypto API

2010-01-29 Thread Herbert Xu
On Wed, Jan 27, 2010 at 08:45:12AM +0200, Dmitry Kasatkin wrote: > Hi, > > 1 more question. > > >From what context "crypto_completion_t" can be called? > irq/tasklet/process > or something else? tasklet or process with BH off. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herber

Re: Async Crypto API

2010-01-26 Thread Dmitry Kasatkin
Hi, 1 more question. >From what context "crypto_completion_t" can be called? irq/tasklet/process or something else? Thanks, Dmitry ext Herbert Xu wrote: > Dmitry Kasatkin wrote: > >> Hello, >> >> I have one question about async api. >> >> I work on AHASH driver and wonder about one thing

Re: Async Crypto API

2010-01-22 Thread Herbert Xu
Dmitry Kasatkin wrote: > Hello, > > I have one question about async api. > > I work on AHASH driver and wonder about one thing. > > while calculating hash, client might call many times > > ahash_request_set_crypt(req, &sg, sha1, len); > crypto_ahash_update(req); > .. > .. > ahash_request_set_c