Class Sm2Util.Sm2KeyPair
java.lang.Object
com.sure.tool.crypto.Sm2Util.Sm2KeyPair
- Enclosing class:
Sm2Util
SM2 密钥对(私钥 d 与公钥点 P = dG)。
- Since:
- 1.0.1
- Author:
- suretool
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
-
Method Details
-
getPrivateKey
- Returns:
- 私钥 d(1..n-1)
-
getPublicX
- Returns:
- 公钥 x 坐标
-
getPublicY
- Returns:
- 公钥 y 坐标
-
getPublicKeyBytes
public byte[] getPublicKeyBytes()- Returns:
- 未压缩公钥编码(04 || x || y,共 65 字节)
-