Functions

Link copied to clipboard

Convenience method, directly DER-decoding a byte array to T

Link copied to clipboard

Exception-free version of decodeFromDer

Link copied to clipboard
open fun decodeFromDerSafe(src: ByteArray): KmmResult<CryptoSignature>

Safe version of decodeFromDer, wrapping the result into a KmmResult

Link copied to clipboard
open override fun decodeFromTlv(src: Asn1Element): CryptoSignature

Processes an A, parsing it into an instance of T

Link copied to clipboard

Exception-free version of decodeFromTlv

Link copied to clipboard
open fun decodeFromTlvSafe(src: Asn1Element): KmmResult<CryptoSignature>

Safe version of decodeFromTlv, wrapping the result into a KmmResult

Link copied to clipboard

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