SharedSecretGenerator

Performs key agreement to produce a shared secret with the other party's key.

The raw shared secret should not be used directly as an encryption key.

Functions

Link copied to clipboard
open suspend fun generateSharedSecret(other: K): ByteString

Performs key agreement with the other party's key material and returns the resulting shared secret as a ByteString.

Link copied to clipboard

Performs key agreement with the other party's key material and returns the resulting shared secret as a ByteString.

Link copied to clipboard
open suspend fun generateSharedSecretToByteArray(other: K): ByteArray

Performs key agreement with the other party's key material and returns the resulting shared secret as a ByteArray.

Link copied to clipboard

Performs key agreement with the other party's key material and returns the resulting shared secret as a ByteArray.