private static DHParameters rfc7919Parameters(String hexP, int l) { // NOTE: All the groups in RFC 7919 use safe primes, i.e. q = (p-1)/2, and generator g = 2 BigInteger p = fromHex(hexP); return new DHParameters(p, TWO, p.shiftRight(1), l); }
private static DHParameters rfc7919Parameters(String hexP, int l) { // NOTE: All the groups in RFC 7919 use safe primes, i.e. q = (p-1)/2, and generator g = 2 BigInteger p = fromHex(hexP); return new DHParameters(p, TWO, p.shiftRight(1), l); }