EncryptedPrivateKey

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

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
object Companion : PemDecodable<Asn1Sequence, EncryptedPrivateKey>

Properties

Link copied to clipboard
open override val canonicalPEMBoundary: String
Link copied to clipboard
Link copied to clipboard
val encryptionAlgorithm: ObjectIdentifier

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun encodeToDerSafe(): KmmResult<ByteArray>
Link copied to clipboard
open override fun encodeToTlv(): Asn1Sequence
Link copied to clipboard
open fun encodeToTlvOrNull(): Asn1Sequence?
Link copied to clipboard
open fun encodeToTlvSafe(): KmmResult<Asn1Sequence>
Link copied to clipboard
Link copied to clipboard
open infix fun withImplicitTag(tag: Asn1Element.Tag): Asn1Element
open infix fun withImplicitTag(template: Asn1Element.Tag.Template): Asn1Element
open infix fun withImplicitTag(tagValue: ULong): Asn1Element