Struct snow::params::NoiseParams [] [src]

pub struct NoiseParams {
    pub name: String,
    pub base: BaseChoice,
    pub handshake: HandshakeChoice,
    pub dh: DHChoice,
    pub cipher: CipherChoice,
    pub hash: HashChoice,
}

The set of choices (as specified in the Noise spec) that constitute a full protocol definition.

See: Chapter 11: Protocol Names.

Examples

From a string definition:


let params: NoiseParams = "Noise_XX_25519_AESGCM_SHA256".parse().unwrap();

Fields

Methods

impl NoiseParams
[src]

Construct a new NoiseParams via specifying enums directly.

Trait Implementations

impl PartialEq for NoiseParams
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for NoiseParams
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NoiseParams
[src]

Formats the value using the given formatter.

impl FromStr for NoiseParams
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more