diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-02 17:18:37 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2019-08-02 17:18:37 +0200 |
commit | 2bdcda067cdea198cda90a5d5b8aef2b8b7ba4ce (patch) | |
tree | 6d0c0dcf12064265e34b0e737441eb6feba416ef /src/main.rs | |
parent | Unit test for mac1 validation (diff) | |
download | wireguard-rs-2bdcda067cdea198cda90a5d5b8aef2b8b7ba4ce.tar.xz wireguard-rs-2bdcda067cdea198cda90a5d5b8aef2b8b7ba4ce.zip |
Remove rust-crypto, move to libsodium bindings
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index f408d49..26974a7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,7 +1,12 @@ mod handshake; mod types; +use sodiumoxide; + use handshake::Device; use types::KeyPair; -fn main() {} +fn main() { + // choose optimal crypto implementations for platform + sodiumoxide::init().unwrap(); +} |