aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/poly1305 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* chacha20,poly1305: simplify perlasm fancinessJason A. Donenfeld2018-12-071-39/+37
|
* chacha20,poly1305: do not use xlateJason A. Donenfeld2018-11-191-29/+39
|
* 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-151-15/+20
|
* 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-151-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>
* poly1305: specialize to wireguardJason A. Donenfeld2018-11-151-11/+20
|
* poly1305: adjust to kernelSamuel Neves2018-11-151-220/+291
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20,poly1305: switch to perlasm originals on x86_64Samuel Neves2018-11-142-2792/+4159
| | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* chacha20,poly1305: use CONFIG_KERNEL_MODE_NEON in .pl on armJason A. Donenfeld2018-11-142-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.
* chacha20,poly1305: switch to perlasm originals on mips and armJason A. Donenfeld2018-11-146-2301/+2711
| | | | | We also separate out Eric Biggers' Cortex A7 implementation into its own file.
* poly1305-donna64: mark large constants as ULLJason A. Donenfeld2018-10-271-24/+24
|
* crypto: clean up remaining .h->.cJason A. Donenfeld2018-10-073-4/+4
|
* crypto: test all SIMD combinationsJason A. Donenfeld2018-10-064-3/+8
|
* global: rename include'd C files to be .cJason A. Donenfeld2018-10-064-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>
* 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-021-5/+5
|
* crypto: add missing static keyword to fpu init functionsJason A. Donenfeld2018-10-021-1/+1
|
* crypto: WARN_ON in module_init if selftest failsJason A. Donenfeld2018-10-021-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>
* poly1305-mips64: use compiler-defined macros in assemblyJason A. Donenfeld2018-10-021-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>
* poly1305: feed fpu functions PAGE_SIZE at a timeJason A. Donenfeld2018-10-024-29/+49
|
* crypto: prefer IS_ENABLED to ifdefsJason A. Donenfeld2018-10-023-58/+30
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* crypto: rename DEBUG to SELFTESTJason A. Donenfeld2018-09-251-1/+1
| | | | | Also we make selftest errors of type err, so that they're obvious in dmesg.
* poly1305-arm: swap endianness in base 2^26 conversionJason A. Donenfeld2018-09-251-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>
* chacha20-arm,poly1305-arm: fix big-endian aarch64Jason A. Donenfeld2018-09-251-12/+12
| | | | Suggested-by: Andy Polyakov <appro@openssl.org>
* poly1305-mips64: remove useless preprocessor errorJason A. Donenfeld2018-09-231-4/+0
|
* crypto-arm: rework KERNEL_MODE_NEON handling againJason A. Donenfeld2018-09-233-10/+7
|
* crypto-arm: rework KERNEL_MODE_NEON handlingJason A. Donenfeld2018-09-231-6/+9
| | | | It might be defined even if the compiler doesn't support it.
* poly1305-mips32r2: remove all reorder directivesRené van Dorst2018-09-211-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>
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-2011-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.
* crypto: explicitly dual licenseJason A. Donenfeld2018-09-2011-11/+11
| | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de>
* poly1305: account for simd being toggled off midwayJason A. Donenfeld2018-09-202-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.
* poly1305: no need to trick gcc 8.1Jason A. Donenfeld2018-09-191-2/+2
| | | | | | | This reverts 37f114a73ba37219b00a66f0a51219a696599745, since gcc 8.2 no longer exhibits that bug. Suggested-by: Eric Biggers <ebiggers@kernel.org>
* poly1305: better module descriptionJason A. Donenfeld2018-09-181-1/+1
|
* poly1305-x86_64: show full struct for stateJason A. Donenfeld2018-09-181-5/+7
|
* crypto: allow for disabling simd in zinc modulesJason A. Donenfeld2018-09-182-5/+16
|
* crypto: turn Zinc into individual modulesJason A. Donenfeld2018-09-184-3/+31
|
* crypto: do not use -include trickJason A. Donenfeld2018-09-174-11/+7
|
* poly1305-x86_64: don't activate simd for small blocksJason A. Donenfeld2018-09-171-3/+14
|
* crypto: pass simd by referenceJason A. Donenfeld2018-09-174-20/+20
|
* poly1305: do not require simd context for archJason A. Donenfeld2018-09-174-11/+6
|
* crypto: make MITJason A. Donenfeld2018-09-1611-11/+11
|
* poly1305: precompute 5*r in init instead of blocksJason A. Donenfeld2018-09-122-6/+18
|
* poly1305: rename finish to finalJason A. Donenfeld2018-09-111-3/+3
|
* poly1305: switch to donnaJason A. Donenfeld2018-09-103-183/+398
|
* crypto: use CRYPTOGAMS licenseJason A. Donenfeld2018-09-065-13/+17
|
* crypto: import zincJason A. Donenfeld2018-09-039-0/+6014