webauthn-0.1.0.0: Relying party (server) implementation of the WebAuthn 2 specification
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Crypto.WebAuthn.AttestationStatementFormat.AndroidKey

Description

This module implements the Android Key Attestation Statement Format.

Synopsis

Documentation

format :: SomeAttestationStatementFormat Source #

The default Android Key format configuration. Requires the attestation to be backed by a Trusted Executing Environment (TEE).

data TrustLevel Source #

The required Trust level for Android Key attestation.

Constructors

SoftwareEnforced

Trust has to be ensured on the software level. This is weaker than TEE enforced trust.

TeeEnforced

Hardware backed attestation, this requires that the Trusted Executing Environment enforced the attestation.

data VerificationError Source #

Verification errors specific to Android Key attestation

Constructors

VerificationErrorCredentialKeyMismatch

The public key in the certificate is different from the on in the attested credential data

VerificationErrorClientDataHashMismatch

The challenge field of the certificate extension does not match the clientDataHash

VerificationErrorAndroidKeyAllApplicationsFieldFound

The "attestation" extension is scoped to all applications instead of just the RpId

VerificationErrorAndroidKeyOriginFieldInvalid

The origin field(s) were not equal to KM_ORIGIN_GENERATED

VerificationErrorAndroidKeyPurposeFieldInvalid

The purpose field(s) were not equal to the singleton set containing KM_PURPOSE_SIGN

VerificationErrorVerificationFailure Text

The Public key cannot verify the signature over the authenticatorData and the clientDataHash.