Class GMUtil


  • public class GMUtil
    extends Object
    Chinese GM/SM Util class.
    Author:
    Lijun Liao (xipki)
    • Method Detail

      • getSM2Z

        public static byte[] getSM2Z​(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid,
                                     BigInteger pubPointX,
                                     BigInteger pubPointY)
      • getDefaultIDA

        public static byte[] getDefaultIDA()
      • getSM2Z

        public static byte[] getSM2Z​(byte[] userID,
                                     org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid,
                                     BigInteger pubPointX,
                                     BigInteger pubPointY)
      • isSm2primev2Curve

        public static boolean isSm2primev2Curve​(EllipticCurve curve)
      • isSm2primev2Curve

        public static boolean isSm2primev2Curve​(org.bouncycastle.math.ec.ECCurve curve)