aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/noise.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* peerlookup: rename from hashtablesJason A. Donenfeld2019-03-251-1/+1
|
* global: update copyrightJason A. Donenfeld2019-01-071-1/+1
|
* global: more nitsJason A. Donenfeld2018-10-081-1/+2
|
* global: rename struct wireguard_ to struct wg_Jason A. Donenfeld2018-10-081-7/+7
| | | | | | This required a bit of pruning of our christmas trees. Suggested-by: Jiri Pirko <jiri@resnulli.us>
* global: prefix all functions with wg_Jason A. Donenfeld2018-10-021-25/+26
| | | | | | | | | | | | | 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>
* global: put SPDX identifier on its own lineJason A. Donenfeld2018-09-201-2/+2
| | | | | The kernel has very specific rules correlating file type with comment type, and also SPDX identifiers can't be merged with other comments.
* global: run through clang-formatJason A. Donenfeld2018-08-281-9/+24
| | | | | | | 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.
* peer: ensure destruction doesn't raceJason A. Donenfeld2018-08-031-1/+1
| | | | | Completely rework peer removal to ensure peers don't jump between contexts and create races.
* noise: remove outdated commentJason A. Donenfeld2018-07-311-3/+0
| | | | docs/protocol.md hasn't existed for 3 years.
* global: use fast boottime instead of normal boottimeJason A. Donenfeld2018-06-231-2/+2
| | | | Generally if we're inaccurate by a few nanoseconds, it doesn't matter.
* global: use ktime boottime instead of jiffiesJason A. Donenfeld2018-06-231-3/+3
| | | | | | | | Since this is a network protocol, expirations need to be accounted for, even across system suspend. On real systems, this isn't a problem, since we're clearing all keys before suspend. But on Android, where we don't do that, this is something of a problem. So, we switch to using boottime instead of jiffies.
* noise: align static_identity keysJason A. Donenfeld2018-03-021-1/+1
|
* noise: fix function prototypeJason A. Donenfeld2018-03-021-1/+1
|
* global: year bumpJason A. Donenfeld2018-01-031-1/+1
|
* global: add SPDX tags to all filesGreg Kroah-Hartman2017-12-091-1/+2
| | | | | | | | | | | | | 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>
* global: get rid of useless forward declarationsJason A. Donenfeld2017-10-311-6/+0
|
* global: use _WG prefix for include guardsJason A. Donenfeld2017-10-031-3/+3
| | | | Suggested-by: Sultan Alsawaf <sultanxda@gmail.com>
* noise: use spinlock for rotating keysJason A. Donenfeld2017-10-021-1/+1
| | | | | This should only really be contended in extremely exceptional cases, so changing from a mutex to a spinlock is likely fine.
* noise: infer initiator or not from handshake stateJason A. Donenfeld2017-08-041-1/+1
| | | | Suggested-by: Mathias Hall-Andersen <mathias@hall-andersen.dk>
* peer: use iterator macro instead of callbackJason A. Donenfeld2017-05-301-1/+1
|
* noise: precompute static-static ECDH operationJason A. Donenfeld2017-05-301-3/+4
|
* noise: no need to store ephemeral public keyJason A. Donenfeld2017-05-301-1/+0
|
* noise: redesign preshared key modeJason A. Donenfeld2017-05-171-5/+4
|
* Update copyrightJason A. Donenfeld2017-01-101-1/+1
|
* global: move to consistent use of uN instead of uintN_t for kernel codeJason A. Donenfeld2016-12-111-3/+3
|
* headers: cleanup noticesJason A. Donenfeld2016-11-211-1/+1
|
* c89: the static keyword is okay in c99, but not in c89Jason A. Donenfeld2016-11-051-3/+3
|
* data: do not allow usage of keypair just before hash removalJason A. Donenfeld2016-11-011-0/+1
|
* Rework headers and includesJason A. Donenfeld2016-09-291-41/+4
|
* c: specify static array size in function paramsJason A. Donenfeld2016-08-021-3/+3
| | | | | | | | | | | | | | | The C standard states: A declaration of a parameter as ``array of type'' shall be adjusted to ``qualified pointer to type'', where the type qualifiers (if any) are those specified within the [ and ] of the array type derivation. If the keyword static also appears within the [ and ] of the array type derivation, then for each call to the function, the value of the corresponding actual argument shall provide access to the first element of an array with at least as many elements as specified by the size expression. By changing void func(int array[4]) to void func(int array[static 4]), we automatically get the compiler checking argument sizes for us, which is quite nice.
* nonce: switch to RFC6479 to better support packet reorderingJason A. Donenfeld2016-06-251-2/+8
| | | | | With packets hitting multiple cores, a 64bit backtrack was too small. This algorithm increases our backtrack to 1984bits.
* Initial commitJason A. Donenfeld2016-06-251-0/+153