Skip to main content

verify_recovery_secret

Function verify_recovery_secret 

Source
pub fn verify_recovery_secret(
    cached_escrow: &WrappedSecret,
    passphrase: &[u8],
    device_master: &[u8; 32],
) -> VerifyOutcome
Expand description

Local-only verification that the user still holds the recovery secret: unwrap the cached escrow blob, then compare an HKDF-derived tag against the tag derived from the device-held master key (derived-tag compare — raw key bytes are never compared or surfaced). Zero network I/O by construction; the cadence, snooze, and refresh-before-fail policy live in the client.