crypto: sha-mb - multibuffer crypto infrastructure
authorTim Chen <tim.c.chen@linux.intel.com>
Thu, 31 Jul 2014 17:29:51 +0000 (10:29 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Aug 2014 12:32:25 +0000 (20:32 +0800)
commit1e65b81a90df50bf450193065cc9073b706b8dda
tree6f55a2f93bbe0b9011e2bd0f13ea2167e9a3b2d3
parent2ee507c472939db4b146d545352b8a7c79ef47f8
crypto: sha-mb - multibuffer crypto infrastructure

This patch introduces the multi-buffer crypto daemon which is responsible
for submitting crypto jobs in a work queue to the responsible multi-buffer
crypto algorithm.  The idea of the multi-buffer algorihtm is to put
data streams from multiple jobs in a wide (AVX2) register and then
take advantage of SIMD instructions to do crypto computation on several
buffers simultaneously.

The multi-buffer crypto daemon is also responsbile for flushing the
remaining buffers to complete the computation if no new buffers arrive
for a while.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/Kconfig
crypto/Makefile
crypto/mcryptd.c [new file with mode: 0644]
include/crypto/internal/hash.h
include/crypto/mcryptd.h [new file with mode: 0644]