net.i2p.crypto

## Class ECUtil

- java.lang.Object
- - net.i2p.crypto.ECUtil

-     final class ECUtil
      extends Object

  Elliptic curve utility functions for cryptographic operations. This class provides essential mathematical operations for elliptic curve cryptography used throughout I2P, including scalar multiplication, point operations, and curve parameter handling. It supports multiple curve types with optimized implementations for common cryptographic operations.

  Key operations include:

  - Scalar multiplication of curve points
  - Point addition and doubling operations
  - Curve parameter validation and extraction
  - Support for standard NIST curves (P-192, P-256, P-384, P-521)

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ECUtil()`

  - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static ECPoint` | `scalarMult(ECPoint p, BigInteger kin, EllipticCurve curve)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ECUtil

          ECUtil()

  - ### Method Detail

    - #### scalarMult

          public static ECPoint scalarMult(ECPoint p,
                                           BigInteger kin,
                                           EllipticCurve curve)