Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | crypto: use new assembler macros for 5.5 | Jason A. Donenfeld | 2019-12-05 | 1 | -4/+4 |
| | |||||
* | blake2s: spacing | Jason A. Donenfeld | 2019-06-03 | 2 | -123/+123 |
| | |||||
* | blake2s: add ssse3 to nobs | Jason A. Donenfeld | 2019-05-31 | 1 | -1/+2 |
| | |||||
* | blake2s: do not use xgetbv for ssse3 detection | Jason A. Donenfeld | 2019-05-31 | 1 | -3/+1 |
| | |||||
* | zinc: update copyright | Jason A. Donenfeld | 2019-05-29 | 1 | -1/+1 |
| | |||||
* | blake2s: shorten ssse3 loop | Samuel Neves | 2019-05-29 | 1 | -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 tweak | Samuel Neves | 2019-05-29 | 2 | -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 final | Jason A. Donenfeld | 2019-03-27 | 1 | -6/+5 |
| | |||||
* | blake2s: simplify | Samuel Neves | 2019-03-27 | 1 | -38/+10 |
| | | | | Signed-off-by: Samuel Neves <sneves@dei.uc.pt> | ||||
* | global: update copyright | Jason A. Donenfeld | 2019-01-07 | 3 | -3/+3 |
| | |||||
* | crypto: test all SIMD combinations | Jason A. Donenfeld | 2018-10-06 | 2 | -3/+5 |
| | |||||
* | global: rename include'd C files to be .c | Jason A. Donenfeld | 2018-10-06 | 2 | -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()'d | Jason A. Donenfeld | 2018-10-03 | 1 | -2/+5 |
| | |||||
* | global: change BUG_ON to WARN_ON | Jason A. Donenfeld | 2018-10-02 | 1 | -13/+7 |
| | | | | Suggested-by: Andrew Lunn <andrew@lunn.ch> | ||||
* | crypto: add missing static keyword to fpu init functions | Jason A. Donenfeld | 2018-10-02 | 1 | -1/+0 |
| | |||||
* | crypto: WARN_ON in module_init if selftest fails | Jason A. Donenfeld | 2018-10-02 | 1 | -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 helper | Jason A. Donenfeld | 2018-10-02 | 2 | -11/+8 |
| | |||||
* | blake2s: feed fpu functions PAGE_SIZE at a time | Jason A. Donenfeld | 2018-10-02 | 1 | -14/+28 |
| | |||||
* | crypto: prefer IS_ENABLED to ifdefs | Jason A. Donenfeld | 2018-10-02 | 1 | -10/+3 |
| | | | | Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> | ||||
* | crypto: rename DEBUG to SELFTEST | Jason A. Donenfeld | 2018-09-25 | 1 | -5/+5 |
| | | | | | Also we make selftest errors of type err, so that they're obvious in dmesg. | ||||
* | crypto: make constant naming scheme consistent | Jason A. Donenfeld | 2018-09-25 | 1 | -34/+34 |
| | |||||
* | global: put SPDX identifier on its own line | Jason A. Donenfeld | 2018-09-20 | 3 | -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 license | Jason A. Donenfeld | 2018-09-20 | 3 | -3/+3 |
| | | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de> | ||||
* | blake2s: simplify final function | Jason A. Donenfeld | 2018-09-19 | 1 | -2/+8 |
| | | | | Suggested-by: Eric Biggers <ebiggers@kernel.org> | ||||
* | crypto: allow for disabling simd in zinc modules | Jason A. Donenfeld | 2018-09-18 | 1 | -1/+5 |
| | |||||
* | crypto: turn Zinc into individual modules | Jason A. Donenfeld | 2018-09-18 | 2 | -2/+31 |
| | |||||
* | crypto: do not use -include trick | Jason A. Donenfeld | 2018-09-17 | 2 | -4/+3 |
| | |||||
* | crypto: make MIT | Jason A. Donenfeld | 2018-09-16 | 3 | -3/+3 |
| | |||||
* | blake2s-x86_64: fix whitespace errors | Jason A. Donenfeld | 2018-09-10 | 1 | -2/+2 |
| | |||||
* | global: prefer sizeof(*pointer) when possible | Jason A. Donenfeld | 2018-09-04 | 1 | -1/+1 |
| | | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | crypto: import zinc | Jason A. Donenfeld | 2018-09-03 | 3 | -0/+1023 |