aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/selftest (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ratelimiter: build tests with !IPV6Jason A. Donenfeld2019-01-231-5/+2
|
* global: update copyrightJason A. Donenfeld2019-01-073-3/+3
|
* allowedips: fix sparse warnings in optional selftestsJason A. Donenfeld2018-10-271-12/+14
|
* global: give if statements brackets and other cleanupsJason A. Donenfeld2018-10-091-2/+4
|
* allowedips: remove control statement from macro by rewritingJason A. Donenfeld2018-10-081-68/+119
| | | | | | | This is a significant rearrangement that makes things less clear, to satisfy a checkpatch.pl requirement. Suggested-by: Andrew Lunn <andrew@lunn.ch>
* global: more nitsJason A. Donenfeld2018-10-082-37/+35
|
* global: rename struct wireguard_ to struct wg_Jason A. Donenfeld2018-10-081-3/+3
| | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
* global: prefix functions used in callbacks with wg_Jason A. Donenfeld2018-10-081-2/+2
| | | | Suggested-by: Jiri Pirko <jiri@resnulli.us>
* global: style nitsJason A. Donenfeld2018-10-073-29/+26
|
* allowedips: document additional nobsJason A. Donenfeld2018-10-071-0/+12
|
* global: rename include'd C files to be .cJason A. Donenfeld2018-10-063-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>
* allowedips: remove ifdefs in favor of IS_ENABLEDJason A. Donenfeld2018-10-061-20/+30
|
* ratelimiter: prefer IS_ENABLEDJason A. Donenfeld2018-10-021-3/+2
|
* global: prefix all functions with wg_Jason A. Donenfeld2018-10-023-44/+51
| | | | | | | | | | | | | I understand why this must be done, though I'm not so happy about having to do it. In some places, it puts us over 80 chars and we have to break lines up in further ugly ways. And in general, I think this makes things harder to read. Yet another thing we must do to please upstream. Maybe this can be replaced in the future by some kind of automatic module namespacing logic in the linker, or even combined with LTO and aggressive symbol stripping. Suggested-by: Andrew Lunn <andrew@lunn.ch>
* allowedips: work around kasan stack frame bug in selftestJason A. Donenfeld2018-09-231-2/+9
|
* 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.
* ratelimiter: disable selftest with KASANJason A. Donenfeld2018-09-201-0/+4
| | | | | | | This this relies on instructions taking a "normal" amount of time, we really can't run this with KASAN, especially inside QEMU, so just disable it for KASAN, since it's hard to make it complete on slow systems.
* allowedips: change from BUG_ON to WARN_ONJason A. Donenfeld2018-09-201-1/+1
| | | | | | | | This is never going to hit anyway, and if it does, it's a development problem that will be caught with the selftests anyway. So don't make Andrew Lunn upset, and just change it to a WARN_ON. Suggested-by: Andrew Lunn <andrew@lunn.ch>
* global: always find OOM unlikelyJason A. Donenfeld2018-09-042-7/+7
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* global: prefer sizeof(*pointer) when possibleJason A. Donenfeld2018-09-042-9/+7
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* crypto: import zincJason A. Donenfeld2018-09-034-7091/+0
|
* crypto: use unaligned helpersJason A. Donenfeld2018-08-281-7/+7
| | | | | | This is not useful for WireGuard, but for the general use case we probably want it this way, and the speed difference is mostly lost in the noise.
* global: run through clang-formatJason A. Donenfeld2018-08-283-128/+221
| | | | | | | This is the worst commit in the whole repo, making the code much less readable, but so it goes with upstream maintainers. We are now woefully wrapped at 80 columns.
* chacha20poly1305: selftest: use arrays for test vectorsJason A. Donenfeld2018-08-061-777/+3577
|
* crypto: move simd context to specific typeJason A. Donenfeld2018-08-062-37/+35
| | | | Suggested-by: Andy Lutomirski <luto@kernel.org>
* chacha20poly1305: selftest: split up test vector constantsJason A. Donenfeld2018-07-311-69/+210
|
* main: add missing chacha20poly1305 headerJason A. Donenfeld2018-07-311-1/+0
|
* selftest: ratelimiter: improve chance of success via retryJason A. Donenfeld2018-07-061-1/+6
|
* ratelimiter: mitigate reference underflowJason A. Donenfeld2018-06-191-0/+2
|
* simd: encapsulate fpu amortization into nice functionsJason A. Donenfeld2018-06-172-8/+9
|
* chacha20poly1305: test for authtag failureJason A. Donenfeld2018-05-311-3/+21
|
* chacha20poly1305: test scattergather functions tooJason A. Donenfeld2018-05-311-2/+44
|
* chacha20poly1305: combine stack variables into unionJason A. Donenfeld2018-05-311-8/+11
|
* chacha20poly1305: split up into separate filesJason A. Donenfeld2018-05-312-10/+11
|
* allowedips: Fix graphviz output after endianness patchJonathan Neuschäfer2018-05-141-3/+16
| | | | | | | | | | | | Commit 5e3532e ("allowedips: use native endian on lookup") did two things: It changed the endianness of (struct allowedips_node).bits to native endian, and it moved the CIDR masking to the output code path (walk_by_peer). Adjust print_node in src/selftest/allowedips.h to deal with these changes. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
* allowedips: add selftest for allowedips_walk_by_peerJason A. Donenfeld2018-05-101-1/+60
| | | | | | Also we satisfy lockdep here. Suggested-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
* chacha20poly1305: put magic constant behind macroJason A. Donenfeld2018-04-051-1/+1
|
* chacha20poly1305: add self tests from wycheproofJason A. Donenfeld2018-04-051-3/+1026
|
* curve25519: add self tests from wycheproofJason A. Donenfeld2018-04-041-0/+504
|
* poly1305: fix up selftest counterJason A. Donenfeld2018-02-081-1/+1
|
* curve25519: break more things with more test casesJason A. Donenfeld2018-02-011-0/+12
|
* curve25519: verify that specialized basepoint implementations are correctJason A. Donenfeld2018-02-011-3/+17
|
* poly1305: add poly-specific self-testsJason A. Donenfeld2018-01-191-0/+1566
|
* global: year bumpJason A. Donenfeld2018-01-036-6/+6
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-096-6/+24
| | | | | | | | | | | | | It's good to have SPDX identifiers in all files as the Linux kernel developers are working to add these identifiers to all files. Update all files with the correct SPDX license identifier based on the license text of the project or based on the license in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Modified-by: Jason A. Donenfeld <Jason@zx2c4.com>
* chacha20poly1305: add more test vectors, some of which are weirdJason A. Donenfeld2017-11-221-3/+244
|
* selftest: allowedips: randomized test mutex updateJason A. Donenfeld2017-11-131-5/+6
|
* allowedips: rename from routingtableJason A. Donenfeld2017-11-101-61/+61
| | | | Makes it more clear that this _not_ a routing table replacement.
* global: infuriating kernel iterator styleJason A. Donenfeld2017-10-311-4/+4
| | | | | | | | | | | | | | | | | One types: for (i = 0 ... So one should also type: for_each_obj (obj ... But the upstream kernel style guidelines are insane, and so we must instead do: for_each_obj(obj ... Ugly, but one must choose his battles wisely.
* selftest: initialize mutex in routingtable selftestJason A. Donenfeld2017-10-311-0/+2
|