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.
This commit is contained in:
Mathias Hall-Andersen
2019-07-30 15:28:11 +02:00
parent f46f36ad29
commit 1cfd5aea1a
14 changed files with 266 additions and 1391 deletions

View File

@@ -15,6 +15,11 @@ rust-crypto = "^0.2"
generic-array = "0.12.3"
zerocopy = "0.2.7"
byteorder = "1.3.1"
digest = "0.8.0"
[dependencies.x25519-dalek]
version = "^0.5"
[dependencies.subtle]
version = "2.1"
features = ["nightly"]