Expand description
TOTP (Time-based One-Time Password) implementation per RFC 6238.
Used for OTP gating of sensitive actions, domains, and estop resume.
Structs§
- OtpGate
- OTP gating engine — checks whether an action or domain requires OTP.
Enums§
- OtpGate
Result - Decision from the OTP gate.
Functions§
- generate_
totp - Generate a TOTP code for the given secret and time step.
- generate_
totp_ at - Generate a TOTP code for a specific unix timestamp (for testing).
- validate_
totp - Validate a TOTP code with a time window for clock skew tolerance.
- validate_
totp_ at - Validate a TOTP code at a specific timestamp (for testing).