Module java.base

Class SM2ParameterSpec

    • Field Detail

      • CURVE

        public static final EllipticCurve CURVE
        The SM2 elliptic curve.
      • GENERATOR

        public static final ECPoint GENERATOR
        The generator or base point.
      • ORDER

        public static final BigInteger ORDER
        The order of the generator.
      • COFACTOR

        public static final BigInteger COFACTOR
        The cofactor.
    • Method Detail

      • instance

        public static SM2ParameterSpec instance()
        Returns the instance of SM2ParameterSpec.
        Returns:
        the instance of SM2ParameterSpec
      • isCurveSM2

        public static boolean isCurveSM2​(byte[] encodedOid)
        Indicates if the encoded OID is SM2 elliptic curve.
        Parameters:
        encodedOid - the encoded OID.
        Returns:
        true if the encoded OID is SM2 elliptic curve; otherwise false.
      • isCurveSM2

        public static boolean isCurveSM2​(String oid)
        Indicates if the OID is SM2 elliptic curve.
        Parameters:
        oid - the encoded OID.
        Returns:
        true if the OID is SM2 elliptic curve; otherwise false.