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
name: String
base: BaseChoice
handshake: HandshakeChoice
dh: DHChoice
cipher: CipherChoice
hash: HashChoice
Methods
impl NoiseParams
[src]
fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
Construct a new NoiseParams via specifying enums directly.
Trait Implementations
impl PartialEq for NoiseParams
[src]
fn eq(&self, __arg_0: &NoiseParams) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NoiseParams) -> bool
This method tests for !=
.
impl Clone for NoiseParams
[src]
fn clone(&self) -> NoiseParams
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more