Constructors

Link copied to clipboard
constructor(rawBytes: ByteArray)
constructor(x509Element: Asn1Primitive)

Types

Link copied to clipboard
object Companion : Asn1Decodable<Asn1Element, CryptoSignature.RSA>

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
open override val rawByteArray: ByteArray

the raw bytes of the signature value

Link copied to clipboard
val signature: Asn1Primitive

the signature encoded as an ASN.1 BIT STRING

Link copied to clipboard
val CryptoSignature.x509Encoded: Asn1Primitive

Signature encoded as per X.509:

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(): Asn1Primitive
Link copied to clipboard
open fun encodeToTlvOrNull(): Asn1Element?
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Element>
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
Link copied to clipboard
open override fun toString(): String
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