aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/crypto/zinc/selftest (follow)
Commit message (Collapse)AuthorAgeFilesLines
* crypto: do not waste space on selftest itemsJason A. Donenfeld2018-09-203-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 licenseJason A. Donenfeld2018-09-205-5/+5
| | | | Suggested-by: Thomas Gleixner <tglx@linutronix.de>
* poly1305: account for simd being toggled off midwayJason A. Donenfeld2018-09-201-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 testJason A. Donenfeld2018-09-181-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 functionsJason A. Donenfeld2018-09-181-3/+3
|
* crypto: turn Zinc into individual modulesJason A. Donenfeld2018-09-184-4/+4
|
* crypto: pass simd by referenceJason A. Donenfeld2018-09-172-26/+29
|
* poly1305: do not require simd context for archJason A. Donenfeld2018-09-172-5/+3
|
* crypto: make MITJason A. Donenfeld2018-09-164-4/+4
|
* poly1305: rename finish to finalJason A. Donenfeld2018-09-112-3/+3
|
* crypto: do not use compound literals in selftestsJason A. Donenfeld2018-09-112-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 scratchJason A. Donenfeld2018-09-081-1529/+831
| | | | This removes the old cruft and makes things a bit more idiomatic.
* crypto: use CRYPTOGAMS licenseJason A. Donenfeld2018-09-061-1/+1
|
* crypto: import zincJason A. Donenfeld2018-09-034-0/+12836