pub struct Builder<'builder> { /* fields omitted */ }
Generates a Session
and also validate that all the prerequisites for
the given parameters are satisfied.
let noise = Builder::new("Noise_XX_25519_ChaChaPoly_BLAKE2s".parse().unwrap())
.local_private_key(&my_long_term_key)
.remote_public_key(&their_pub_key)
.prologue("noise is just swell".as_bytes())
.build_initiator()
.unwrap();
Create a Builder with the default crypto resolver.
Create a Builder with a custom crypto resolver.
Specify a PSK (only used with NoisePSK
base parameter)
Arbitrary data to be hashed in to the handshake hash value.
The responder's static public key.
Generate a new asymmetric keypair (for use as a static key).
Build a NoiseSession for the side who will initiate the handshake (send the first message)
Build a NoiseSession for the side who will be responder (receive the first message)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static