Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1 | Jason A. Donenfeld | 2018-10-07 | 1 | -2/+2 |
| | | | | | | | | | | | Pros: clearer if you're not familiar with the shift idiom, uses kernel macro. Cons: doesn't work any more if the lvalue ever ceases to be a bool. Neutral: generates the same machine code. Suggested-by: Sultan Alsawaf <sultanxda@gmail.com> | ||||
* | crypto: disable broken implementations in selftests | Jason A. Donenfeld | 2018-10-07 | 1 | -9/+8 |
| | |||||
* | crypto: test all SIMD combinations | Jason A. Donenfeld | 2018-10-06 | 6 | -22/+49 |
| | |||||
* | global: rename include'd C files to be .c | Jason A. Donenfeld | 2018-10-06 | 5 | -5/+5 |
| | | | | | | | | | 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> | ||||
* | simd: introduce useful disabling macro | Jason A. Donenfeld | 2018-10-03 | 2 | -3/+2 |
| | |||||
* | chacha20: test multiple page span in selftest | Jason A. Donenfeld | 2018-10-02 | 1 | -3/+26 |
| | |||||
* | chacha20: break out of zero loops in selftest | Jason A. Donenfeld | 2018-10-02 | 1 | -0/+5 |
| | |||||
* | crypto: rename DEBUG to SELFTEST | Jason A. Donenfeld | 2018-09-25 | 5 | -50/+49 |
| | | | | | Also we make selftest errors of type err, so that they're obvious in dmesg. | ||||
* | curve25519: show all failures in test case | Jason A. Donenfeld | 2018-09-25 | 1 | -2/+0 |
| | |||||
* | chacha20: add bounds checking to selftests | Jason A. Donenfeld | 2018-09-25 | 1 | -1/+45 |
| | |||||
* | crypto: make constant naming scheme consistent | Jason A. Donenfeld | 2018-09-25 | 3 | -21/+21 |
| | |||||
* | hchacha20: keep in native endian in words | Jason A. Donenfeld | 2018-09-25 | 1 | -3/+5 |
| | |||||
* | global: reduce stack frame size | Jason A. Donenfeld | 2018-09-23 | 2 | -25/+35 |
| | | | | This brings it under 1280 on 64-bit and under 1024 on 32-bit systems. | ||||
* | chacha20: add chunked selftest and test sliding alignments and hchacha20 | Jason A. Donenfeld | 2018-09-23 | 2 | -1160/+2467 |
| | | | | | This ensures we're properly updating state[12] and that we're handling all unaligned acceses (in the jump tables for MIPS). | ||||
* | global: put SPDX identifier on its own line | Jason A. Donenfeld | 2018-09-20 | 5 | -10/+10 |
| | | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments. | ||||
* | crypto: do not waste space on selftest items | Jason A. Donenfeld | 2018-09-20 | 3 | -9458/+10993 |
| | | | | | | This unfortunately means we have to define symbols, since we want them in __initconst, but it's better than the other two options (no initconst or wasting space for fixed size buffers). | ||||
* | crypto: explicitly dual license | Jason A. Donenfeld | 2018-09-20 | 5 | -5/+5 |
| | | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de> | ||||
* | poly1305: account for simd being toggled off midway | Jason A. Donenfeld | 2018-09-20 | 1 | -0/+17 |
| | | | | | | 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. | ||||
* | chacha20: add independent self test | Jason A. Donenfeld | 2018-09-18 | 1 | -0/+1182 |
| | | | | | This was already tested from the chacha20poly1305 test, but it's useful to be able to test this in isolation too. | ||||
* | chacha20poly1305: add __init to selftest helper functions | Jason A. Donenfeld | 2018-09-18 | 1 | -3/+3 |
| | |||||
* | crypto: turn Zinc into individual modules | Jason A. Donenfeld | 2018-09-18 | 4 | -4/+4 |
| | |||||
* | crypto: pass simd by reference | Jason A. Donenfeld | 2018-09-17 | 2 | -26/+29 |
| | |||||
* | poly1305: do not require simd context for arch | Jason A. Donenfeld | 2018-09-17 | 2 | -5/+3 |
| | |||||
* | crypto: make MIT | Jason A. Donenfeld | 2018-09-16 | 4 | -4/+4 |
| | |||||
* | poly1305: rename finish to final | Jason A. Donenfeld | 2018-09-11 | 2 | -3/+3 |
| | |||||
* | crypto: do not use compound literals in selftests | Jason A. Donenfeld | 2018-09-11 | 2 | -7704/+7710 |
| | | | | | | | gcc can't apply section attributes to compound literals, so we can't mark the actual data as __initconst. We thus waste space instead, but this shouldn't matter much, since it's cleared after init anyway, and because this is only for debugging. | ||||
* | poly1305: rewrite self tests from scratch | Jason A. Donenfeld | 2018-09-08 | 1 | -1529/+831 |
| | | | | This removes the old cruft and makes things a bit more idiomatic. | ||||
* | crypto: use CRYPTOGAMS license | Jason A. Donenfeld | 2018-09-06 | 1 | -1/+1 |
| | |||||
* | crypto: import zinc | Jason A. Donenfeld | 2018-09-03 | 4 | -0/+12836 |