Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | chacha20: do not define unused asm function | Jason A. Donenfeld | 2018-12-07 | 1 | -4/+2 |
| | | | | | | This causes RAP to be unhappy, and we're not using it anyway. Reported-by: Ivan J. <parazyd@dyne.org> | ||||
* | chacha20,poly1305: simplify perlasm fanciness | Jason A. Donenfeld | 2018-12-07 | 2 | -36/+32 |
| | |||||
* | chacha20,poly1305: do not use xlate | Jason A. Donenfeld | 2018-11-19 | 1 | -25/+34 |
| | |||||
* | chacha20,poly1305: don't do compiler testing in generator and remove xor helper | Jason A. Donenfeld | 2018-11-15 | 1 | -15/+19 |
| | |||||
* | chacha20,poly1305: fix up for win64 | Samuel Neves | 2018-11-15 | 1 | -1/+1 |
| | | | | | | | These don't help us, but it is important to keep this working for when it's re-added to cryptogams. Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: specialize to wireguard | Jason A. Donenfeld | 2018-11-15 | 1 | -12/+21 |
| | |||||
* | chacha20: cleaner function declarations | Samuel Neves | 2018-11-14 | 1 | -23/+23 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: normalize names | Samuel Neves | 2018-11-14 | 1 | -71/+71 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: fixup win64 stack offsets | Samuel Neves | 2018-11-14 | 1 | -129/+129 |
| | | | | | | We don't need to do this for kernel purposes, but it's polite to leave things unbroken. Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: simplify stack unwinding on ChaCha20_ctr32 | Samuel Neves | 2018-11-14 | 1 | -10/+8 |
| | | | | | | objtool did not quite understand the stack arithmetic employed here. Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: use DRAP idiom | Samuel Neves | 2018-11-14 | 1 | -236/+235 |
| | | | | | | This effectively means swapping the usage of %r9 and %r10 globally. Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: add hchacha_ssse3 | Samuel Neves | 2018-11-14 | 1 | -0/+39 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: begin adapting to kernel setting | Samuel Neves | 2018-11-14 | 1 | -67/+114 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20,poly1305: switch to perlasm originals on x86_64 | Samuel Neves | 2018-11-14 | 2 | -2632/+4005 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20,poly1305: use CONFIG_KERNEL_MODE_NEON in .pl on arm | Jason A. Donenfeld | 2018-11-14 | 2 | -2/+3 |
| | | | | | | While Andy is right to desire a separation between compiler defines and project defines, there are simply too many odd kernel configurations and we require testing for CONFIG_KERNEL_MODE_NEON. | ||||
* | chacha20,poly1305: switch to perlasm originals on mips and arm | Jason A. Donenfeld | 2018-11-14 | 5 | -3802/+2852 |
| | | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file. | ||||
* | global: various formatting tweeks | Jason A. Donenfeld | 2018-11-13 | 1 | -1/+0 |
| | |||||
* | crypto: test all SIMD combinations | Jason A. Donenfeld | 2018-10-06 | 4 | -5/+9 |
| | |||||
* | global: rename include'd C files to be .c | Jason A. Donenfeld | 2018-10-06 | 4 | -7/+7 |
| | | | | | | | | | This is done by 259 other files in the kernel tree: linux $ rg '#include.*\.c' -l | wc -l 259 Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | chacha20-arm: use proper reteq macro instead of bxeq | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+2 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | crypto: use ZINC_ARCH macros | Jason A. Donenfeld | 2018-10-02 | 1 | -4/+4 |
| | |||||
* | chacha20: split chacha20_ctx into union | Jason A. Donenfeld | 2018-10-02 | 4 | -24/+24 |
| | | | | This avoids casts and makes counter increments obvious. | ||||
* | crypto: add missing static keyword to fpu init functions | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | crypto: document what's used from <crypto/ beside #include | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+1 |
| | |||||
* | crypto: WARN_ON in module_init if selftest fails | Jason A. Donenfeld | 2018-10-02 | 1 | -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 time | Jason A. Donenfeld | 2018-10-02 | 4 | -23/+54 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | chacha20: test multiple page span in selftest | Jason A. Donenfeld | 2018-10-02 | 1 | -0/+1 |
| | |||||
* | crypto: prefer IS_ENABLED to ifdefs | Jason A. Donenfeld | 2018-10-02 | 3 | -62/+37 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | crypto: rename DEBUG to SELFTEST | Jason A. Donenfeld | 2018-09-25 | 1 | -1/+1 |
| | | | | | Also we make selftest errors of type err, so that they're obvious in dmesg. | ||||
* | chacha20-arm,poly1305-arm: fix big-endian aarch64 | Jason A. Donenfeld | 2018-09-25 | 1 | -9/+9 |
| | | | | Suggested-by: Andy Polyakov <appro@openssl.org> | ||||
* | chacha20-mips32r2: reduce stack and branches in loop, refactor jumptable handling | René van Dorst | 2018-09-25 | 1 | -79/+94 |
| | | | | Signed-off-by: René van Dorst <opensource@vdorst.com> | ||||
* | hchacha20: keep in native endian in words | Jason A. Donenfeld | 2018-09-25 | 5 | -30/+30 |
| | |||||
* | chacha20-arm: remove unused preambles | Jason A. Donenfeld | 2018-09-24 | 2 | -30/+1 |
| | |||||
* | chacha20-arm: updated scalar code from Andy | Jason A. Donenfeld | 2018-09-23 | 1 | -310/+273 |
| | |||||
* | crypto-arm: rework KERNEL_MODE_NEON handling again | Jason A. Donenfeld | 2018-09-23 | 3 | -8/+5 |
| | |||||
* | chacha20-arm: use new scalar implementation | Jason A. Donenfeld | 2018-09-23 | 2 | -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 usage | René van Dorst | 2018-09-22 | 1 | -39/+48 |
| | | | | Signed-off-by: René van Dorst <opensource@vdorst.com> | ||||
* | chacha20-mips32r2: use simpler calling convention | Jason A. Donenfeld | 2018-09-21 | 2 | -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-A7 | Jason A. Donenfeld | 2018-09-21 | 5 | -732/+586 |
| | |||||
* | chacha20-mips32r2: remove reorder directives | René van Dorst | 2018-09-21 | 1 | -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 again | René van Dorst | 2018-09-21 | 1 | -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 line | Jason A. Donenfeld | 2018-09-20 | 8 | -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 license | Jason A. Donenfeld | 2018-09-20 | 8 | -8/+8 |
| | | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de> | ||||
* | chacha20: prefer crypto_xor_cpy to avoid memmove | Jason A. Donenfeld | 2018-09-20 | 1 | -5/+3 |
| | | | | Suggested-by: Eric Biggers <ebiggers@kernel.org> | ||||
* | chacha20: add independent self test | Jason A. Donenfeld | 2018-09-18 | 1 | -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-vl | Jason A. Donenfeld | 2018-09-18 | 1 | -1/+1 |
| | |||||
* | crypto: allow for disabling simd in zinc modules | Jason A. Donenfeld | 2018-09-18 | 2 | -2/+7 |
| | |||||
* | chacha20-x86_64: more limited cascade | Jason A. Donenfeld | 2018-09-18 | 1 | -5/+4 |
| | |||||
* | crypto: turn Zinc into individual modules | Jason A. Donenfeld | 2018-09-18 | 4 | -7/+28 |
| | |||||
* | crypto: do not use -include trick | Jason A. Donenfeld | 2018-09-17 | 4 | -11/+7 |
| |