pub struct HpkePublicKey(pub <SecpK256HkdfSha256 as Kem>::PublicKey);Available on crate feature
v2 only.Tuple Fields§
§0: <SecpK256HkdfSha256 as Kem>::PublicKeyImplementations§
Source§impl HpkePublicKey
impl HpkePublicKey
pub fn to_compressed_bytes(&self) -> [u8; 33]
Available on crate feature
_core only.pub fn from_compressed_bytes(bytes: &[u8]) -> Result<Self, HpkeError>
Available on crate feature
_core only.Trait Implementations§
Source§impl Clone for HpkePublicKey
Available on crate feature _core only.
impl Clone for HpkePublicKey
Available on crate feature
_core only.Source§fn clone(&self) -> HpkePublicKey
fn clone(&self) -> HpkePublicKey
Returns a duplicate of the value. Read more
1.0.0 · 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 HpkePublicKey
Available on crate feature _core only.
impl Debug for HpkePublicKey
Available on crate feature
_core only.Source§impl Deref for HpkePublicKey
Available on crate feature _core only.
impl Deref for HpkePublicKey
Available on crate feature
_core only.Source§impl<'de> Deserialize<'de> for HpkePublicKey
Available on crate feature _core only.
impl<'de> Deserialize<'de> for HpkePublicKey
Available on crate feature
_core only.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 PartialEq for HpkePublicKey
Available on crate feature _core only.
impl PartialEq for HpkePublicKey
Available on crate feature
_core only.Source§impl Serialize for HpkePublicKey
Available on crate feature _core only.
impl Serialize for HpkePublicKey
Available on crate feature
_core only.impl Eq for HpkePublicKey
Available on crate feature
_core only.impl StructuralPartialEq for HpkePublicKey
Available on crate feature
_core only.Auto Trait Implementations§
impl Freeze for HpkePublicKey
impl RefUnwindSafe for HpkePublicKey
impl Send for HpkePublicKey
impl Sync for HpkePublicKey
impl Unpin for HpkePublicKey
impl UnwindSafe for HpkePublicKey
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