| 程序包 | 说明 |
|---|---|
| net.lamgc.utils.encrypt |
| 限定符和类型 | 方法和说明 |
|---|---|
static DiffieHellmanEncrypt.Algorithm |
DiffieHellmanEncrypt.Algorithm.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DiffieHellmanEncrypt.Algorithm[] |
DiffieHellmanEncrypt.Algorithm.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 限定符和类型 | 方法和说明 |
|---|---|
SecretKey |
DiffieHellmanEncrypt.getSecretKey(byte[] publicKey,
DiffieHellmanEncrypt.Algorithm algorithm)
获得DH公共密钥
|
SecretKey |
DiffieHellmanEncrypt.getSecretKey(PublicKey publicKey,
DiffieHellmanEncrypt.Algorithm algorithm)
引入对方公钥, 构造指定算法的密钥
|
Copyright © 2020. All rights reserved.