path: root/src/crypto/zinc/poly1305 (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-12-12global: fix up spellingJosh Soref1-1/+1
Signed-off-by: Josh Soref <jsoref@gmail.com>
2019-12-05crypto: use new assembler macros for 5.5Jason A. Donenfeld1-2/+2
2019-05-29zinc: arm64: use cpu_get_elf_hwcap accessor for 5.2Jason A. Donenfeld1-1/+1
2019-01-07global: update copyrightJason A. Donenfeld8-8/+8
2018-12-07chacha20,poly1305: simplify perlasm fancinessJason A. Donenfeld1-39/+37
2018-11-19chacha20,poly1305: do not use xlateJason A. Donenfeld1-29/+39
2018-11-17poly1305: make frame pointers for auxiliary callsSamuel Neves1-31/+43
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
2018-11-15chacha20,poly1305: don't do compiler testing in generator and remove xor helperJason A. Donenfeld1-15/+20
2018-11-15poly1305: cleanup leftover debugging changesJason A. Donenfeld1-3/+3
2018-11-15poly1305: only export neon symbols when in useJason A. Donenfeld1-2/+6
2018-11-15chacha20,poly1305: fix up for win64Samuel Neves1-26/+28
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>
2018-11-15poly1305: specialize to wireguardJason A. Donenfeld1-11/+20
2018-11-15poly1305: adjust to kernelSamuel Neves1-220/+291
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
2018-11-14chacha20,poly1305: switch to perlasm originals on x86_64Samuel Neves2-2792/+4159
Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
2018-11-14chacha20,poly1305: use CONFIG_KERNEL_MODE_NEON in .pl on armJason A. Donenfeld2-6/+8
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.
2018-11-14chacha20,poly1305: switch to perlasm originals on mips and armJason A. Donenfeld6-2301/+2711
We also separate out Eric Biggers' Cortex A7 implementation into its own file.
2018-10-27poly1305-donna64: mark large constants as ULLJason A. Donenfeld1-24/+24
2018-10-07crypto: clean up remaining .h->.cJason A. Donenfeld3-4/+4
2018-10-06crypto: test all SIMD combinationsJason A. Donenfeld4-3/+8
2018-10-06global: rename include'd C files to be .cJason A. Donenfeld4-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>
2018-10-02poly1305: document rationale for base 2^26->2^64/32 conversionJason A. Donenfeld2-0/+20
2018-10-02crypto: use ZINC_ARCH macrosJason A. Donenfeld1-5/+5
2018-10-02crypto: add missing static keyword to fpu init functionsJason A. Donenfeld1-1/+1
2018-10-02crypto: WARN_ON in module_init if selftest failsJason A. Donenfeld1-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>
2018-10-02poly1305-mips64: use compiler-defined macros in assemblyJason A. Donenfeld1-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>
2018-10-02poly1305: feed fpu functions PAGE_SIZE at a timeJason A. Donenfeld4-29/+49
2018-10-02crypto: prefer IS_ENABLED to ifdefsJason A. Donenfeld3-58/+30
Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
2018-09-25crypto: rename DEBUG to SELFTESTJason A. Donenfeld1-1/+1
Also we make selftest errors of type err, so that they're obvious in dmesg.
2018-09-25poly1305-arm: swap endianness in base 2^26 conversionJason A. Donenfeld1-1/+5
These are actually 32-bit limbs, so we have to swap them back after the 64-bit arithmetic. Also, change type of boolean for 64-bit. Suggested-by: Andy Polyakov <appro@openssl.org>
2018-09-25chacha20-arm,poly1305-arm: fix big-endian aarch64Jason A. Donenfeld1-12/+12
Suggested-by: Andy Polyakov <appro@openssl.org>
2018-09-23poly1305-mips64: remove useless preprocessor errorJason A. Donenfeld1-4/+0
2018-09-23crypto-arm: rework KERNEL_MODE_NEON handling againJason A. Donenfeld3-10/+7
2018-09-23crypto-arm: rework KERNEL_MODE_NEON handlingJason A. Donenfeld1-6/+9
It might be defined even if the compiler doesn't support it.
2018-09-21poly1305-mips32r2: remove all reorder directivesRené van Dorst1-32/+22
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>
2018-09-20global: put SPDX identifier on its own lineJason A. Donenfeld11-22/+22
The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments.
2018-09-20crypto: explicitly dual licenseJason A. Donenfeld11-11/+11
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
2018-09-20poly1305: account for simd being toggled off midwayJason A. Donenfeld2-26/+114
This is a very rare occurance, but we should account for it, so that the calculations aren't wrong. Here we convert from base 2^26 back to base 2^64.
2018-09-19poly1305: no need to trick gcc 8.1Jason A. Donenfeld1-2/+2
This reverts 37f114a73ba37219b00a66f0a51219a696599745, since gcc 8.2 no longer exhibits that bug. Suggested-by: Eric Biggers <ebiggers@kernel.org>
2018-09-18poly1305: better module descriptionJason A. Donenfeld1-1/+1
2018-09-18poly1305-x86_64: show full struct for stateJason A. Donenfeld1-5/+7
2018-09-18crypto: allow for disabling simd in zinc modulesJason A. Donenfeld2-5/+16
2018-09-18crypto: turn Zinc into individual modulesJason A. Donenfeld4-3/+31
2018-09-17crypto: do not use -include trickJason A. Donenfeld4-11/+7
2018-09-17poly1305-x86_64: don't activate simd for small blocksJason A. Donenfeld1-3/+14
2018-09-17crypto: pass simd by referenceJason A. Donenfeld4-20/+20
2018-09-17poly1305: do not require simd context for archJason A. Donenfeld4-11/+6
2018-09-16crypto: make MITJason A. Donenfeld11-11/+11
2018-09-12poly1305: precompute 5*r in init instead of blocksJason A. Donenfeld2-6/+18
2018-09-11poly1305: rename finish to finalJason A. Donenfeld1-3/+3
2018-09-10poly1305: switch to donnaJason A. Donenfeld3-183/+398