pub struct X25519;Expand description
X25519, the Diffie-Hellman function on Curve25519.
Trait Implementations§
Source§impl KeyAgreement for X25519
impl KeyAgreement for X25519
Source§const PRIVATE_KEY_LEN: usize = 32
const PRIVATE_KEY_LEN: usize = 32
Private key (scalar) length in bytes.
Source§const PUBLIC_KEY_LEN: usize = 32
const PUBLIC_KEY_LEN: usize = 32
Public key (encoded point) length in bytes.
Source§const SHARED_SECRET_LEN: usize = 32
const SHARED_SECRET_LEN: usize = 32
Shared secret length in bytes.
Auto Trait Implementations§
impl Freeze for X25519
impl RefUnwindSafe for X25519
impl Send for X25519
impl Sync for X25519
impl Unpin for X25519
impl UnsafeUnpin for X25519
impl UnwindSafe for X25519
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