Class Sm2Util.Sm2KeyPair

java.lang.Object
com.sure.tool.crypto.Sm2Util.Sm2KeyPair
Enclosing class:
Sm2Util

public static final class Sm2Util.Sm2KeyPair extends Object
SM2 密钥对(私钥 d 与公钥点 P = dG)。
Since:
1.0.1
Author:
suretool
  • Method Details

    • getPrivateKey

      public BigInteger getPrivateKey()
      Returns:
      私钥 d(1..n-1)
    • getPublicX

      public BigInteger getPublicX()
      Returns:
      公钥 x 坐标
    • getPublicY

      public BigInteger getPublicY()
      Returns:
      公钥 y 坐标
    • getPublicKeyBytes

      public byte[] getPublicKeyBytes()
      Returns:
      未压缩公钥编码(04 || x || y,共 65 字节)