EncryptedPrivateKey

class EncryptedPrivateKey(val encryptionAlgorithm: ObjectIdentifier, val encryptedData: ByteArray) : PemEncodable<Asn1Sequence> (source)

Representation of an encrypted private key structure as per RFC 5208

Constructors

Link copied to clipboard
constructor(encryptionAlgorithm: ObjectIdentifier, encryptedData: ByteArray)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val canonicalPEMBoundary: String

Encapsulation boundary string. Will be automatically fenced.

Link copied to clipboard

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
open override fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
open infix fun withImplicitTag(tagValue: ULong): Asn1Element