pub struct InitiatorParameters { /* private fields */ }Expand description
Parameters for the initiator side of a PQXDH key agreement.
The initiator fetches the recipient’s pre-key bundle from the server and uses it together with their own identity and ephemeral keys to compute a shared secret.
Implementations§
Source§impl InitiatorParameters
impl InitiatorParameters
pub fn new( our_identity_key_pair: IdentityKeyPair, our_ephemeral_key_pair: KeyPair, their_identity_key: IdentityKey, their_signed_pre_key: PublicKey, their_ratchet_key: PublicKey, their_kyber_pre_key: PublicKey, self_session: bool, ) -> Self
pub fn set_their_one_time_pre_key(&mut self, ec_public: PublicKey)
pub fn our_identity_key_pair(&self) -> &IdentityKeyPair
pub fn our_ephemeral_key_pair(&self) -> &KeyPair
pub fn their_identity_key(&self) -> &IdentityKey
pub fn their_signed_pre_key(&self) -> &PublicKey
pub fn their_one_time_pre_key(&self) -> Option<&PublicKey>
pub fn their_kyber_pre_key(&self) -> &PublicKey
pub fn their_ratchet_key(&self) -> &PublicKey
pub fn self_session(&self) -> bool
Auto Trait Implementations§
impl Freeze for InitiatorParameters
impl RefUnwindSafe for InitiatorParameters
impl Send for InitiatorParameters
impl Sync for InitiatorParameters
impl Unpin for InitiatorParameters
impl UnsafeUnpin for InitiatorParameters
impl UnwindSafe for InitiatorParameters
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more