aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/poly1305 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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