Stability | experimental |
---|---|
Safe Haskell | Safe-Inferred |
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
CertificatePublicKeyInvalid PubKey | The public key in the certificate was not an EC Key or the curve was not the p256 curve |
CredentialPublicKeyNotCoseEC2 CosePublicKey | The COSE encoding of the credential public key does not have key type EC2 |
CoordinateSizeInvalid | The x and/or y coordinates of the credential public key are longer than 32 bytes |
SignatureInvalid SignatureFailure | The provided public key cannot validate the signature over the verification data |
Instances
Exception VerificationError Source # | |
Show VerificationError Source # | |
Defined in Crypto.WebAuthn.AttestationStatementFormat.FidoU2F showsPrec :: Int -> VerificationError -> ShowS # show :: VerificationError -> String # showList :: [VerificationError] -> ShowS # |