scalseMult static method

Uint8List scalseMult(
  1. Uint8List n,
  2. Uint8List p
)

Implementation

static Uint8List scalseMult(Uint8List n, Uint8List p) {
  if (!(n.length == scalarLength && p.length == groupElementLength))
    return null;

  Uint8List q = Uint8List(scalarLength);

  TweetNaclFast.crypto_scalarmult(q, n, p);

  return q;
}