object Companion
source · line 39public
public companion
Parses private key data into owned native handles.
function generateP256
source · line 51public
public fun generateP256(): PrivateKey
Generates a private key on the P-256 elliptic curve.
function generateEd25519
source · line 55public
public fun generateEd25519(): PrivateKey
Generates an Ed25519 private key.
function fromPem
source · line 64public
public fun fromPem(pem: String): PrivateKey
Parses PEM input into a new owned PrivateKey; malformed input reports a cryptographic backend failure.
parameter pem
source · line 64public
pem: String
function generateRsa
source · line 43public
public fun generateRsa(bits: Int = 2048): PrivateKey
Generates an RSA private key. The bit count must be at least 2048 and divisible by 256.
parameter bits
source · line 43public
bits: Int = 2048
function fromDer
source · line 69public
public fun fromDer(der: List<Byte>): PrivateKey
Parses DER input into a new owned PrivateKey; malformed input reports a cryptographic backend failure.
parameter der
source · line 69public
der: List<Byte>