result = result.add(BigInteger.valueOf(bytes[i] & 0xFF));
}
return result;
}
private static BigInteger computeAffineY(final BigInteger affineX, final ECParameterSpec params) {
<BUG>final ECCurve bcCurve = toBouncyCastleECCurve(params);
</BUG>
final ECFieldElement a = bcCurve.getA();
final ECFieldElement b = bcCurve.getB();
final ECFieldElement x = bcCurve.fromBigInteger(affineX);

result = result.add(BigInteger.valueOf(bytes[i] & 0xFF));
}
return result;
}
private static BigInteger computeAffineY(final BigInteger affineX, final ECParameterSpec params) {
final ECCurve bcCurve = toSpongyCastleECCurve(params);
final ECFieldElement a = bcCurve.getA();
final ECFieldElement b = bcCurve.getB();
final ECFieldElement x = bcCurve.fromBigInteger(affineX);
