scalar_mul_8 static method

void scalar_mul_8(
  1. Uint8List out,
  2. Uint8List k,
  3. int bytes
)

Implementation

static void scalar_mul_8(Uint8List out, Uint8List k, int bytes) {
  var r = 0;
  for (var i = 0; i < bytes; i++) {
    out[i] = (k[i] << 3) + (r & 0x7);
    r = k[i] >> 5;
  }
  out[bytes] = k[bytes - 1] >> 5;
}