]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ppc/sha256 - glue
authorMarkus Stockhausen <stockhausen@collogia.de>
Fri, 30 Jan 2015 14:39:29 +0000 (15:39 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Feb 2015 09:48:46 +0000 (22:48 +1300)
commit91513574f5487d014859c5e3d1a768916f68b541
treef1db3d62383317efeae18a54d019864abb49f566
parent7172e2e80d2999f7b6e1a3339659e64fbc3e8a5c
crypto: ppc/sha256 - glue

Glue code for crypto infrastructure. Call the assembler
code where required. Disable preemption during calculation
and enable SPE instructions in the kernel prior to the
call. Avoid to disable preemption for too long.

Take a little care about small input data. Kick out early
for input chunks < 64 bytes and replace memset for context
cleanup with simple loop.

Signed-off-by: Markus Stockhausen <stockhausen@collogia.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/powerpc/crypto/sha256_spe_glue.c [new file with mode: 0644]