Scoop API

scoop:scoop.crypto:0.1.0

PublicKey

class PublicKey

source · line 103
public
public class PublicKey internal constructor(private var handle: ULong) : Closeable

An independently owned native asymmetric public key. Close it after use.

function toDer

source · line 133
public
public fun toDer(): Array<Byte>

Exports the live PublicKey as DER data in an independent managed value.

function close

source · line 142
public
public override fun close(): Unit

Releases the native PublicKey handle. Repeated closes are harmless; other operations after close fail.

function toPem

source · line 137
public
public fun toPem(): String

Exports the live PublicKey as PEM data in an independent managed value.