sharedSecret static method

Uint8List sharedSecret(
  1. Uint8List pk,
  2. Uint8List sk
)

Computes a shared secret key given a public key and a secret key for use in precalculation interface.

Implementation

static Uint8List sharedSecret(Uint8List pk, Uint8List sk) =>
    Sodium.cryptoBoxBeforenm(pk, sk);