PrivateKeyInfo

@Serializable
class PrivateKeyInfo(val version: Int, val privateKeyAlgorithm: KeyAlgorithmIdentifier, val privateKey: ByteArray)(source)
PrivateKeyInfo ::= SEQUENCE {
version Version,
privateKeyAlgorithm PrivateKeyAlgorithmIdentifier,
privateKey PrivateKey,
attributes [0] IMPLICIT Attributes OPTIONAL
}

Version ::= INTEGER
PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier
PrivateKey ::= OCTET STRING

Attributes is not yet supported:

Attributes ::= SET OF Attribute
Attribute ::= SEQUENCE {
type OBJECT IDENTIFIER,
values AttributeSetValue
}
AttributeSetValue ::= SET OF ANY

Constructors

Link copied to clipboard
constructor(version: Int, privateKeyAlgorithm: KeyAlgorithmIdentifier, privateKey: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard