pub struct PqxdhPrivateKeys {
pub signed_prekey_private: StaticSecret,
pub one_time_prekey_privates: BTreeMap<String, StaticSecret>,
pub pq_signed_prekey_private: Vec<u8>,
pub pq_one_time_prekey_privates: BTreeMap<String, Vec<u8>>,
}Expand description
Private key material for PQXDH operations
This contains the private keys corresponding to a PqxdhPrekeyBundle. It should be stored securely and zeroized when no longer needed.
Fields§
§signed_prekey_private: StaticSecretPrivate key for the signed X25519 prekey
one_time_prekey_privates: BTreeMap<String, StaticSecret>Private keys for one-time X25519 prekeys
pq_signed_prekey_private: Vec<u8>Private key for the signed ML-KEM prekey
pq_one_time_prekey_privates: BTreeMap<String, Vec<u8>>Private keys for one-time ML-KEM prekeys
Trait Implementations§
Source§impl Clone for PqxdhPrivateKeys
impl Clone for PqxdhPrivateKeys
Source§fn clone(&self) -> PqxdhPrivateKeys
fn clone(&self) -> PqxdhPrivateKeys
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<'de> Deserialize<'de> for PqxdhPrivateKeys
impl<'de> Deserialize<'de> for PqxdhPrivateKeys
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 PqxdhPrivateKeys
impl PartialEq for PqxdhPrivateKeys
Auto Trait Implementations§
impl Freeze for PqxdhPrivateKeys
impl RefUnwindSafe for PqxdhPrivateKeys
impl Send for PqxdhPrivateKeys
impl Sync for PqxdhPrivateKeys
impl Unpin for PqxdhPrivateKeys
impl UnwindSafe for PqxdhPrivateKeys
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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