
return fromBouncyCastleECPoint(bcProd);
</BUG>
}
<BUG>private static ECPoint fromBouncyCastleECPoint(final org.bouncycastle.math.ec.ECPoint point) {

final org.bouncycastle.math.ec.ECPoint newPoint = point.normalize();
</BUG>
if (!newPoint.isValid()) {
LOGGER.warning("Se ha proporcionaod un punto invalido"); //$NON-NLS-1$

LOGGER.warning("Se ha generado un punto invalido"); //$NON-NLS-1$
}
return new ECParameterSpec(new EllipticCurve(new ECFieldFp(p), a, b), ephemeralGenerator, order, cofactor);
}
private static ECPoint multiply(final BigInteger s, final ECPoint point, final ECParameterSpec params) {
final org.spongycastle.math.ec.ECPoint bcPoint = toSpongyCastleECPoint(point, params);
final org.spongycastle.math.ec.ECPoint bcProd = bcPoint.multiply(s);
return fromSpongyCastleECPoint(bcProd);
}
private static ECPoint fromSpongyCastleECPoint(final org.spongycastle.math.ec.ECPoint point) {
final org.spongycastle.math.ec.ECPoint newPoint = point.normalize();
if (!newPoint.isValid()) {
LOGGER.warning("Se ha proporcionaod un punto invalido"); //$NON-NLS-1$
