aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/selftest (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-12-06chacha20poly1305: double check the sgmiter logic with testJason A. Donenfeld1-8/+59
2019-12-05chacha20poly1305: port to sgmitter for 5.5Jason A. Donenfeld1-18/+9
I'm not totally comfortable with these changes yet, and it'll require some more scrutiny. But it's a start.
2019-01-07global: update copyrightJason A. Donenfeld6-6/+6
2018-10-07crypto: use BIT(i) & bitmap instead of (bitmap >> i) & 1Jason A. Donenfeld1-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>
2018-10-07crypto: disable broken implementations in selftestsJason A. Donenfeld1-9/+8
2018-10-06crypto: test all SIMD combinationsJason A. Donenfeld6-22/+49
2018-10-06global: rename include'd C files to be .cJason A. Donenfeld5-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>
2018-10-03simd: introduce useful disabling macroJason A. Donenfeld2-3/+2
2018-10-02chacha20: test multiple page span in selftestJason A. Donenfeld1-3/+26
2018-10-02chacha20: break out of zero loops in selftestJason A. Donenfeld1-0/+5
2018-09-25crypto: rename DEBUG to SELFTESTJason A. Donenfeld5-50/+49
Also we make selftest errors of type err, so that they're obvious in dmesg.
2018-09-25curve25519: show all failures in test caseJason A. Donenfeld1-2/+0
2018-09-25chacha20: add bounds checking to selftestsJason A. Donenfeld1-1/+45
2018-09-25crypto: make constant naming scheme consistentJason A. Donenfeld3-21/+21
2018-09-25hchacha20: keep in native endian in wordsJason A. Donenfeld1-3/+5
2018-09-23global: reduce stack frame sizeJason A. Donenfeld2-25/+35
This brings it under 1280 on 64-bit and under 1024 on 32-bit systems.
2018-09-23chacha20: add chunked selftest and test sliding alignments and hchacha20Jason A. Donenfeld2-1160/+2467
This ensures we're properly updating state[12] and that we're handling all unaligned acceses (in the jump tables for MIPS).
2018-09-20global: put SPDX identifier on its own lineJason A. Donenfeld5-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.
2018-09-20crypto: do not waste space on selftest itemsJason A. Donenfeld3-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).
2018-09-20crypto: explicitly dual licenseJason A. Donenfeld5-5/+5
Suggested-by: Thomas Gleixner <tglx@linutronix.de>
2018-09-20poly1305: account for simd being toggled off midwayJason A. Donenfeld1-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.
2018-09-18chacha20: add independent self testJason A. Donenfeld1-0/+1182
This was already tested from the chacha20poly1305 test, but it's useful to be able to test this in isolation too.
2018-09-18chacha20poly1305: add __init to selftest helper functionsJason A. Donenfeld1-3/+3
2018-09-18crypto: turn Zinc into individual modulesJason A. Donenfeld4-4/+4
2018-09-17crypto: pass simd by referenceJason A. Donenfeld2-26/+29
2018-09-17poly1305: do not require simd context for archJason A. Donenfeld2-5/+3
2018-09-16crypto: make MITJason A. Donenfeld4-4/+4
2018-09-11poly1305: rename finish to finalJason A. Donenfeld2-3/+3
2018-09-11crypto: do not use compound literals in selftestsJason A. Donenfeld2-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.
2018-09-08poly1305: rewrite self tests from scratchJason A. Donenfeld1-1529/+831
This removes the old cruft and makes things a bit more idiomatic.
2018-09-06crypto: use CRYPTOGAMS licenseJason A. Donenfeld1-1/+1
2018-09-03crypto: import zincJason A. Donenfeld4-0/+12836