Example usage for org.bouncycastle.math.ec ECConstants ONE

List of usage examples for org.bouncycastle.math.ec ECConstants ONE

Introduction

In this page you can find the example usage for org.bouncycastle.math.ec ECConstants ONE.

Prototype

BigInteger ONE

To view the source code for org.bouncycastle.math.ec ECConstants ONE.

Click Source Link

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();
}