pub struct KeyExchange {
    pub skxg: &'static SupportedKxGroup,
    pub privkey: EphemeralPrivateKey,
    pub pubkey: PublicKey,
}
Expand description

An in-progress key exchange. This has the algorithm, our private key, and our public key.

Fields§

§skxg: &'static SupportedKxGroup§privkey: EphemeralPrivateKey§pubkey: PublicKey

Implementations§

Choose a SupportedKxGroup by name, from a list of supported groups.

Start a key exchange, using the given SupportedKxGroup.

This generates an ephemeral key pair and stores it in the returned KeyExchange object.

Return the group being used.

Completes the key exchange, given the peer’s public key.

The shared secret is passed into the closure passed down in f, and the result of calling f is returned to the caller.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The Resulting [TupleList], of an [Prepend::prepend()] call, including the prepended entry.
Prepend a value to this tuple, returning a new tuple with prepended value.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.