| 程序包 | 说明 |
|---|---|
| com.alipay.mychain.zoro.crypto | |
| com.alipay.mychain.zoro.crypto.cryptoservice | |
| com.alipay.mychain.zoro.crypto.keymanagement | |
| com.alipay.mychain.zoro.envelop |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
BulletProof.addBlindFactors(ArrayList<byte[]> posBlindList,
ArrayList<byte[]> negBlindList) |
static byte[] |
BulletProof.addCommits(ArrayList<byte[]> posCommits,
ArrayList<byte[]> negCommits) |
static byte[] |
AlgorithmService.aes256GCM(int opmode,
byte[] key,
byte[] iv,
byte[] input) |
static boolean |
AlgorithmService.ecdsaVerify(ECPublicKey pubkey,
byte[] message,
byte[] sigval) |
static byte[] |
AlgorithmService.genAES256SecretKey() |
static byte[] |
BulletProof.generateBlindFactor() |
static byte[] |
BulletProof.generateCommit(byte[] blind,
long value) |
static byte[] |
BulletProof.generateProof(ArrayList<byte[]> blindlist,
long[] values) |
static byte[] |
BulletProof.generateProof(byte[] blind,
long value) |
static void |
AlgorithmService.initJceSecurityPolicy() |
static boolean |
BulletProof.isCommitsSumZero(ArrayList<byte[]> posCommits,
ArrayList<byte[]> negCommits) |
static byte[] |
AlgorithmService.rsa2048Encrypt(RSAPublicKey pubkey,
byte[] message) |
static boolean |
BulletProof.verifyCommit(byte[] commit,
byte[] blind,
long value) |
static boolean |
BulletProof.verifyProof(byte[] proof,
ArrayList<byte[]> commitlist) |
static boolean |
BulletProof.verifyProof(byte[] proof,
byte[] commit) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
CryptoService.ecdsaSign(byte[] keyname,
byte[] password,
byte[] message) |
byte[] |
CryptoServiceSpi.ecdsaSign(byte[] keyname,
byte[] password,
byte[] message)
签名操作 ECDSA.
|
byte[] |
CryptoServiceDefault.ecdsaSign(byte[] keyname,
byte[] password,
byte[] message) |
abstract byte[] |
AbstractCryptoService.ecdsaSign(byte[] keyname,
byte[] password,
byte[] message)
签名操作 ECDSA secp256r1.
|
byte[] |
CryptoService.rsa2048Decrypt(byte[] keyname,
byte[] password,
byte[] ciphertext) |
byte[] |
CryptoServiceSpi.rsa2048Decrypt(byte[] keyname,
byte[] password,
byte[] ciphertext)
私钥解密操作 RSA 2048.
|
byte[] |
CryptoServiceDefault.rsa2048Decrypt(byte[] keyname,
byte[] password,
byte[] ciphertext) |
abstract byte[] |
AbstractCryptoService.rsa2048Decrypt(byte[] keyname,
byte[] password,
byte[] ciphertext)
私钥解密操作 RSA 2048.
|
static void |
CryptoContext.setCryptoServiceSpi(CryptoServiceSpi sp) |
static void |
CryptoContext.setKeyManagementSpi(KeyManagementSpi sp) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
KeyManagement.checkECParameter(ECParameterSpec ecParameterSpec) |
ECPrivateKey |
KeyManagementRaw.getEcdsaPrivateKey(byte[] keyname,
byte[] password) |
abstract ECPrivateKey |
AbstractKeyManagement.getEcdsaPrivateKey(byte[] keyname,
byte[] password)
根据keyname和password从密管模块提取ECDSA私钥
|
static ECPrivateKey |
KeyManagement.getEcdsaPrivateKey(byte[] keyname,
byte[] password) |
ECPrivateKey |
KeyManagementSpi.getEcdsaPrivateKey(byte[] keyname,
byte[] password)
根据keyname和password从密管模块提取ECDSA私
|
static ECPublicKey |
KeyManagement.getEcdsaPublicKey(byte[] pubkeyX,
byte[] pubkeyY) |
static ECParameterSpec |
KeyManagement.getECParameter() |
RSAPrivateKey |
KeyManagementRaw.getRsaPrivateKey(byte[] keyname,
byte[] password) |
abstract RSAPrivateKey |
AbstractKeyManagement.getRsaPrivateKey(byte[] keyname,
byte[] password)
根据keyname和password从密管模块提取RSA私钥
|
static RSAPrivateKey |
KeyManagement.getRsaPrivateKey(byte[] keyname,
byte[] password) |
RSAPrivateKey |
KeyManagementSpi.getRsaPrivateKey(byte[] keyname,
byte[] password)
根据keyname和password从密管模块提取RSA私钥
|
static RSAPublicKey |
KeyManagement.getRsaPublicKey(byte[] modulus,
byte[] publicExponent) |
| 限定符和类型 | 方法和说明 |
|---|---|
static AbstractMap.SimpleEntry<Vector<byte[]>,Map<RSAPublicKey,byte[]>> |
EnvelopeEnc.encrypt(Vector<byte[]> msg,
Vector<RSAPublicKey> pubkeys) |
Copyright © 2022. All rights reserved.