Re: [PATCH v3 1/1] crypto: engine: permit to enqueue ashash_request

2016-06-12 Thread Herbert Xu
On Fri, Jun 10, 2016 at 04:43:09PM +0200, LABBE Corentin wrote: > > So I need to split do_one_request to cipher_one_request/hash_one_request. > Same with prepare_request to prepare_hash_request/prepare_cipher_request. > With the choice of each function done in crypto_engine.c. Yes. As a general r

Re: [PATCH v3 1/1] crypto: engine: permit to enqueue ashash_request

2016-06-10 Thread LABBE Corentin
On Tue, Jun 07, 2016 at 06:31:39PM +0800, Herbert Xu wrote: > On Thu, Jun 02, 2016 at 03:13:32PM +0200, LABBE Corentin wrote: > > > > static int omap_aes_prepare_req(struct crypto_engine *engine, > > - struct ablkcipher_request *req) > > + struct

Re: [PATCH v3 1/1] crypto: engine: permit to enqueue ashash_request

2016-06-07 Thread Herbert Xu
On Thu, Jun 02, 2016 at 03:13:32PM +0200, LABBE Corentin wrote: > > static int omap_aes_prepare_req(struct crypto_engine *engine, > - struct ablkcipher_request *req) > + struct crypto_async_request *areq) > { > + struct ablkcipher_reques

[PATCH v3 1/1] crypto: engine: permit to enqueue ashash_request

2016-06-02 Thread LABBE Corentin
The current crypto engine allow only ablkcipher_request to be enqueued. Thus denying any use of it for hardware that also handle hash algo. This patch convert all ablkcipher_request references to the more general crypto_async_request. Since the crypto engine is now generalist, this patch rename c