scalar_add static method

void scalar_add(
  1. Uint8List out,
  2. int offset,
  3. Uint8List k,
  4. Uint8List k1,
)

Implementation

static void scalar_add(Uint8List out, int offset, Uint8List k, Uint8List k1) {
  var r = 0;

  for (var i = 0; i < 32; i++) {
    r = k[i] + k1[i] + r;
    out[i + offset] = r;
    r >>= 8;
  }
}