Functions

Link copied to clipboard
open override fun decodeFromDer(src: ByteArray, assertTag: Asn1Element.Tag?): CryptoPrivateKey
Link copied to clipboard
open override fun decodeFromDerOrNull(src: ByteArray, assertTag: Asn1Element.Tag?): CryptoPrivateKey?
Link copied to clipboard
open override fun decodeFromDerSafe(src: ByteArray, assertTag: Asn1Element.Tag?): KmmResult<CryptoPrivateKey>
Link copied to clipboard
fun decodeFromPem(src: String): KmmResult<CryptoPrivateKey>

Decodes a PEM-encoded string into T

Link copied to clipboard
open override fun decodeFromTlv(src: Asn1Sequence, assertTag: Asn1Element.Tag?): CryptoPrivateKey
Link copied to clipboard
open override fun decodeFromTlvOrNull(src: Asn1Sequence, assertTag: Asn1Element.Tag?): CryptoPrivateKey?
Link copied to clipboard
open override fun decodeFromTlvSafe(src: Asn1Sequence, assertTag: Asn1Element.Tag?): KmmResult<CryptoPrivateKey>
Link copied to clipboard
open override fun doDecode(src: Asn1Sequence): CryptoPrivateKey
Link copied to clipboard

Tries to decode a private key as exported from iOS. EC keys are exported as padded raw bytes. RSA keys are exported using PKCS#1 encoding

Link copied to clipboard
open override fun verifyTag(src: Asn1Sequence, assertTag: Asn1Element.Tag?)