aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/blake2s (follow)
Commit message (Collapse)AuthorAgeFilesLines
* crypto: use new assembler macros for 5.5Jason A. Donenfeld2019-12-051-4/+4
|
* blake2s: spacingJason A. Donenfeld2019-06-032-123/+123
|
* blake2s: add ssse3 to nobsJason A. Donenfeld2019-05-311-1/+2
|
* blake2s: do not use xgetbv for ssse3 detectionJason A. Donenfeld2019-05-311-3/+1
|
* zinc: update copyrightJason A. Donenfeld2019-05-291-1/+1
|
* blake2s: shorten ssse3 loopSamuel Neves2019-05-291-857/+66
| | | | | | | This (mostly) preserves the performance (as measured on Haswell and *lake) of last commit, but it drastically reduces code size. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* blake2s,chacha: latency tweakSamuel Neves2019-05-292-588/+952
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In every odd-numbered round, instead of operating over the state x00 x01 x02 x03 x05 x06 x07 x04 x10 x11 x08 x09 x15 x12 x13 x14 we operate over the rotated state x03 x00 x01 x02 x04 x05 x06 x07 x09 x10 x11 x08 x14 x15 x12 x13 The advantage here is that this requires no changes to the 'x04 x05 x06 x07' row, which is in the critical path. This results in a noticeable latency improvement of roughly R cycles, for R diagonal rounds in the primitive. In the case of BLAKE2s, which I also moved from requiring AVX to only requiring SSSE3, we save approximately 30 cycles per compression function call on Haswell and Skylake. In other words, this is an improvement of ~0.6 cpb. This idea was pointed out to me by Shunsuke Shimizu, though it appears to have been around for longer. Signed-off-by: Samuel Neves <sneves@dei.uc.pt>
* 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>
* global: update copyrightJason A. Donenfeld2019-01-073-3/+3
|
* crypto: test all SIMD combinationsJason A. Donenfeld2018-10-062-3/+5
|
* global: rename include'd C files to be .cJason A. Donenfeld2018-10-062-3/+3
| | | | | | | | | 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>
* blake2s: always put a simd, even if not use()'dJason A. Donenfeld2018-10-031-2/+5
|
* global: change BUG_ON to WARN_ONJason A. Donenfeld2018-10-021-13/+7
| | | | Suggested-by: Andrew Lunn <andrew@lunn.ch>
* crypto: add missing static keyword to fpu init functionsJason A. Donenfeld2018-10-021-1/+0
|
* 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>
* blake2s: rename arch function and use slicker le32 helperJason A. Donenfeld2018-10-022-11/+8
|
* blake2s: feed fpu functions PAGE_SIZE at a timeJason A. Donenfeld2018-10-021-14/+28
|
* crypto: prefer IS_ENABLED to ifdefsJason A. Donenfeld2018-10-021-10/+3
| | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
* crypto: rename DEBUG to SELFTESTJason A. Donenfeld2018-09-251-5/+5
| | | | | Also we make selftest errors of type err, so that they're obvious in dmesg.
* crypto: make constant naming scheme consistentJason A. Donenfeld2018-09-251-34/+34
|
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-203-6/+6
| | | | | 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-203-3/+3
| | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de>
* blake2s: simplify final functionJason A. Donenfeld2018-09-191-2/+8
| | | | Suggested-by: Eric Biggers <ebiggers@kernel.org>
* crypto: allow for disabling simd in zinc modulesJason A. Donenfeld2018-09-181-1/+5
|
* crypto: turn Zinc into individual modulesJason A. Donenfeld2018-09-182-2/+31
|
* crypto: do not use -include trickJason A. Donenfeld2018-09-172-4/+3
|
* crypto: make MITJason A. Donenfeld2018-09-163-3/+3
|
* blake2s-x86_64: fix whitespace errorsJason A. Donenfeld2018-09-101-2/+2
|
* global: prefer sizeof(*pointer) when possibleJason A. Donenfeld2018-09-041-1/+1
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* crypto: import zincJason A. Donenfeld2018-09-033-0/+1023