Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module implements the FIDO U2F Attestation Statement Format.
Documentation
format :: SomeAttestationStatementFormat Source #
Helper function that wraps the Fido U2F format into the general SomeAttestationStatementFormat type.
The Fido U2F 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.FidoU2F 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 Fido U2F attestation
InvalidCertificatePublicKey PubKey | The public key in the certificate was not an EC Key or the curve was not the p256 curve |
NonECDSACredentialPublicKey PublicKey | The credential public key is not an ECDSA key |
WrongCoordinateSize Int Int | The x and/or y coordinates of the credential public key don't have a length of 32 bytes |
InvalidSignature SignatureFailure | The provided public key cannot validate the signature over the verification data |
Instances
Show VerificationError Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.FidoU2F showsPrec :: Int -> VerificationError -> ShowS # show :: VerificationError -> String # showList :: [VerificationError] -> ShowS # | |
Exception VerificationError Source # | |