scCheck static method

int scCheck(
  1. List<int> s
)

Implementation

static int scCheck(List<int> s) {
  s.asMin32("scCheck");
  BigInt s0 = _load4(s, 0);
  BigInt s1 = _load4(s, 4);
  BigInt s2 = _load4(s, 8);
  BigInt s3 = _load4(s, 12);
  BigInt s4 = _load4(s, 16);
  BigInt s5 = _load4(s, 20);
  BigInt s6 = _load4(s, 24);
  BigInt s7 = _load4(s, 28);
  final r = (signum(1559614444.toBig - s0) +
          (signum(1477600026.toBig - s1) << 1) +
          (signum(2734136534.toBig - s2) << 2) +
          (signum(350157278.toBig - s3) << 3) +
          (signum(-s4) << 4) +
          (signum(-s5) << 5) +
          (signum(-s6) << 6) +
          (signum(268435456.toBig - s7) << 7)) >>
      8;
  return r.toInt();
}