SecurityObjectView

The chip's signed list of checksums (EF.SOD), read but not checked.

It holds one hash per data group, the algorithm used, who signed it and the signer's certificate when the chip stores one. The view reports what the file says: nothing here has been verified, not the signature, not the certificate and not the hashes against the data groups. It never says the chip is genuine.

Both versions of the object are read: V0 (no LDS version info) and V1 (with it). A file written with BER lengths instead of DER is read too; wasBer says so.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The certificates stored in the file that could be read, in order.

Link copied to clipboard

One hash per data group, in the order stored.

Link copied to clipboard

true when the hash algorithm identifier carries parameters (an explicit NULL); false when they are absent. Both are accepted.

Link copied to clipboard

The hash algorithm's name (SHA-1, SHA-224, SHA-256, SHA-384, SHA-512), or null for an OID the SDK does not name.

Link copied to clipboard

The OID of the hash algorithm, in dotted form.

Link copied to clipboard

The LDS version (for example 0108) from V1's version info, or null when absent.

Link copied to clipboard

The CMS SignedData version as stored.

Link copied to clipboard

The signers named in the SignedData; usually one.

Link copied to clipboard

The Unicode version from V1's version info, or null when absent.

Link copied to clipboard

How many stored certificates could not be read: the size of unreadableCertificates.

Link copied to clipboard

The stored certificates that could not be read, one entry each, in the order stored: its position, its length, the problem and the byte offset where reading stopped. Facts only: no certificate content. Empty when every stored certificate could be read.

Link copied to clipboard

The LDS security object's version as stored: 0 for V0, 1 for V1.

Link copied to clipboard

true when the file was not DER (it used indefinite or longer-than-needed lengths). The content is read the same way.

Functions

Link copied to clipboard

The signed content (the encoded LDS security object), as stored: the bytes the signature check hashes.

Link copied to clipboard
fun hashOf(number: Int): ByteArray?

The hash stored for data group number, or null when the object has none. The first one if it lists the group twice.

Link copied to clipboard
open override fun toString(): String