tuweni / org.apache.tuweni.crypto.sodium / DiffieHelman / Secret / forKeys

forKeys

static fun forKeys(secretKey: SecretKey!, publicKey: PublicKey!): Secret! (source)

Compute a shared Secret from a secret key and a public key.

Parameters

secretKey - SecretKey!: the user's secret key

publicKey - PublicKey!: another user's public key

Return
Secret!: A shared Secret.