pub struct DhResponder { /* private fields */ }Expand description
Perform a complete DH key exchange (responder side).
Uses ephemeral keys by default — a fresh X25519 keypair is generated
on construction and consumed when complete() derives
the SRTP keys. This provides forward secrecy but no identity verification.
For MITM-resistant exchanges with peer key pinning, use
Identity and
PinnedPeer instead.
Implementations§
Source§impl DhResponder
impl DhResponder
Sourcepub fn resp_message(&self, csc_id: u32) -> Result<MikeyMessage>
pub fn resp_message(&self, csc_id: u32) -> Result<MikeyMessage>
Build the response message
Sourcepub fn complete(
self,
init: &MikeyMessage,
suite: SrtpCryptoSuite,
) -> Result<SrtpKeyMaterial>
pub fn complete( self, init: &MikeyMessage, suite: SrtpCryptoSuite, ) -> Result<SrtpKeyMaterial>
Process the initiator’s message and derive SRTP keys
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DhResponder
impl RefUnwindSafe for DhResponder
impl Send for DhResponder
impl Sync for DhResponder
impl Unpin for DhResponder
impl UnsafeUnpin for DhResponder
impl UnwindSafe for DhResponder
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