aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/chacha20 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chacha20-arm: use proper reteq macro instead of bxeqJason A. Donenfeld2018-10-021-1/+2
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* crypto: use ZINC_ARCH macrosJason A. Donenfeld2018-10-021-4/+4
|
* chacha20: split chacha20_ctx into unionJason A. Donenfeld2018-10-024-24/+24
| | | | This avoids casts and makes counter increments obvious.
* crypto: add missing static keyword to fpu init functionsJason A. Donenfeld2018-10-021-1/+1
|
* crypto: document what's used from <crypto/ beside #includeJason A. Donenfeld2018-10-021-1/+1
|
* crypto: WARN_ON in module_init if selftest failsJason A. Donenfeld2018-10-021-1/+1
| | | | | | | If it's a built-in and initcall fails, it won't be fatal. So we should at least be loud. Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* chacha20: feed fpu functions PAGE_SIZE at a timeJason A. Donenfeld2018-10-024-23/+54
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* chacha20: test multiple page span in selftestJason A. Donenfeld2018-10-021-0/+1
|
* crypto: prefer IS_ENABLED to ifdefsJason A. Donenfeld2018-10-023-62/+37
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* crypto: rename DEBUG to SELFTESTJason A. Donenfeld2018-09-251-1/+1
| | | | | Also we make selftest errors of type err, so that they're obvious in dmesg.
* chacha20-arm,poly1305-arm: fix big-endian aarch64Jason A. Donenfeld2018-09-251-9/+9
| | | | Suggested-by: Andy Polyakov <appro@openssl.org>
* chacha20-mips32r2: reduce stack and branches in loop, refactor jumptable handlingRené van Dorst2018-09-251-79/+94
| | | | Signed-off-by: René van Dorst <opensource@vdorst.com>
* hchacha20: keep in native endian in wordsJason A. Donenfeld2018-09-255-30/+30
|
* chacha20-arm: remove unused preamblesJason A. Donenfeld2018-09-242-30/+1
|
* chacha20-arm: updated scalar code from AndyJason A. Donenfeld2018-09-231-310/+273
|
* crypto-arm: rework KERNEL_MODE_NEON handling againJason A. Donenfeld2018-09-233-8/+5
|
* chacha20-arm: use new scalar implementationJason A. Donenfeld2018-09-232-569/+1208
| | | | | It turns out this is faster than NEON on some chips, so it's nice to have.
* chacha20-mips32r2: reduce jumptable entry size and stack usageRené van Dorst2018-09-221-39/+48
| | | | Signed-off-by: René van Dorst <opensource@vdorst.com>
* chacha20-mips32r2: use simpler calling conventionJason A. Donenfeld2018-09-212-179/+143
| | | | | | | Since we now set up the block in the generic code, we can rely on that to use fewer variables and reduce stack pressure within the MIPS code. This in turn means we have more registers and more uniformity, so we're able to rewrite quite a bit.
* chacha20-arm: go with Ard's version to optimize for Cortex-A7Jason A. Donenfeld2018-09-215-732/+586
|
* chacha20-mips32r2: remove reorder directivesRené van Dorst2018-09-211-107/+68
| | | | | | | | This requires some minimal rearranging to make work, but for the most part as does the right thing, provided we pass it an optimization flag. Suggested-by: Paul Burton <paul.burton@mips.com> Signed-off-by: René van Dorst <opensource@vdorst.com>
* chacha20-mips32r2: fix typo to allow reorder againRené van Dorst2018-09-211-1/+1
| | | | | Reported-by: Paul Burton <paul.burton@mips.com> Signed-off-by: René van Dorst <opensource@vdorst.com>
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-208-16/+16
| | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments.
* crypto: explicitly dual licenseJason A. Donenfeld2018-09-208-8/+8
| | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de>
* chacha20: prefer crypto_xor_cpy to avoid memmoveJason A. Donenfeld2018-09-201-5/+3
| | | | Suggested-by: Eric Biggers <ebiggers@kernel.org>
* chacha20: add independent self testJason A. Donenfeld2018-09-181-0/+6
| | | | | This was already tested from the chacha20poly1305 test, but it's useful to be able to test this in isolation too.
* chacha20-x86_64: use correct cut off for avx512-vlJason A. Donenfeld2018-09-181-1/+1
|
* crypto: allow for disabling simd in zinc modulesJason A. Donenfeld2018-09-182-2/+7
|
* chacha20-x86_64: more limited cascadeJason A. Donenfeld2018-09-181-5/+4
|
* crypto: turn Zinc into individual modulesJason A. Donenfeld2018-09-184-7/+28
|
* crypto: do not use -include trickJason A. Donenfeld2018-09-174-11/+7
|
* chacha20-x86_64: don't activate simd for small blocksJason A. Donenfeld2018-09-171-1/+2
|
* crypto: pass simd by referenceJason A. Donenfeld2018-09-174-13/+13
|
* chacha20-x86_64: cascade down implementationsJason A. Donenfeld2018-09-171-3/+3
|
* crypto: make MITJason A. Donenfeld2018-09-168-8/+8
|
* chacha20-arm: swap scalar and neon functionsJason A. Donenfeld2018-09-131-697/+697
| | | | This brings us closer to the original code.
* chacha20: add constant for words in blockJason A. Donenfeld2018-09-121-2/+2
|
* crypto: use CRYPTOGAMS licenseJason A. Donenfeld2018-09-063-9/+9
|
* crypto: import zincJason A. Donenfeld2018-09-038-0/+6871