From 5fd6afecebb73c92e50710a8940ad5785172fbce Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Mon, 23 Nov 2015 19:24:34 +0100 Subject: [PATCH] Information on crypto header --- .travis.yml | 42 ++++++++++++++++++++++++++++++++++++++++++ vpncloud.md | 8 ++++++++ 2 files changed, 50 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a8ec5d0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,42 @@ +sudo: false +language: rust +rust: +- nightly +- beta +- stable +matrix: + allow_failures: + - rust: nightly +before_script: +- ! 'pip install ''travis-cargo<0.2'' --user && + + export PATH=$HOME/.local/bin:$PATH + +' +script: +- ! 'travis-cargo build && + + travis-cargo test && + + travis-cargo bench && + + travis-cargo --only stable doc + +' +addons: + apt: + packages: + - libcurl4-openssl-dev + - libelf-dev + - libdw-dev + - libsodium13 + - libsodium-dev +after_success: +- travis-cargo --only stable doc-upload +- travis-cargo coveralls --no-sudo +notifications: + email: + on_success: never +env: + global: + - TRAVIS_CARGO_NIGHTLY_FEATURE="" diff --git a/vpncloud.md b/vpncloud.md index a2676e7..f0aa051 100644 --- a/vpncloud.md +++ b/vpncloud.md @@ -228,6 +228,7 @@ Every packet sent over UDP contains the following header (in order): order. Currently the following additional headers are supported: - Bit 1: Network ID + - Bit 2: Crypto information * 1 byte for the `message type` @@ -246,6 +247,13 @@ field will follow in the order of their respective flag bits. The network id is encoded as 8 bytes. + * **Crypto information**: + + If this header is present, the contents of the message are encrypted and + must have to decrypted before decoding. + This option contains 40 bytes. The first 8 bytes are the **nonce** for this + message and the later 32 bytes are the **authentication hash** of the + message. After the additional headers, message as specified in the `message type` field will follow: