generateSharedSecret

open suspend fun generateSharedSecret(other: K): ByteString(source)

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

Use generateSharedSecretBlocking when calling from non-suspending code.