Signature

sealed interface Signature

A digital signature produced by an asymmetric private key.

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun toCoseEncoded(): ByteArray

Encodes the signature for use in COSE or JWT.

Link copied to clipboard
abstract fun toDataItem(): DataItem

Serializes this signature as a CBOR DataItem.

Link copied to clipboard
abstract fun toDerEncoded(): ByteArray

Encodes the signature for use in ASN.1 DER structures such as X.509 certificates and CRLs.