Companion

Properties

Link copied to clipboard
const val SHA_256_64: Int

COSE algorithm SHA-256/64, the RECOMMENDED x5t hash with SHA-256 suites (RFC 9528 §9.3).

Functions

Link copied to clipboard
suspend fun x509Thumbprint(crypto: CryptoBackend, der: ByteArray, algorithm: Int = SHA_256_64): CredentialIdentifier.X509Thumbprint

{ 34 : [ algorithm, hash ] } for the DER certificate der.