Package org.xipki.security.util
Class GMUtil
- java.lang.Object
-
- org.xipki.security.util.GMUtil
-
public class GMUtil extends Object
Chinese GM/SM Util class.- Author:
- Lijun Liao (xipki)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]getDefaultIDA()static byte[]getSM2Z(byte[] userID, org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, BigInteger pubPointX, BigInteger pubPointY)static byte[]getSM2Z(org.bouncycastle.asn1.ASN1ObjectIdentifier curveOid, BigInteger pubPointX, BigInteger pubPointY)static booleanisSm2primev2Curve(EllipticCurve curve)static booleanisSm2primev2Curve(org.bouncycastle.math.ec.ECCurve curve)
-
-
-
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)
-
-