pub struct X25519PublicKey(pub [u8; 32]);Expand description
A type-safe 32-byte X25519 public key.
Wraps the raw Montgomery-form u-coordinate used by the X25519 function
(RFC 7748 §6.1). Use as_bytes to access
the inner bytes for KeyAgreement::agree.
Tuple Fields§
§0: [u8; 32]Implementations§
Trait Implementations§
Source§impl AsRef<[u8]> for X25519PublicKey
impl AsRef<[u8]> for X25519PublicKey
Source§impl Clone for X25519PublicKey
impl Clone for X25519PublicKey
Source§fn clone(&self) -> X25519PublicKey
fn clone(&self) -> X25519PublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for X25519PublicKey
impl Debug for X25519PublicKey
Source§impl PartialEq for X25519PublicKey
impl PartialEq for X25519PublicKey
Source§fn eq(&self, other: &X25519PublicKey) -> bool
fn eq(&self, other: &X25519PublicKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for X25519PublicKey
impl StructuralPartialEq for X25519PublicKey
Auto Trait Implementations§
impl Freeze for X25519PublicKey
impl RefUnwindSafe for X25519PublicKey
impl Send for X25519PublicKey
impl Sync for X25519PublicKey
impl Unpin for X25519PublicKey
impl UnsafeUnpin for X25519PublicKey
impl UnwindSafe for X25519PublicKey
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