Companion
object Companion : PemDecodable<Asn1Sequence, CryptoPrivateKey> , Asn1Decodable<Asn1Sequence, CryptoPrivateKey> (source)
Functions
Link copied to clipboard
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
Decodes a PEM-encoded string into T
Link copied to clipboard
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
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