class SecretKey
source · line 9public
public class SecretKey private constructor(private var handle: ULong) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
Owned native storage for symmetric key bytes. Close it after use; exporting creates a separate managed byte copy.
function close
source · line 44public
public override fun close(): Unit
- Overrides
close
Releases native key storage; repeated closes are harmless.
property size
source · line 13public
public val size: Long
get: public read-only
The key length in bytes; access after close fails.
getter get
source · line 13public
get(): Long
function exportBytes
source · line 39public
public fun exportBytes(): Array<Byte>
Returns a managed copy of the key material. Closing the key does not erase this separate copy.