bits2int_modN static method

BigInt bits2int_modN(
  1. Uint8List bytes
)

int2octets can't be used; pads small msgs

Implementation

static BigInt bits2int_modN(Uint8List bytes) {
  // with 0: BAD for trunc as per RFC vectors
  return mod(bits2int(bytes), N);
}