pub struct X25519Key { /* private fields */ }Expand description
An ephemeral X25519 key pair for use in a single handshake.
Generate one with X25519Key::generate, read the public key with
X25519Key::public_key_bytes, then call X25519Key::agree to perform
the Diffie-Hellman step. agree consumes self; the underlying
EphemeralSecret zeroizes the scalar on drop.
Implementations§
Auto Trait Implementations§
impl Freeze for X25519Key
impl RefUnwindSafe for X25519Key
impl Send for X25519Key
impl Sync for X25519Key
impl Unpin for X25519Key
impl UnsafeUnpin for X25519Key
impl UnwindSafe for X25519Key
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