KemResult

class KemResult(val sharedSecret: SecureByteString, val ciphertext: ByteArray) : AutoCloseable

Result of a Key Encapsulation Mechanism (KEM) encapsulation operation.

Constructors

Link copied to clipboard
constructor(sharedSecret: SecureByteString, ciphertext: ByteArray)

Properties

Link copied to clipboard

the encapsulated ciphertext to be sent to the recipient.

Link copied to clipboard

the shared secret as a SecureByteString.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun destroy()

Destroys this result by destroying the underlying shared secret.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String