Class ECCurve.Fp

  • Enclosing class:
    ECCurve

    public static class ECCurve.Fp
    extends ECCurve
    Elliptic curve over Fp
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) ECPoint.Fp infinity  
      (package private) java.math.BigInteger q  
      • Fields inherited from class org.gudy.bouncycastle.math.ec.ECCurve

        a, b
    • Constructor Summary

      Constructors 
      Constructor Description
      Fp​(java.math.BigInteger q, java.math.BigInteger a, java.math.BigInteger b)  
    • Field Detail

      • q

        java.math.BigInteger q
    • Constructor Detail

      • Fp

        public Fp​(java.math.BigInteger q,
                  java.math.BigInteger a,
                  java.math.BigInteger b)
    • Method Detail

      • getQ

        public java.math.BigInteger getQ()
      • createPoint

        public ECPoint createPoint​(java.math.BigInteger x,
                                   java.math.BigInteger y,
                                   boolean withCompression)
        Specified by:
        createPoint in class ECCurve
      • decodePoint

        public ECPoint decodePoint​(byte[] encoded)
        Decode a point on this curve from its ASN.1 encoding. The different encodings are taken account of, including point compression for Fp (X9.62 s 4.2.1 pg 17).
        Specified by:
        decodePoint in class ECCurve
        Returns:
        The decoded point.
      • equals

        public boolean equals​(java.lang.Object anObject)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object