pub struct ResumptionState {
pub shared_secret: Secret<GROUP_SIZE_BYTES>,
pub resumption_id: [u8; 16],
pub fabric_index: FabricIndex,
pub identity: VerifiedIdentity,
}Available on crate feature
rustcrypto only.Expand description
What both peers must remember to resume a session later.
§4.14.2.2.1 lists exactly this: “SharedSecret, Local Fabric Index, Peer Node ID, Peer
CASE Authenticated Tags, ResumptionID”. The CATs are part of the peer’s identity, so
resuming without them would silently widen what the peer is allowed to do — they are
held in ResumptionState::identity rather than re-derived.
Fields§
The ECDH secret of the session being resumed. “It SHALL be that SharedSecret that is used to compute the resumption ID.”
resumption_id: [u8; 16]The identifier of that session.
fabric_index: FabricIndexThis node’s index for the fabric it was on.
identity: VerifiedIdentityWho the peer was, as the previous exchange established it.
Trait Implementations§
Source§impl Clone for ResumptionState
impl Clone for ResumptionState
Auto Trait Implementations§
impl Forget for ResumptionState
impl Freeze for ResumptionState
impl Move for ResumptionState
impl RefUnwindSafe for ResumptionState
impl Send for ResumptionState
impl Sync for ResumptionState
impl Unpin for ResumptionState
impl UnsafeUnpin for ResumptionState
impl UnwindSafe for ResumptionState
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