final class SSLBasicKeyDerivation extends Object implements SSLKeyDerivation
| 限定符和类型 | 类和说明 |
|---|---|
(专用程序包) static class |
SSLBasicKeyDerivation.SecretSizeSpec |
| 构造器和说明 |
|---|
SSLBasicKeyDerivation(SecretKey secret,
String hashAlg,
byte[] label,
byte[] context,
int length) |
| 限定符和类型 | 方法和说明 |
|---|---|
private static byte[] |
createHkdfInfo(byte[] label,
byte[] context,
int length) |
SecretKey |
deriveKey(String algorithm,
AlgorithmParameterSpec keySpec) |
private final String hashAlg
private final SecretKey secret
private final byte[] hkdfInfo
public SecretKey deriveKey(String algorithm, AlgorithmParameterSpec keySpec) throws IOException
deriveKey 在接口中 SSLKeyDerivationIOExceptionprivate static byte[] createHkdfInfo(byte[] label,
byte[] context,
int length)
Copyright © 2023. All rights reserved.