public class SM2KeyHexStorage
extends java.lang.Object
| 构造器和说明 |
|---|
SM2KeyHexStorage() |
| 限定符和类型 | 方法和说明 |
|---|---|
static org.bouncycastle.crypto.params.ECPrivateKeyParameters |
hexToPrivateKey(java.lang.String hexPrivateKey)
私钥反序列化(十六进制字符串 → ECPrivateKeyParameters)
|
static org.bouncycastle.crypto.params.ECPublicKeyParameters |
hexToPublicKey(java.lang.String hexPublicKey)
公钥反序列化(十六进制字符串 → ECPublicKeyParameters)
|
static java.lang.String |
privateKeyToHex(org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey)
私钥序列化(BigInteger → 十六进制字符串)
|
static java.lang.String |
publicKeyToHex(org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey)
公钥序列化(ECPoint → 十六进制字符串)
|
public static java.lang.String privateKeyToHex(org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey)
public static java.lang.String publicKeyToHex(org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey)
public static org.bouncycastle.crypto.params.ECPrivateKeyParameters hexToPrivateKey(java.lang.String hexPrivateKey)
public static org.bouncycastle.crypto.params.ECPublicKeyParameters hexToPublicKey(java.lang.String hexPublicKey)