diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-30 15:28:11 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-07-30 15:28:11 +0200 |
commit | 1cfd5aea1aba4b01905414351df13e8f5d4dfb1c (patch) | |
tree | 1ddc2d7a08a486676e9cf045f31a1fe0d5714bc5 /src/main.rs | |
parent | Begin work on MAC field processing (diff) | |
download | wireguard-rs-1cfd5aea1aba4b01905414351df13e8f5d4dfb1c.tar.xz wireguard-rs-1cfd5aea1aba4b01905414351df13e8f5d4dfb1c.zip |
Move to nested handshake message structure
Having the nested structure:
Handshake Message:
Noise part (zerocopy message)
MAC footer part (zerocopy message)
Greatly simplifies processing the MAC fields,
since the MAC footer covers the noise part, which can
be accessed as bytes using AsBytes.
Diffstat (limited to '')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index b2995e7..f408d49 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,7 @@ -mod noise; +mod handshake; mod types; -use noise::Device; +use handshake::Device; use types::KeyPair; fn main() {} |