crypto: sha256-mb - SHA256 multibuffer job manager and glue code
authorMegha Dey <megha.dey@intel.com>
Fri, 24 Jun 2016 01:40:42 +0000 (18:40 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 27 Jun 2016 08:57:41 +0000 (16:57 +0800)
commitf876f440df3973ab7f1d20e3d34d000fc9422a78
tree0dae44fcee9143d3d4fac75ec543c12cd34f1784
parentab1778752921800468057d996f9a3bb9426870c3
crypto: sha256-mb - SHA256 multibuffer job manager and glue code

This patch introduces the multi-buffer job manager which is responsible for
submitting scatter-gather buffers from several SHA256 jobs to the
multi-buffer algorithm. It also contains the flush routine to that's
called by the crypto daemon to complete the job when no new jobs arrive
before the deadline of maximum latency of a SHA256 crypto job.

The SHA256 multi-buffer crypto algorithm is defined and initialized in
this patch.

Signed-off-by: Megha Dey <megha.dey@linux.intel.com>
Reviewed-by: Fenghua Yu <fenghua.yu@intel.com>
Reviewed-by: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/sha256-mb/Makefile [new file with mode: 0644]
arch/x86/crypto/sha256-mb/sha256_mb.c [new file with mode: 0644]