computeServerSessionKeys static method

SessionKeys computeServerSessionKeys(
  1. KeyPair serverPair,
  2. Uint8List clientPublicKey
)

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

Implementation

static SessionKeys computeServerSessionKeys(
        KeyPair serverPair, Uint8List clientPublicKey) =>
    Sodium.cryptoKxServerSessionKeys(
        serverPair.pk, serverPair.sk, clientPublicKey);