public static int readECExponent(int fieldSize, InputStream input) throws IOException { BigInteger K = readECParameter(input); if (K.bitLength() < 32) { int k = K.intValue(); if (k > 0 && k < fieldSize) { return k; } } throw new TlsFatalAlert(AlertDescription.illegal_parameter); }
public static int readECExponent(int fieldSize, InputStream input) throws IOException { BigInteger K = readECParameter(input); if (K.bitLength() < 32) { int k = K.intValue(); if (k > 0 && k < fieldSize) { return k; } } throw new TlsFatalAlert(AlertDescription.illegal_parameter); }
BigInteger prime_p = readECParameter(input); BigInteger a = readECFieldElement(prime_p.bitLength(), input); BigInteger b = readECFieldElement(prime_p.bitLength(), input); byte[] baseEncoding = TlsUtils.readOpaque8(input); BigInteger order = readECParameter(input); BigInteger cofactor = readECParameter(input); ECCurve curve = new ECCurve.Fp(prime_p, a, b, order, cofactor); ECPoint base = deserializeECPoint(ecPointFormats, curve, baseEncoding); BigInteger b = readECFieldElement(m, input); byte[] baseEncoding = TlsUtils.readOpaque8(input); BigInteger order = readECParameter(input); BigInteger cofactor = readECParameter(input);
BigInteger prime_p = readECParameter(input); BigInteger a = readECFieldElement(prime_p.bitLength(), input); BigInteger b = readECFieldElement(prime_p.bitLength(), input); byte[] baseEncoding = TlsUtils.readOpaque8(input); BigInteger order = readECParameter(input); BigInteger cofactor = readECParameter(input); ECCurve curve = new ECCurve.Fp(prime_p, a, b, order, cofactor); ECPoint base = deserializeECPoint(ecPointFormats, curve, baseEncoding); BigInteger b = readECFieldElement(m, input); byte[] baseEncoding = TlsUtils.readOpaque8(input); BigInteger order = readECParameter(input); BigInteger cofactor = readECParameter(input);