Struct snow::params::NoiseParams
source · pub struct NoiseParams {
pub name: String,
pub base: BaseChoice,
pub handshake: HandshakeChoice,
pub dh: DHChoice,
pub cipher: CipherChoice,
pub hash: HashChoice,
}
Expand description
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§
source§impl NoiseParams
impl NoiseParams
sourcepub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> Self
Construct a new NoiseParams via specifying enums directly.
Trait Implementations§
source§impl Clone for NoiseParams
impl Clone for NoiseParams
source§fn clone(&self) -> NoiseParams
fn clone(&self) -> NoiseParams
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more