Asn1Decodable

Interface providing convenience methods to decode from ASN.1. Especially useful when companion objects of classes implementing Asn1Encodable implement it.

Inheritors

Functions

Link copied to clipboard
open fun decodeFromDer(src: ByteArray): T

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<T>

Safe version of decodeFromDer, wrapping the result into a KmmResult

Link copied to clipboard
abstract fun decodeFromTlv(src: A): T

Processes an A, parsing it into an instance of T

Link copied to clipboard
open fun decodeFromTlvOrNull(src: A): T?

Exception-free version of decodeFromTlv

Link copied to clipboard
open fun decodeFromTlvSafe(src: A): KmmResult<T>

Safe version of decodeFromTlv, wrapping the result into a KmmResult