Class CryptoEllipticCurveBc


  • public abstract class CryptoEllipticCurveBc
    extends Object
    Configuration for a specific elliptic curve based on bouncy castles ECParameterSpec.
    Since:
    1.0.0
    • Method Detail

      • getCurveName

        public String getCurveName()
        Returns:
        the curve name.
      • getEcParameters

        public org.bouncycastle.jce.spec.ECParameterSpec getEcParameters()
        Returns:
        the ECParameterSpec.
      • getQ

        public BigInteger getQ()
        Returns:
        the Q value of the curve.
      • determineCurveQ

        protected abstract BigInteger determineCurveQ()
        Returns:
        the Q value.
      • getHalfN

        public BigInteger getHalfN()
        Returns:
        halfN
      • getBitLength

        public int getBitLength()
        Returns:
        the length of the curve order and keys in bits.
      • getByteLength

        public int getByteLength()
        Returns:
        the length of the curve order and keys in bytes.
      • getByteLength

        public static int getByteLength​(org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
        Parameters:
        ecParameters - the ECParameterSpec.
        Returns:
        the length of the curve order in bytes. This is also the length of the (compressed) keys except for a potential extra byte.