ExSwan.AttestationStatement (exswan v0.1.0)
View SourceHandles validation of WebAuthn attestation statements.
This module provides validation for different attestation statement formats according to the WebAuthn specification, including:
none- No attestation statementpacked- Self attestation or full attestation with certificate chainfido-u2f- FIDO U2F attestation statement format
Each format has specific validation requirements and trust models.
Summary
Functions
Validates an attestation statement based on its format.
Functions
Validates an attestation statement based on its format.
Parameters
fmt- Attestation statement format identifieratt_stmt- Attestation statement mapauth_data- Raw authenticator data bytesclient_data_hash- SHA256 hash of client data JSON
Returns
:ok- Attestation statement is valid{:error, reason}- Validation failed
Examples
{:ok} = ExSwan.AttestationStatement.verify("none", %{}, auth_data, client_data_hash)