Struct x25519_dalek::PublicKey
source · pub struct PublicKey(/* private fields */);
Expand description
A Diffie-Hellman public key
We implement Zeroize
so that downstream consumers may derive it for Drop
should they wish to erase public keys from memory. Note that this erasure
(in this crate) does not automatically happen, but either must be derived
for Drop or explicitly called.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a EphemeralSecret> for PublicKey
impl<'a> From<&'a EphemeralSecret> for PublicKey
source§fn from(secret: &'a EphemeralSecret) -> PublicKey
fn from(secret: &'a EphemeralSecret) -> PublicKey
Given an x25519 EphemeralSecret
key, compute its corresponding PublicKey
.
source§impl<'a> From<&'a ReusableSecret> for PublicKey
Available on crate feature reusable_secrets
only.
impl<'a> From<&'a ReusableSecret> for PublicKey
Available on crate feature
reusable_secrets
only.source§fn from(secret: &'a ReusableSecret) -> PublicKey
fn from(secret: &'a ReusableSecret) -> PublicKey
Given an x25519 ReusableSecret
key, compute its corresponding PublicKey
.
source§impl<'a> From<&'a StaticSecret> for PublicKey
Available on crate feature static_secrets
only.
impl<'a> From<&'a StaticSecret> for PublicKey
Available on crate feature
static_secrets
only.source§fn from(secret: &'a StaticSecret) -> PublicKey
fn from(secret: &'a StaticSecret) -> PublicKey
Given an x25519 StaticSecret
key, compute its corresponding PublicKey
.
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
impl Copy for PublicKey
impl Eq for PublicKey
impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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