verifyCoseX5t

suspend fun verifyCoseX5t(x5tDataItem: DataItem)

Verifies a CBOR COSE_CertHash structure from the COSE x5t header parameter (label 34) against this certificate according to RFC 9360 Section 2 and ISO/IEC 18013-5 Second Edition Clauses 12.3.4 and 12.5.4 (which mandate SHA-256).

Parameters

x5tDataItem

the DataItem from the x5t header parameter.

Throws

if x5tDataItem is malformed, does not use SHA-256, or does not match this certificate's SHA-256 digest.