Re: Question about ahash export and import

2017-11-24 Thread Herbert Xu
On Fri, Nov 24, 2017 at 02:35:04PM +0100, Kamil Konieczny wrote: > > I have more questions, this time about HMAC export/import. > In doc, there is stated that key can be copied into context transformation. > > Should .export copy request context _and_ key used ? Or not ? The key is stored in the

Re: Question about ahash export and import

2017-11-24 Thread Kamil Konieczny
On 27.09.2017 11:08, Herbert Xu wrote: > On Tue, Sep 26, 2017 at 01:09:05PM +0200, Kamil Konieczny wrote: >> >> Can import() be called without _any_ init(), for example >> after reboot of machine ? Is following scenario valid: > > Of course it can. import must restore the state of the request >

Re: Question about ahash export and import

2017-09-28 Thread Herbert Xu
On Wed, Sep 27, 2017 at 04:59:56PM +0200, Christophe LEROY wrote: > > Can we consider that once an export has been done, no new update call will > be performed prior to doing an init or an import ? Or should it be possible > to continue with an update or a final/finup call after an export ? No

Re: Question about ahash export and import

2017-09-27 Thread Christophe LEROY
Le 27/09/2017 à 11:08, Herbert Xu a écrit : On Tue, Sep 26, 2017 at 01:09:05PM +0200, Kamil Konieczny wrote: Can import() be called without _any_ init(), for example after reboot of machine ? Is following scenario valid: Of course it can. import must restore the state of the request to

Re: Question about ahash export and import

2017-09-27 Thread Herbert Xu
On Tue, Sep 26, 2017 at 01:09:05PM +0200, Kamil Konieczny wrote: > > Can import() be called without _any_ init(), for example > after reboot of machine ? Is following scenario valid: Of course it can. import must restore the state of the request to that at the time when export was called.

Re: Question about ahash export and import

2017-09-26 Thread Kamil Konieczny
On 26.09.2017 12:34, Gilad Ben-Yossef wrote: > On Tue, Sep 26, 2017 at 12:36 PM, Christophe LEROY > wrote: >> Hello, >> >> Today, the talitos driver dma maps/unmaps context and keys at every single >> request. >> I'm looking at doing the dma mapping at hash init and doing

Re: Question about ahash export and import

2017-09-26 Thread Gilad Ben-Yossef
On Tue, Sep 26, 2017 at 12:36 PM, Christophe LEROY wrote: > Hello, > > Today, the talitos driver dma maps/unmaps context and keys at every single > request. > I'm looking at doing the dma mapping at hash init and doing unmapping at > final/finup/digest > > However, I'm

Question about ahash export and import

2017-09-26 Thread Christophe LEROY
Hello, Today, the talitos driver dma maps/unmaps context and keys at every single request. I'm looking at doing the dma mapping at hash init and doing unmapping at final/finup/digest However, I'm wondering how to manage hash exports and imports. I was initially thinking about doing a