WithPublicKey

Properties

Link copied to clipboard

Encodes this private key into a PKCS#8-encoded private key. This is the default.

Link copied to clipboard
abstract val attributes: List<Asn1Element>?

optional attributes relevant when PKCS#8-encoding a private key

Link copied to clipboard

Encapsulation boundary string. Will be automatically fenced.

Link copied to clipboard
abstract val oid: ObjectIdentifier
Link copied to clipboard
abstract val publicKey: T

CryptoPublicKey matching this private key.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
fun PemEncodable<*>.encodeToPEM(): KmmResult<String>

Encodes this PemEncodable into a PEM-encoded string

Link copied to clipboard
abstract fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
Link copied to clipboard
fun CryptoPrivateKey.WithPublicKey<*>.toSecKey(): KmmResult<SecKeyRef>

Converts this privateKey into a SecKeyRef, making it usable on iOS

Link copied to clipboard
open infix fun withImplicitTag(tagValue: ULong): Asn1Element