public class ECIES extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Object[] |
curveParaSpec |
static org.bouncycastle.crypto.Digest |
defaultDigest |
static KeyType |
keyType |
static SignatureScheme |
signatureScheme |
| 构造器和说明 |
|---|
ECIES(org.bouncycastle.crypto.Digest dig) |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
Decrypt(Account account,
String[] params) |
static byte[] |
Decrypt(byte[] prikey,
byte[] IV,
byte[] key_cxt,
byte[] ciphertext) |
static byte[] |
Decrypt(byte[] prikey,
byte[] IV,
byte[] key_cxt,
byte[] ciphertext,
int keylen) |
static byte[] |
Decrypt(String prikey,
String[] params) |
static String[] |
Encrypt(String pubkey,
byte[] msg) |
static String[] |
Encrypt(String pubkey,
byte[] msg,
int keylen) |
static String |
getRandomString(int length) |
static void |
setDigest(org.bouncycastle.crypto.Digest dig) |
public static KeyType keyType
public static Object[] curveParaSpec
public static SignatureScheme signatureScheme
public static org.bouncycastle.crypto.Digest defaultDigest
public static void setDigest(org.bouncycastle.crypto.Digest dig)
public static String[] Encrypt(String pubkey, byte[] msg, int keylen) throws Exception
Exceptionpublic static byte[] Decrypt(Account account, String[] params) throws Exception
Exceptionpublic static byte[] Decrypt(byte[] prikey,
byte[] IV,
byte[] key_cxt,
byte[] ciphertext)
throws Exception
Exceptionpublic static byte[] Decrypt(byte[] prikey,
byte[] IV,
byte[] key_cxt,
byte[] ciphertext,
int keylen)
throws Exception
Exceptionpublic static String getRandomString(int length)
Copyright © 2021. All rights reserved.