pub struct Spake2PlusOutput {
pub session_key: SharedSecret,
}Expand description
Output of a completed SPAKE2+ protocol run.
Fields§
§session_key: SharedSecretThe shared session key (K_shared).
Implementations§
Source§impl Spake2PlusOutput
impl Spake2PlusOutput
Sourcepub fn into_session_key(self) -> SharedSecret
pub fn into_session_key(self) -> SharedSecret
Consume the output and yield the session key.
Because Spake2PlusOutput derives ZeroizeOnDrop, it cannot be
pattern-destructured by the caller. This consumer extracts the
session key cleanly without the boilerplate mem::replace shim.
Trait Implementations§
Source§impl Drop for Spake2PlusOutput
impl Drop for Spake2PlusOutput
Auto Trait Implementations§
impl Freeze for Spake2PlusOutput
impl RefUnwindSafe for Spake2PlusOutput
impl Send for Spake2PlusOutput
impl Sync for Spake2PlusOutput
impl Unpin for Spake2PlusOutput
impl UnsafeUnpin for Spake2PlusOutput
impl UnwindSafe for Spake2PlusOutput
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