java.lang.Object
net.i2p.crypto.ECConstants.ECParms
Enclosing class:
ECConstants

private static class ECConstants.ECParmsextends Object
The parameters of one elliptic curve.
  • Field Details

    • ps

      public final String ps
      Prime modulus p.
    • ns

      public final String ns
      Order n.
    • ss

      public final String ss
      Seed for the SHA-1 based generation algorithm.
    • bs

      public final String bs
      Coefficient b.
    • gxs

      public final String gxs
      Base point x coordinate (Gx).
    • gys

      public final String gys
      Base point y coordinate (Gy).
    • A

      private static final BigInteger A
      The A coefficient of the curve, minus three.
    • H

      private static final int H
      The cofactor of the curve, one.
      See Also:
  • Constructor Details

    • ECParms

      public ECParms(String pss, String nss, String sss, String bss, String gxss, String gyss)
      P and N in decimal, no spaces; Seed, B, Gx, Gy in hex, spaces allowed.
      Parameters:
      pss - prime p, decimal
      nss - order n of the base point, decimal
      sss - curve seed, hex
      bss - curve parameter b, hex
      gxss - x coordinate of the base point, hex
      gyss - y coordinate of the base point, hex
  • Method Details

    • genSpec

      public ECParameterSpec genSpec()
      Generate the EC parameter spec.
      Returns:
      the EC parameter spec