SignatureValue

value class SignatureValue : Asn1Encodable<Asn1Primitive> (source)

Constructors

Link copied to clipboard
constructor(rawBytes: ByteArray)

Types

Link copied to clipboard
object Companion : Asn1Serializable<Asn1Primitive, SignatureValue>

Properties

Link copied to clipboard
val rawBitString: Asn1BitString
Link copied to clipboard

Functions

Link copied to clipboard
fun decodeRS(): Pair<Asn1Integer.Positive, Asn1Integer.Positive>

Decodes r,s signature components from a SEQUENCE nested inside a signature values' BIT_STRING bytes. Throws if no such structure is present.

Link copied to clipboard
fun SignatureValue.decodeRsOrNull(): Pair<Asn1Integer.Positive, Asn1Integer.Positive>?
Link copied to clipboard
open override fun encodeToTlv(): Asn1Primitive
Link copied to clipboard
Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element