summaryrefslogtreecommitdiffstats
path: root/crypto/chacha_generic.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2019-11-08 13:22:17 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2019-11-17 09:02:40 +0800
commit3a2f58f3ba4f6f44e33d1a48240d5eadb882cb59 (patch)
tree4db812f7ac84ba457c76b99f6fd06552bec60ff0 /crypto/chacha_generic.c
parent49aa7c00eddf8d8f462b0256bd82e81762d7b0c6 (diff)
downloadlinux-3a2f58f3ba4f6f44e33d1a48240d5eadb882cb59.tar.bz2
crypto: mips/chacha - wire up accelerated 32r2 code from Zinc
This integrates the accelerated MIPS 32r2 implementation of ChaCha into both the API and library interfaces of the kernel crypto stack. The significance of this is that, in addition to becoming available as an accelerated library implementation, it can also be used by existing crypto API code such as Adiantum (for block encryption on ultra low performance cores) or IPsec using chacha20poly1305. These are use cases that have already opted into using the abstract crypto API. In order to support Adiantum, the core assembler routine has been adapted to take the round count as a function argument rather than hardcoding it to 20. Co-developed-by: René van Dorst <opensource@vdorst.com> Signed-off-by: René van Dorst <opensource@vdorst.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/chacha_generic.c')
0 files changed, 0 insertions, 0 deletions