Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | zinc: arm64: use cpu_get_elf_hwcap accessor for 5.2 | 2019-05-29 | 2 | -2/+2 | |
| | |||||
* | blake2s: remove outlen parameter from final | 2019-03-27 | 1 | -6/+5 | |
| | |||||
* | blake2s: simplify | 2019-03-27 | 1 | -38/+10 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | noise: store clamped key instead of raw key | 2019-02-03 | 4 | -14/+7 | |
| | |||||
* | chacha20poly1305: permit unaligned strides on certain platforms | 2019-02-03 | 1 | -18/+14 | |
| | | | | | | | The map allocations required to fix this are mostly slower than unaligned paths. Reported-by: Louis Sautier <sbraz@gentoo.org> | ||||
* | global: normalize -> clamp | 2019-01-23 | 4 | -17/+10 | |
| | |||||
* | global: update copyright | 2019-01-07 | 31 | -31/+31 | |
| | |||||
* | chacha20: do not define unused asm function | 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 | 2018-12-07 | 3 | -75/+69 | |
| | |||||
* | chacha20,poly1305: do not use xlate | 2018-11-19 | 3 | -1496/+73 | |
| | |||||
* | poly1305: make frame pointers for auxiliary calls | 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 | 2018-11-15 | 2 | -30/+39 | |
| | |||||
* | poly1305: cleanup leftover debugging changes | 2018-11-15 | 1 | -3/+3 | |
| | |||||
* | poly1305: only export neon symbols when in use | 2018-11-15 | 1 | -2/+6 | |
| | |||||
* | chacha20,poly1305: fix up for win64 | 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 | 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 | 2018-11-15 | 1 | -11/+20 | |
| | |||||
* | chacha20: specialize to wireguard | 2018-11-15 | 2 | -20/+38 | |
| | |||||
* | perlasm: cleanup whitespace | 2018-11-15 | 1 | -5/+5 | |
| | |||||
* | poly1305: adjust to kernel | 2018-11-15 | 1 | -220/+291 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: cleaner function declarations | 2018-11-14 | 1 | -23/+23 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: normalize names | 2018-11-14 | 1 | -71/+71 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: fixup win64 stack offsets | 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 | 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 | 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 | 2018-11-14 | 1 | -0/+39 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20: begin adapting to kernel setting | 2018-11-14 | 2 | -68/+116 | |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | chacha20,poly1305: switch to perlasm originals on x86_64 | 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 | 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 | 2018-11-14 | 11 | -6103/+5563 | |
| | | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file. | ||||
* | global: various formatting tweeks | 2018-11-13 | 2 | -2/+1 | |
| | |||||
* | curve25519-x86_64: this was relicensed to BSD-3-Clause upstream | 2018-10-27 | 1 | -1/+1 | |
| | |||||
* | poly1305-donna64: mark large constants as ULL | 2018-10-27 | 1 | -24/+24 | |
| | |||||
* | crypto: clean up remaining .h->.c | 2018-10-07 | 8 | -10/+10 | |
| | |||||
* | crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1 | 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 | 2018-10-07 | 1 | -9/+8 | |
| | |||||
* | crypto: test all SIMD combinations | 2018-10-06 | 20 | -40/+82 | |
| | |||||
* | global: rename include'd C files to be .c | 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 | 2018-10-04 | 1 | -12/+12 | |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | curve25519-arm: writeback to base register when possible | 2018-10-04 | 1 | -58/+27 | |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | blake2s: always put a simd, even if not use()'d | 2018-10-03 | 1 | -2/+5 | |
| | |||||
* | simd: introduce useful disabling macro | 2018-10-03 | 2 | -3/+2 | |
| | |||||
* | curve25519-arm: adjust comment | 2018-10-03 | 1 | -2/+2 | |
| | |||||
* | curve25519-arm: use new simd api | 2018-10-03 | 1 | -6/+9 | |
| | |||||
* | chacha20-arm: use proper reteq macro instead of bxeq | 2018-10-02 | 1 | -1/+2 | |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | global: change BUG_ON to WARN_ON | 2018-10-02 | 1 | -13/+7 | |
| | | | | Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | poly1305: document rationale for base 2^26->2^64/32 conversion | 2018-10-02 | 2 | -0/+20 | |
| | |||||
* | crypto: use ZINC_ARCH macros | 2018-10-02 | 2 | -9/+9 | |
| | |||||
* | chacha20: split chacha20_ctx into union | 2018-10-02 | 4 | -24/+24 | |
| | | | | This avoids casts and makes counter increments obvious. | ||||
* | crypto: add missing static keyword to fpu init functions | 2018-10-02 | 4 | -4/+3 | |
| |