pub struct EphemeralKey {
pub shared_secret: [u8; 32],
pub chain_key: [u8; 32],
pub created_ms: u64,
pub expiry_ms: u64,
}Expand description
An ephemeral QFKH session key — zeroized on drop.
Fields§
ML-KEM encapsulated shared secret (32 bytes)
chain_key: [u8; 32]Chain key for ratchet derivation
created_ms: u64Creation timestamp (Unix ms)
expiry_ms: u64Expiry interval (ms); default ≤1 ms
Implementations§
Source§impl EphemeralKey
impl EphemeralKey
pub fn is_expired(&self, now_ms: u64) -> bool
Trait Implementations§
Source§impl Clone for EphemeralKey
impl Clone for EphemeralKey
Source§impl Debug for EphemeralKey
impl Debug for EphemeralKey
Source§impl Drop for EphemeralKey
impl Drop for EphemeralKey
Auto Trait Implementations§
impl Freeze for EphemeralKey
impl RefUnwindSafe for EphemeralKey
impl Send for EphemeralKey
impl Sync for EphemeralKey
impl Unpin for EphemeralKey
impl UnsafeUnpin for EphemeralKey
impl UnwindSafe for EphemeralKey
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