git: wg: Port #28: adapt crypto code (chacha20poly1305)

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 8 00:32:29 PST 2024


commit cfdd69bc619abe664c37e72b4ee4cd7f7eaaf196
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Nov 22 15:45:33 2023 +0800

    wg: Port #28: adapt crypto code (chacha20poly1305)
    
    Update to use the chacha20poly1305 implemention from
    'crypto/chachapoly.[ch]'.  Remove the obsolete code 'wg_crypto.c'.
    
    Meanwhile, rename the original 'uint64_t nonce' to 'counter' to avoid
    confusing with the 96-bit nonce (byte string) of ChaCha20-Poly1305.

Summary of changes:
 sys/net/wg/crypto.h    | 79 ------------------------------------------
 sys/net/wg/if_wg.c     | 23 ++++++-------
 sys/net/wg/wg_cookie.c |  1 +
 sys/net/wg/wg_cookie.h |  2 +-
 sys/net/wg/wg_crypto.c | 93 --------------------------------------------------
 sys/net/wg/wg_noise.c  | 90 +++++++++++++++++++++++++++---------------------
 sys/net/wg/wg_noise.h  | 10 +++---
 7 files changed, 68 insertions(+), 230 deletions(-)
 delete mode 100644 sys/net/wg/crypto.h
 delete mode 100644 sys/net/wg/wg_crypto.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cfdd69bc619abe664c37e72b4ee4cd7f7eaaf196


-- 
DragonFly BSD source repository


More information about the Commits mailing list