aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/noise.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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