Skip to main content

Module identity

Module identity 

Source
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§

Es256SigningKey
An ES256 private key. Its debug form never includes key material.
Es256VerifyingKey
An ES256 public key.
IdentityHeader
A parsed RFC 8224 Identity header value.

Enums§

CanonicalIdentity
A canonical origin or destination identity.
IdentityError
A PASSporT construction 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 iat from a full PASSporT; 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 PASSporT against SIP-derived claims.