Struct snowstorm::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
pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> NoiseParams
pub fn new(
name: String,
base: BaseChoice,
handshake: HandshakeChoice,
dh: DHChoice,
cipher: CipherChoice,
hash: HashChoice
) -> NoiseParams
Construct a new NoiseParams via specifying enums directly.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for NoiseParams
impl Send for NoiseParams
impl Sync for NoiseParams
impl Unpin for NoiseParams
impl UnwindSafe for NoiseParams
Blanket Implementations
Mutably borrows from an owned value. Read more