EcSignature

data class EcSignature(val r: ByteArray, val s: ByteArray) : Signature

An Elliptic Curve Cryptography signature.

Parameters

r

the R value.

s

the S value.

Constructors

Link copied to clipboard
constructor(r: ByteArray, s: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toCoseEncoded(): ByteArray

Encodes the signature for use in COSE or JWT.

Link copied to clipboard
open override fun toDataItem(): DataItem

Serializes this signature as a CBOR DataItem.

Link copied to clipboard
open override fun toDerEncoded(): ByteArray

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