Skip to main content

ResumptionRecord

Struct ResumptionRecord 

Source
pub struct ResumptionRecord {
    pub id: ResumptionId,
    pub shared_secret: [u8; 32],
    pub peer: PeerInfo,
    pub expires_at: Option<MatterTime>,
}
Expand description

State persisted by the caller after a successful CASE handshake, allowing a future session to skip the full 3-message handshake via Sigma2_Resume. Resumption flow lands in M4.2.

§Secret hygiene

Carries the resumption shared_secret. Implements zeroize::ZeroizeOnDrop (only the secret is wiped — the non-secret metadata fields id, peer, and expires_at are #[zeroize(skip)]), redacts the secret in its Debug impl, and does not derive variable-time equality.

Fields§

§id: ResumptionId

Identifier the peer sends back in Sigma1 to attempt resumption.

Skipped from zeroization: a public, non-secret session identifier (it is sent on the wire in Sigma1). Only shared_secret is sensitive.

§shared_secret: [u8; 32]

The full 32-byte ECDH SharedSecret of the original session (Matter Core §4.14.8). Both chip’s SessionResumptionStorage and matter.js store the raw ECDH output; it is the HKDF IKM for the resumption MICs and the resumed session keys. Caller treats this as opaque.

§peer: PeerInfo

Peer’s identity at the time the record was created.

Skipped from zeroization: non-secret identity/cert metadata, and PeerInfo is not Zeroize.

§expires_at: Option<MatterTime>

Optional expiry timestamp. Callers should reject resumption attempts after this point.

Skipped from zeroization: non-secret timestamp metadata.

Trait Implementations§

Source§

impl Clone for ResumptionRecord

Source§

fn clone(&self) -> ResumptionRecord

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ResumptionRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Redacts shared_secret; the non-secret fields are printed verbatim.

Source§

impl Drop for ResumptionRecord

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.