pub struct ExchangeKeyPair {
pub public_key: PublicKey,
pub private_key: EphemeralPrivateKey,
}Expand description
A public-private key pair for ephemeral key exchange.
This is used to derive a shared secret, which is used to encrypt and decrypt data. This is used during the handshake phase.
Fields§
§public_key: PublicKey§private_key: EphemeralPrivateKeyAuto Trait Implementations§
impl Freeze for ExchangeKeyPair
impl RefUnwindSafe for ExchangeKeyPair
impl Send for ExchangeKeyPair
impl Sync for ExchangeKeyPair
impl Unpin for ExchangeKeyPair
impl UnwindSafe for ExchangeKeyPair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more