Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | global: normalize -> clamp | Jason A. Donenfeld | 2019-01-23 | 4 | -17/+10 |
| | |||||
* | global: update copyright | Jason A. Donenfeld | 2019-01-07 | 31 | -31/+31 |
| | |||||
* | 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 | 3 | -75/+69 |
| | |||||
* | chacha20,poly1305: do not use xlate | Jason A. Donenfeld | 2018-11-19 | 3 | -1496/+73 |
| | |||||
* | poly1305: make frame pointers for auxiliary calls | Samuel Neves | 2018-11-17 | 1 | -31/+43 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20,poly1305: don't do compiler testing in generator and remove xor helper | Jason A. Donenfeld | 2018-11-15 | 2 | -30/+39 |
| | |||||
* | poly1305: cleanup leftover debugging changes | Jason A. Donenfeld | 2018-11-15 | 1 | -3/+3 |
| | |||||
* | poly1305: only export neon symbols when in use | Jason A. Donenfeld | 2018-11-15 | 1 | -2/+6 |
| | |||||
* | chacha20,poly1305: fix up for win64 | Samuel Neves | 2018-11-15 | 2 | -27/+29 |
| | | | | | | | 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> | ||||
* | perlasm: avoid rep ret | Jason A. Donenfeld | 2018-11-15 | 1 | -1/+1 |
| | | | | | | | | The original hardcodes returns as .byte 0xf3,0xc3, aka "rep ret". We replace this by "ret". "rep ret" was meant to help with AMD K8 chips, cf. http://repzret.org/p/repzret. It makes no sense to continue to use this kludge for code that won't even run on ancient AMD chips. | ||||
* | poly1305: specialize to wireguard | Jason A. Donenfeld | 2018-11-15 | 1 | -11/+20 |
| | |||||
* | chacha20: specialize to wireguard | Jason A. Donenfeld | 2018-11-15 | 2 | -20/+38 |
| | |||||
* | perlasm: cleanup whitespace | Jason A. Donenfeld | 2018-11-15 | 1 | -5/+5 |
| | |||||
* | poly1305: adjust to kernel | Samuel Neves | 2018-11-15 | 1 | -220/+291 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | 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 | 2 | -68/+116 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20,poly1305: switch to perlasm originals on x86_64 | Samuel Neves | 2018-11-14 | 5 | -5424/+9596 |
| | | | | 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 | 4 | -8/+11 |
| | | | | | | 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 | 11 | -6103/+5563 |
| | | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file. | ||||
* | global: various formatting tweeks | Jason A. Donenfeld | 2018-11-13 | 2 | -2/+1 |
| | |||||
* | curve25519-x86_64: this was relicensed to BSD-3-Clause upstream | Jason A. Donenfeld | 2018-10-27 | 1 | -1/+1 |
| | |||||
* | poly1305-donna64: mark large constants as ULL | Jason A. Donenfeld | 2018-10-27 | 1 | -24/+24 |
| | |||||
* | crypto: clean up remaining .h->.c | Jason A. Donenfeld | 2018-10-07 | 8 | -10/+10 |
| | |||||
* | crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1 | Jason A. Donenfeld | 2018-10-07 | 1 | -2/+2 |
| | | | | | | | | | | | Pros: clearer if you're not familiar with the shift idiom, uses kernel macro. Cons: doesn't work any more if the lvalue ever ceases to be a bool. Neutral: generates the same machine code. Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | crypto: disable broken implementations in selftests | Jason A. Donenfeld | 2018-10-07 | 1 | -9/+8 |
| | |||||
* | crypto: test all SIMD combinations | Jason A. Donenfeld | 2018-10-06 | 20 | -40/+82 |
| | |||||
* | global: rename include'd C files to be .c | Jason A. Donenfeld | 2018-10-06 | 19 | -28/+28 |
| | | | | | | | | | 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> | ||||
* | curve25519-arm: rearrange multiplications for better in-order performance | Jason A. Donenfeld | 2018-10-04 | 1 | -12/+12 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | curve25519-arm: writeback to base register when possible | Jason A. Donenfeld | 2018-10-04 | 1 | -58/+27 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | blake2s: always put a simd, even if not use()'d | Jason A. Donenfeld | 2018-10-03 | 1 | -2/+5 |
| | |||||
* | simd: introduce useful disabling macro | Jason A. Donenfeld | 2018-10-03 | 2 | -3/+2 |
| | |||||
* | curve25519-arm: adjust comment | Jason A. Donenfeld | 2018-10-03 | 1 | -2/+2 |
| | |||||
* | curve25519-arm: use new simd api | Jason A. Donenfeld | 2018-10-03 | 1 | -6/+9 |
| | |||||
* | 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> | ||||
* | global: change BUG_ON to WARN_ON | Jason A. Donenfeld | 2018-10-02 | 1 | -13/+7 |
| | | | | Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | poly1305: document rationale for base 2^26->2^64/32 conversion | Jason A. Donenfeld | 2018-10-02 | 2 | -0/+20 |
| | |||||
* | crypto: use ZINC_ARCH macros | Jason A. Donenfeld | 2018-10-02 | 2 | -9/+9 |
| | |||||
* | 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 | 4 | -4/+3 |
| | |||||
* | crypto: document what's used from <crypto/ beside #include | Jason A. Donenfeld | 2018-10-02 | 3 | -3/+3 |
| | |||||
* | crypto: WARN_ON in module_init if selftest fails | Jason A. Donenfeld | 2018-10-02 | 5 | -5/+5 |
| | | | | | | | 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> | ||||
* | poly1305-mips64: use compiler-defined macros in assembly | Jason A. Donenfeld | 2018-10-02 | 1 | -5/+10 |
| | | | | | | | Andy and I agreed it's more correct to use the compiler-defined macros in assembly code, and not the project specific macros. Suggested-by: Andy Polyakov <appro@openssl.org> | ||||
* | blake2s: rename arch function and use slicker le32 helper | Jason A. Donenfeld | 2018-10-02 | 2 | -11/+8 |
| | |||||
* | blake2s: feed fpu functions PAGE_SIZE at a time | Jason A. Donenfeld | 2018-10-02 | 1 | -14/+28 |
| |