final class SSLSecretDerivation extends Object implements SSLKeyDerivation
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
SSLSecretDerivation.SecretSchedule |
| 限定符和类型 | 字段和说明 |
|---|---|
private HandshakeContext |
context |
private CipherSuite.HashAlg |
hashAlg |
private String |
hkdfAlg |
private SecretKey |
secret |
private static byte[] |
sha256EmptyDigest |
private static byte[] |
sha384EmptyDigest |
private byte[] |
transcriptHash |
| 构造器和说明 |
|---|
SSLSecretDerivation(HandshakeContext context,
SecretKey secret) |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
createHkdfInfo(byte[] label,
byte[] context,
int length) |
SecretKey |
deriveKey(String algorithm,
AlgorithmParameterSpec params) |
(专用程序包) SSLSecretDerivation |
forContext(HandshakeContext context) |
private static final byte[] sha256EmptyDigest
private static final byte[] sha384EmptyDigest
private final HandshakeContext context
private final String hkdfAlg
private final CipherSuite.HashAlg hashAlg
private final SecretKey secret
private final byte[] transcriptHash
SSLSecretDerivation(HandshakeContext context, SecretKey secret)
SSLSecretDerivation forContext(HandshakeContext context)
public SecretKey deriveKey(String algorithm, AlgorithmParameterSpec params) throws IOException
deriveKey 在接口中 SSLKeyDerivationIOExceptionpublic static byte[] createHkdfInfo(byte[] label,
byte[] context,
int length)
Copyright © 2023. All rights reserved.