Example usage for org.bouncycastle.math.ec ECAlgorithms referenceMultiply

List of usage examples for org.bouncycastle.math.ec ECAlgorithms referenceMultiply

Introduction

In this page you can find the example usage for org.bouncycastle.math.ec ECAlgorithms referenceMultiply.

Prototype

public static ECPoint referenceMultiply(ECPoint p, BigInteger k) 

Source Link

Document

Simple shift-and-add multiplication.

Usage

From source file:com.github.horrorho.inflatabledonkey.crypto.ec.ECPointsCompact.java

License:Open Source License

@Deprecated
public static boolean satisfiesCofactor(ECCurve curve, ECPoint point) {
    // Patched org.bouncycastle.math.ec.ECPoint#satisfiesCofactor protected code.
    BigInteger h = curve.getCofactor();
    return h == null || h.equals(ECConstants.ONE) || !ECAlgorithms.referenceMultiply(point, h).isInfinity();
}