generatePair method

void generatePair(
  1. Random random
)

Implementation

void generatePair(Random random) {
  if (secretBits % 8 != 0) throw FormatException();
  x = decodeBigInt(randBytes(random, secretBits ~/ 8));
  e = g.modPow(x, p);
}