webauthn-0.6.0.1: Relying party (server) implementation of the WebAuthn 2 specification
Stabilityexperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

Crypto.WebAuthn.AttestationStatementFormat.FidoU2F

Description

This module implements the FIDO U2F Attestation Statement Format.

Synopsis

Documentation

format :: SomeAttestationStatementFormat Source #

Helper function that wraps the Fido U2F format into the general SomeAttestationStatementFormat type.

data VerificationError Source #

Verification errors specific to Fido U2F attestation

Constructors

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

Fields

  • xLength :: Int

    Actual length in bytes of the x coordinate

  • yLength :: Int

    Actual length in bytes of the y coordinate

SignatureInvalid SignatureFailure

The provided public key cannot validate the signature over the verification data