SealPrivateKey

A recipient's private key: it opens what was sealed to its publicKey.

generate makes one; encodePkcs8 writes it as standard PKCS #8 that carries its public key, and decodePkcs8 reads that back on any platform — or a key made elsewhere, such as by openssl ecparam -name prime256v1 -genkey | openssl pkcs8 -topk8 -nocrypt -outform DER. toString never prints key material.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The public half, to hand to whoever seals.

Functions

Link copied to clipboard
suspend fun encodePkcs8(): ByteArray

The key as PKCS #8 DER (PrivateKeyInfo, RFC 5958) whose inner ECPrivateKey (RFC 5915) carries the public key — secret material; store it as such.

Link copied to clipboard
open override fun toString(): String