class Secret : Destroyable
(source)
A Diffie-Helman shared secret.
fun bytes(): Bytes |
|
fun bytesArray(): ByteArray |
|
fun destroy(): Unit |
|
fun equals(other: Any?): Boolean |
|
static fun forKeys(secretKey: SecretKey, publicKey: PublicKey): Secret
Compute a shared Secret from a secret key and a public key. |
|
static fun fromBytes(bytes: Bytes): Secret static fun fromBytes(bytes: ByteArray): Secret
Create a Secret from an array of bytes. The byte array must be of length |
|
fun hashCode(): Int |
|
fun isDestroyed(): Boolean |
|
static fun length(): Int
Obtain the length of the key in bytes (32). |