跳过导航链接
com.webank.keysign.utils

类 SM2Util

    • 字段概要

      字段 
      限定符和类型 字段和说明
      static org.bouncycastle.math.ec.ECCurve curve 
    • 方法概要

      所有方法 静态方法 具体方法 
      限定符和类型 方法和说明
      static byte[] decrypt(byte[] encryptData, java.math.BigInteger privateKey) 
      static byte[] encrypt(java.lang.String input, org.bouncycastle.math.ec.ECPoint publicKey)
      加密
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • curve

        public static final org.bouncycastle.math.ec.ECCurve curve
    • 方法详细资料

      • encrypt

        public static byte[] encrypt(java.lang.String input,
                                     org.bouncycastle.math.ec.ECPoint publicKey)
        加密
        参数:
        input - 待加密消息M
        publicKey - 公钥
        返回:
        byte[] 加密后的字节数组
      • decrypt

        public static byte[] decrypt(byte[] encryptData,
                                     java.math.BigInteger privateKey)