public class SM2KeyPair extends CryptoKeyPair
| 限定符和类型 | 字段和说明 |
|---|---|
static Hash |
DefaultHashAlgorithm |
ADDRESS_LENGTH_IN_HEX, ADDRESS_SIZE, config, curveName, ECDSA_ACCOUNT_SUBDIR, ECDSA_CURVE_NAME, ECDSA_SIGNATURE_ALGORITHM, GM_ACCOUNT_SUBDIR, hashImpl, hexPrivateKey, hexPublicKey, jniKeyPair, keyPair, keyStoreSubDir, P12_FILE_POSTFIX, p12KeyStoreFilePath, PEM_FILE_POSTFIX, pemKeyStoreFilePath, PRIVATE_KEY_SIZE, PRIVATE_KEY_SIZE_IN_HEX, PUBLIC_KEY_LENGTH_IN_HEX, PUBLIC_KEY_SIZE, signatureAlgorithm, SM_SIGNATURE_ALGORITHM, SM2_CURVE_NAME, UNCOMPRESSED_PUBLICKEY_FLAG_STR| 限定符 | 构造器和说明 |
|---|---|
|
SM2KeyPair() |
protected |
SM2KeyPair(com.webank.wedpr.crypto.CryptoResult sm2keyPairInfo) |
|
SM2KeyPair(java.security.KeyPair javaKeyPair) |
| 限定符和类型 | 方法和说明 |
|---|---|
static CryptoKeyPair |
createKeyPair() |
CryptoKeyPair |
createKeyPair(java.security.KeyPair javaKeyPair)
Abstract function of create keyPair randomly
|
CryptoKeyPair |
generateKeyPair()
generate keyPair randomly
|
static byte[] |
getAddressByPublicKey(java.math.BigInteger publicKey) |
static byte[] |
getAddressByPublicKey(byte[] publicKey) |
static java.lang.String |
getAddressByPublicKey(java.lang.String publicKey) |
createKeyPair, createKeyPair, destroy, finalize, getAddress, getAddress, getAddress, getAddress, getAddress, getCurveName, getHexPrivateKey, getHexPublicKey, getJniKeyPair, getKeyPair, getKeyStoreFilePath, getKeyStoreSubDir, getKeyType, getP12KeyStoreFilePath, getP12KeyStoreFilePath, getPemKeyStoreFilePath, getPemKeyStoreFilePath, getPublicKeyNoPrefix, releaseJni, setConfig, storeKeyPairWithP12, storeKeyPairWithP12Format, storeKeyPairWithPem, storeKeyPairWithPemFormatpublic static Hash DefaultHashAlgorithm
public SM2KeyPair()
public SM2KeyPair(java.security.KeyPair javaKeyPair)
protected SM2KeyPair(com.webank.wedpr.crypto.CryptoResult sm2keyPairInfo)
public static CryptoKeyPair createKeyPair()
public CryptoKeyPair generateKeyPair()
generateKeyPair 在类中 CryptoKeyPairpublic CryptoKeyPair createKeyPair(java.security.KeyPair javaKeyPair)
CryptoKeyPaircreateKeyPair 在类中 CryptoKeyPairjavaKeyPair - KeyPair type key pairpublic static java.lang.String getAddressByPublicKey(java.lang.String publicKey)
public static byte[] getAddressByPublicKey(byte[] publicKey)
public static byte[] getAddressByPublicKey(java.math.BigInteger publicKey)