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
Implementations
impl NoiseParams
[src]
impl NoiseParams
[src]pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
[src]
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
Construct a new NoiseParams via specifying enums directly.
Trait Implementations
impl Clone for NoiseParams
[src]
impl Clone for NoiseParams
[src]fn clone(&self) -> NoiseParams
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl FromStr for NoiseParams
[src]
impl FromStr for NoiseParams
[src]impl PartialEq<NoiseParams> for NoiseParams
[src]
impl PartialEq<NoiseParams> for NoiseParams
[src]