]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: powerpc/sha1 - glue
authorMarkus Stockhausen <stockhausen@collogia.de>
Tue, 24 Feb 2015 19:36:45 +0000 (20:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 2 Mar 2015 10:22:20 +0000 (23:22 +1300)
commit7dfae41e6d906a89f9ead8f237d3b80360beef28
treee86cfc8ea6496b3327fb52a5c56de1441a7ad738
parentd3bb8c3e9c7e8f79049df4da28f4a9cee8f9aaf0
crypto: powerpc/sha1 - 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/sha1_spe_glue.c [new file with mode: 0644]