toCoseX5t
Encodes the SHA-256 certificate hash as a CBOR COSE_CertHash structure for use in the COSE x5t header parameter (label 34) according to RFC 9360 Section 2 and ISO/IEC 18013-5 Second Edition Clauses 12.3.4 and 12.5.4.
Return
a DataItem encoding [ -16, sha256(encoded) ].