public class SharedSecret
extends java.lang.Object
| 构造器和说明 |
|---|
SharedSecret(byte[] privateKey) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
decrypt(byte[] data) |
byte[] |
encryption(byte[] data) |
static SharedSecret |
generate(java.math.BigInteger sk,
java.math.BigInteger pk) |
public static SharedSecret generate(java.math.BigInteger sk, java.math.BigInteger pk)
public byte[] encryption(byte[] data)
throws org.bouncycastle.crypto.InvalidCipherTextException
org.bouncycastle.crypto.InvalidCipherTextExceptionpublic byte[] decrypt(byte[] data)
throws org.bouncycastle.crypto.InvalidCipherTextException
org.bouncycastle.crypto.InvalidCipherTextException