Information on crypto header

This commit is contained in:
Dennis Schwerdel 2015-11-23 19:24:34 +01:00
parent 29f6e4d6b1
commit 5fd6afeceb
2 changed files with 50 additions and 0 deletions

42
.travis.yml Normal file
View File

@ -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=""

View File

@ -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: