ChipCheckReason

Why a check came out CheckOutcome.Failed, CheckOutcome.NotApplicable or CheckOutcome.NotRun. Each value is a fact about the inputs, never a verdict on the document. With ChipCheckReason.KEY_FILE_CHECKS_NOT_PASSED the chip's part held but the file that holds its key has not passed its own checks, so the fact is incomplete, never a pass.

Implements CheckReason, the shared reason type of CheckOutcome, so a chip check's outcome carries a typed reason.

May gain members in a later release: an exhaustive when over it then stops compiling until the new member is handled. An else branch keeps it compiling without handling the new member: that is your choice, and today the compiler warns that such an else is redundant.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Entries

Link copied to clipboard

A data group's hash differs from the one stored.

Link copied to clipboard

The security object stores no hash for the data group.

Link copied to clipboard

The message-digest attribute differs from the hash of the signed content.

Link copied to clipboard

The signed attributes have no message-digest attribute.

Link copied to clipboard

The content-type attribute differs from the content's type.

Link copied to clipboard

A signature does not verify.

Link copied to clipboard

The signer key does not fit the signature algorithm.

Link copied to clipboard

None of the roots your app supplied signed the signer certificate.

Link copied to clipboard

The signer's issuer name differs from the matched root's subject.

Link copied to clipboard

The check time is outside the certificate's validity period.

Link copied to clipboard

The certificate has a critical extension the SDK does not know.

Link copied to clipboard

EF.CardAccess has entries the signed copy lacks.

Link copied to clipboard

A file differs from its signed copy.

Link copied to clipboard

The document code is not in the signer's document-type list.

Link copied to clipboard

The signer key usage is not digital signature only.

Link copied to clipboard

The signer certificate has an extended key usage.

Link copied to clipboard

Two country codes differ.

Link copied to clipboard

The issue date is outside the signer's private-key usage period.

Link copied to clipboard

The chip has no EF.CardAccess.

Link copied to clipboard

EF.DIR was not read.

Link copied to clipboard

The signer has a document-type list, so the key-usage form of the check does not apply.

Link copied to clipboard

The signer has no document-type list.

Link copied to clipboard

The signer has no private-key usage period.

Link copied to clipboard

A file the check needs was not read.

Link copied to clipboard

A file the check needs could not be read.

Link copied to clipboard

EF.SOD could not be read.

Link copied to clipboard

The data group was not read.

Link copied to clipboard

The signed file carries no signer certificate.

Link copied to clipboard

The signer certificate could not be read.

Link copied to clipboard

Your app supplied no roots.

Link copied to clipboard

No supplied root matched the signer, so the root-based check could not run.

Link copied to clipboard

An algorithm the SDK does not run.

Link copied to clipboard

A public key could not be read.

Link copied to clipboard

This platform has no cryptography yet (iOS until its backend lands).

Link copied to clipboard

Your app gave no check time.

Link copied to clipboard

There is no signed copy to compare with.

Link copied to clipboard

The signed copy could not be read.

Link copied to clipboard

There is no document code to compare.

Link copied to clipboard

There is no issue date to compare.

Link copied to clipboard

A certificate has no country name.

Link copied to clipboard

The SDK does not run this check yet.

Link copied to clipboard

The chip does not offer this protocol.

Link copied to clipboard

The chip refused the protocol's command.

Link copied to clipboard

The chip offers the protocol only in forms the reader cannot run.

Link copied to clipboard

The protocol needs a secure-messaging session, and the chip was read without one.

Link copied to clipboard

The chip agreed new keys, but its next answer did not verify under them.

Link copied to clipboard

The calculation holds, but the file with the key has not passed its hash, signature and root checks.

Link copied to clipboard

Another form of chip authentication already ran in this read.

Link copied to clipboard

The read stopped before the check could run.

Link copied to clipboard

The chip sent no chip-authentication data with its last PACE answer.

Link copied to clipboard

The chip-authentication data is not in the defined form.

Link copied to clipboard

The chip-authentication data is zero or not below the group order.

Link copied to clipboard

The key computed from the chip-authentication data differs from the chip's mapping key.

Link copied to clipboard

EF.CardSecurity has no chip-authentication key with the key number PACE used.

Link copied to clipboard

The chip-authentication key is not in the PACE group or its point is not valid there.

Link copied to clipboard

A public key does not hold: a point off its curve, or a modulus that is not positive and odd.

Link copied to clipboard

The chip names no signature algorithm for its active-authentication key.

Link copied to clipboard

The chip's signature does not have the length its key gives.

Link copied to clipboard

The chip's signature is not in the defined form.

Link copied to clipboard

At least one field of DG1 differs from the printed MRZ.

Link copied to clipboard

The reader could not make its key pair or the shared secret on the chip's parameters.

Link copied to clipboard

The platform's cryptography could not carry out a step with the values the chip sent.

Link copied to clipboard

The signed copy lists a PACE entry that EF.CardAccess lacks, or EF.CardAccess is missing.

Link copied to clipboard

The signed copy lists PACE, and the read used another access protocol.

Link copied to clipboard

The chip's DG1 was not read or could not be parsed.

Properties

Link copied to clipboard
open override val code: String

The stable code of this reason: chip and the name in lower case, words joined by hyphens.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.