aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zinc: arm64: use cpu_get_elf_hwcap accessor for 5.2Jason A. Donenfeld2019-05-292-2/+2
|
* blake2s: remove outlen parameter from finalJason A. Donenfeld2019-03-271-6/+5
|
* blake2s: simplifySamuel Neves2019-03-271-38/+10
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* noise: store clamped key instead of raw keyJason A. Donenfeld2019-02-034-14/+7
|
* chacha20poly1305: permit unaligned strides on certain platformsJason A. Donenfeld2019-02-031-18/+14
| | | | | | | The map allocations required to fix this are mostly slower than unaligned paths. Reported-by: Louis Sautier <sbraz@gentoo.org>
* global: normalize -> clampJason A. Donenfeld2019-01-234-17/+10
|
* global: update copyrightJason A. Donenfeld2019-01-0731-31/+31
|
* chacha20: do not define unused asm functionJason A. Donenfeld2018-12-071-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 fancinessJason A. Donenfeld2018-12-073-75/+69
|
* chacha20,poly1305: do not use xlateJason A. Donenfeld2018-11-193-1496/+73
|
* poly1305: make frame pointers for auxiliary callsSamuel Neves2018-11-171-31/+43
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20,poly1305: don't do compiler testing in generator and remove xor helperJason A. Donenfeld2018-11-152-30/+39
|
* poly1305: cleanup leftover debugging changesJason A. Donenfeld2018-11-151-3/+3
|
* poly1305: only export neon symbols when in useJason A. Donenfeld2018-11-151-2/+6
|
* chacha20,poly1305: fix up for win64Samuel Neves2018-11-152-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 retJason A. Donenfeld2018-11-151-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 wireguardJason A. Donenfeld2018-11-151-11/+20
|
* chacha20: specialize to wireguardJason A. Donenfeld2018-11-152-20/+38
|
* perlasm: cleanup whitespaceJason A. Donenfeld2018-11-151-5/+5
|
* poly1305: adjust to kernelSamuel Neves2018-11-151-220/+291
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20: cleaner function declarationsSamuel Neves2018-11-141-23/+23
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20: normalize namesSamuel Neves2018-11-141-71/+71
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20: fixup win64 stack offsetsSamuel Neves2018-11-141-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_ctr32Samuel Neves2018-11-141-10/+8
| | | | | | objtool did not quite understand the stack arithmetic employed here. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20: use DRAP idiomSamuel Neves2018-11-141-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_ssse3Samuel Neves2018-11-141-0/+39
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20: begin adapting to kernel settingSamuel Neves2018-11-142-68/+116
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20,poly1305: switch to perlasm originals on x86_64Samuel Neves2018-11-145-5424/+9596
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20,poly1305: use CONFIG_KERNEL_MODE_NEON in .pl on armJason A. Donenfeld2018-11-144-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 armJason A. Donenfeld2018-11-1411-6103/+5563
| | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file.
* global: various formatting tweeksJason A. Donenfeld2018-11-132-2/+1
|
* curve25519-x86_64: this was relicensed to BSD-3-Clause upstreamJason A. Donenfeld2018-10-271-1/+1
|
* poly1305-donna64: mark large constants as ULLJason A. Donenfeld2018-10-271-24/+24
|
* crypto: clean up remaining .h->.cJason A. Donenfeld2018-10-078-10/+10
|
* crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1Jason A. Donenfeld2018-10-071-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 selftestsJason A. Donenfeld2018-10-071-9/+8
|
* crypto: test all SIMD combinationsJason A. Donenfeld2018-10-0620-40/+82
|
* global: rename include'd C files to be .cJason A. Donenfeld2018-10-0619-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 performanceJason A. Donenfeld2018-10-041-12/+12
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* curve25519-arm: writeback to base register when possibleJason A. Donenfeld2018-10-041-58/+27
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* blake2s: always put a simd, even if not use()'dJason A. Donenfeld2018-10-031-2/+5
|
* simd: introduce useful disabling macroJason A. Donenfeld2018-10-032-3/+2
|
* curve25519-arm: adjust commentJason A. Donenfeld2018-10-031-2/+2
|
* curve25519-arm: use new simd apiJason A. Donenfeld2018-10-031-6/+9
|
* chacha20-arm: use proper reteq macro instead of bxeqJason A. Donenfeld2018-10-021-1/+2
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* global: change BUG_ON to WARN_ONJason A. Donenfeld2018-10-021-13/+7
| | | | Suggested-by: Andrew Lunn <andrew@lunn.ch>
* poly1305: document rationale for base 2^26->2^64/32 conversionJason A. Donenfeld2018-10-022-0/+20
|
* crypto: use ZINC_ARCH macrosJason A. Donenfeld2018-10-022-9/+9
|
* 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-024-4/+3
|