crypto_box_beforenm static method

Uint8List crypto_box_beforenm(
  1. Uint8List k,
  2. Uint8List y,
  3. Uint8List x
)

Implementation

static Uint8List crypto_box_beforenm(Uint8List k, Uint8List y, Uint8List x) {
  final s = Uint8List(32);
  crypto_scalarmult(s, x, y);

  final res = crypto_core_hsalsa20(k, _0, s, _sigma);
  return res;
}