Stability | experimental |
---|---|
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module implements the Packed Attestation Statement Format.
Synopsis
- format :: SomeAttestationStatementFormat
- data Format = Format
- data VerificationError
Documentation
format :: SomeAttestationStatementFormat Source #
Helper function that wraps the Packed format into the general SomeAttestationStatementFormat type.
The Packed format. The sole purpose of this type is to instantiate the AttestationStatementFormat typeclass below.
Instances
Show Format Source # | |
AttestationStatementFormat Format Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.Packed asfIdentifier :: Format -> Text Source # asfVerify :: Format -> DateTime -> AttStmt Format -> AuthenticatorData 'Registration 'True -> ClientDataHash -> Validation (NonEmpty (AttStmtVerificationError Format)) SomeAttestationType Source # asfTrustAnchors :: Format -> VerifiableAttestationType -> CertificateStore Source # asfDecode :: Format -> HashMap Text Term -> Either Text (AttStmt Format) Source # | |
type AttStmt Format Source # | |
type AttStmtVerificationError Format Source # | |
data VerificationError Source #
Verification errors specific to Packed attestation
AlgorithmMismatch | The Algorithm from the attestation format does not match the algorithm of the key in the credential data |
| |
InvalidSignature Text | The statement key cannot verify the signature over the attested credential data and client data for self attestation |
VerificationFailure SignatureFailure | The statement certificate cannot verify the signature over the attested credential data and client data for nonself attestation |
CertificateRequirementsUnmet | The certificate does not meet the requirements layed out in the webauthn specification https://www.w3.org/TR/webauthn-2/#sctn-packed-attestation-cert-requirements |
CertificateAAGUIDMismatch | The AAGUID in the certificate extension does not match the AAGUID in the authenticator data |
|
Instances
Exception VerificationError Source # | |
Show VerificationError Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.Packed showsPrec :: Int -> VerificationError -> ShowS # show :: VerificationError -> String # showList :: [VerificationError] -> ShowS # |