wiretun 0.5.0

WireGuard Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("invalid key length")]
    InvalidKeyLength,
    #[error("unable to encrypt")]
    Encryption(chacha20poly1305::aead::Error),
    #[error("unable to decrypt")]
    Decryption,
    #[error("invalid packet")]
    InvalidPacket,
    #[error("invalid handshake state")]
    InvalidHandshakeState,
    #[error("receiver index not match")]
    ReceiverIndexNotMatch,
}