/** * Return the curve's field size in bytes. * * @param c the curve of interest. * @return the field size in bytes (rounded up). */ public int getByteLength( ECCurve c) { return (c.getFieldSize() + 7) / 8; }
public int getByteLength( ECCurve c) { return (c.getFieldSize() + 7) / 8; }
public static int getCombSize(ECCurve c) { BigInteger order = c.getOrder(); return order == null ? c.getFieldSize() + 1 : order.bitLength(); }
public static int getCombSize(ECCurve c) { BigInteger order = c.getOrder(); return order == null ? c.getFieldSize() + 1 : order.bitLength(); }
public int getSeedLen() { return p.getCurve().getFieldSize(); }
public int getSeedLen() { return p.getCurve().getFieldSize(); }
public int fieldBitLength() { return x9ECParameters.getCurve().getFieldSize(); }
public int engineGetKeySize(Key key) { if (key instanceof ECKey) { return ((ECKey)key).getParameters().getCurve().getFieldSize(); } else { throw new IllegalArgumentException("not an EC key"); } }
public int engineGetKeySize(Key key) { if (key instanceof ECKey) { return ((ECKey)key).getParameters().getCurve().getFieldSize(); } else { throw new IllegalArgumentException("not an EC key"); } }
public int getMaxOutlen() { return ((p.getCurve().getFieldSize() - (13 + log2(cofactor))) / 8) * 8; }
public int getFieldSize() { return (key.getParameters().getCurve().getFieldSize() + 7) / 8; }
public int getMaxOutlen() { return ((p.getCurve().getFieldSize() - (13 + log2(cofactor))) / 8) * 8; }
public int getFieldSize() { return (key.getParameters().getCurve().getFieldSize() + 7) / 8; }
public int getFieldSize() { return (key.getParameters().getCurve().getFieldSize() + 7) / 8; }
public int getFieldSize() { return (key.getParameters().getCurve().getFieldSize() + 7) / 8; }
private static ECFieldElement hash2FieldElement(ECCurve curve, byte[] hash) { byte[] data = Arrays.reverse(hash); return curve.fromBigInteger(truncate(new BigInteger(1, data), curve.getFieldSize())); }
private static ECFieldElement hash2FieldElement(ECCurve curve, byte[] hash) { byte[] data = Arrays.reverse(hash); return curve.fromBigInteger(truncate(new BigInteger(1, data), curve.getFieldSize())); }
public int getFieldSize() { return (privParams.getStaticPrivateKey().getParameters().getCurve().getFieldSize() + 7) / 8; }
public int getFieldSize() { return (privParams.getStaticPrivateKey().getParameters().getCurve().getFieldSize() + 7) / 8; }
ECPoint decodePoint(byte[] data) { ECCurve curve = ECNamedCurveTable.getByName(curveName).getCurve(); int compactExportSize = (curve.getFieldSize() + 7) / 8; return data.length == compactExportSize ? ECPointsCompact.decodeFPPoint(curve, data) // Compact keys support, non RFC6636 compliant. : curve.decodePoint(data); }