]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit330607614b6a24e41dd7ddde10975654c0ae7680
tree0dae44fcee9143d3d4fac75ec543c12cd34f1784
parentbee8a48c08c77ba68837ad27ec2b6dd92a28f019
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]