X509SignatureValue

@Serializable
value class X509SignatureValue(val rawBitString: Asn1BitString)(source)

As per RFC5280:

signatureValue       BIT STRING

This type models signatureValue, represented as raw BIT STRING bytes. Helper methods decodeRS / fromRS use ASN.1 ECDSA-Sig-Value from RFC5759:

ECDSA-Sig-Value ::= SEQUENCE {
r INTEGER,
s INTEGER
}

Constructors

Link copied to clipboard
constructor(rawBitString: Asn1BitString)
constructor(rawBytes: ByteArray)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

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