scCheck static method

int scCheck(
  1. List<int> s
)

Implementation

static int scCheck(List<int> s) {
  s.asMin32("scCheck");
  final BigInt s0 = _load4(s, 0);
  final BigInt s1 = _load4(s, 4);
  final BigInt s2 = _load4(s, 8);
  final BigInt s3 = _load4(s, 12);
  final BigInt s4 = _load4(s, 16);
  final BigInt s5 = _load4(s, 20);
  final BigInt s6 = _load4(s, 24);
  final 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();
}