Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

In Java EC signatures are returned as DER-encoded, RSA signatures however are raw bytearrays

Link copied to clipboard
val r: BigInteger

r - ECDSA signature component

Link copied to clipboard
open override val rawByteArray: ByteArray

Concatenates r and s, padding each one to the next largest coordinate length of an ECCurve, for use in e.g. JWS signatures.

Link copied to clipboard
val s: BigInteger

s - ECDSA signature component

Link copied to clipboard

scalar byte length of the underlying curve; we do not know which curve with this particular byte length since raw signatures do not carry this information

Link copied to clipboard
open override val signature: Asn1Element

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Element
Link copied to clipboard
open override fun encodeToTlvBitString(): Asn1Element
Link copied to clipboard
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Element>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Two signatures are considered equal if r and s are equal. This is true even if they are of definite length, and the lengths differ.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open infix fun withImplicitTag(tagValue: ULong): Asn1Element