Expand description
SIP authenticated identity and PASSporT (RFC 8224 and RFC 8225).
This module is deliberately sans-I/O: callers supply time and keys. Credential retrieval, trust policy, and authorization belong to the user-agent layer.
Structs§
- Es256
Signing Key - An
ES256private key. Its debug form never includes key material. - Es256
Verifying Key - An
ES256public key. - Identity
Header - A parsed RFC 8224
Identityheader value.
Enums§
- Canonical
Identity - A canonical origin or destination identity.
- Identity
Error - A
PASSporTconstruction or verification failure.
Functions§
- date_
from_ timestamp - Format Unix seconds as the one GMT date form SIP permits.
- date_
timestamp - Parse one already syntax-checked SIP Date into Unix seconds.
- passport_
issued_ at - Read
iatfrom a fullPASSporT; a compact form carries none to read. - request_
identities - Canonical From and To identities from one SIP request.
- sign_
passport - Construct and deterministically sign a full baseline
PASSporT. - verify_
passport - Verify a full or compact baseline
PASSporTagainst SIP-derived claims.