Re: [PATCH 0/3] Introduce the cypto engine framework
On 1 February 2016 at 22:33, Herbert Xu wrote: > On Tue, Jan 26, 2016 at 08:25:37PM +0800, Baolin Wang wrote: >> Now block cipher engines need to implement and maintain their own >> queue/thread >> for processing requests, moreover currently helpers provided for only the >> queue >> itself (in crypto_enqueue_request() and crypto_dequeue_request()) but they >> don't help with the mechanics of driving the hardware (things like running >> the >> request immediately, DMA map it or providing a thread to process the queue >> in) >> even though a lot of that code really shouldn't vary that much from device to >> device. >> >> This patch introduces the crypto engine framework to help the crypto hardware >> drivers to queue requests. > > Very nice, all applied. Thanks! Thanks a lot! > -- > Email: Herbert Xu > Home Page: http://gondor.apana.org.au/~herbert/ > PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- Baolin.wang Best Regards -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 0/3] Introduce the cypto engine framework
On Tue, Jan 26, 2016 at 08:25:37PM +0800, Baolin Wang wrote: > Now block cipher engines need to implement and maintain their own queue/thread > for processing requests, moreover currently helpers provided for only the > queue > itself (in crypto_enqueue_request() and crypto_dequeue_request()) but they > don't help with the mechanics of driving the hardware (things like running the > request immediately, DMA map it or providing a thread to process the queue in) > even though a lot of that code really shouldn't vary that much from device to > device. > > This patch introduces the crypto engine framework to help the crypto hardware > drivers to queue requests. Very nice, all applied. Thanks! -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
[PATCH 0/3] Introduce the cypto engine framework
Now block cipher engines need to implement and maintain their own queue/thread for processing requests, moreover currently helpers provided for only the queue itself (in crypto_enqueue_request() and crypto_dequeue_request()) but they don't help with the mechanics of driving the hardware (things like running the request immediately, DMA map it or providing a thread to process the queue in) even though a lot of that code really shouldn't vary that much from device to device. This patch introduces the crypto engine framework to help the crypto hardware drivers to queue requests. Baolin Wang (3): crypto: Introduce crypto_queue_len() helper function crypto: Introduce the block request crypto engine framework crypto: omap-aes: Support crypto engine framework crypto/Kconfig|3 + crypto/Makefile |1 + crypto/crypto_engine.c| 355 + drivers/crypto/Kconfig|1 + drivers/crypto/omap-aes.c | 97 ++--- include/crypto/algapi.h | 74 ++ 6 files changed, 478 insertions(+), 53 deletions(-) create mode 100644 crypto/crypto_engine.c -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html