computeClientSessionKeys static method

SessionKeys computeClientSessionKeys(
  1. KeyPair clientPair,
  2. Uint8List serverPublicKey
)

Computes a pair of shared keys using the client's public key, the client's secret key and the server's public key.

Implementation

static SessionKeys computeClientSessionKeys(
        KeyPair clientPair, Uint8List serverPublicKey) =>
    Sodium.cryptoKxClientSessionKeys(
        clientPair.pk, clientPair.sk, serverPublicKey);