static final class HandshakeHash.S30HandshakeHash extends Object implements HandshakeHash.TranscriptHash
| 限定符和类型 | 字段和说明 |
|---|---|
private ByteArrayOutputStream |
baos |
private HandshakeHash.TranscriptHash |
md5 |
(专用程序包) static byte[] |
MD5_pad1 |
(专用程序包) static byte[] |
MD5_pad2 |
private MessageDigest |
mdMD5 |
private MessageDigest |
mdSHA |
private HandshakeHash.TranscriptHash |
sha |
(专用程序包) static byte[] |
SHA_pad1 |
(专用程序包) static byte[] |
SHA_pad2 |
private static byte[] |
SSL_CLIENT |
private static byte[] |
SSL_SERVER |
| 构造器和说明 |
|---|
S30HandshakeHash(CipherSuite cipherSuite) |
| 限定符和类型 | 方法和说明 |
|---|---|
byte[] |
archived() |
private MessageDigest |
cloneMd5() |
private MessageDigest |
cloneSha() |
byte[] |
digest() |
(专用程序包) byte[] |
digest(boolean useClientLabel,
SecretKey masterSecret) |
(专用程序包) byte[] |
digest(String algorithm,
SecretKey masterSecret) |
private static void |
digestKey(MessageDigest md,
SecretKey key) |
private static byte[] |
genPad(int b,
int count) |
void |
update(byte[] input,
int offset,
int length) |
private static void |
updateDigest(MessageDigest md,
byte[] pad1,
byte[] pad2,
SecretKey masterSecret) |
static final byte[] MD5_pad1
static final byte[] MD5_pad2
static final byte[] SHA_pad1
static final byte[] SHA_pad2
private static final byte[] SSL_CLIENT
private static final byte[] SSL_SERVER
private final MessageDigest mdMD5
private final MessageDigest mdSHA
private final HandshakeHash.TranscriptHash md5
private final HandshakeHash.TranscriptHash sha
private final ByteArrayOutputStream baos
S30HandshakeHash(CipherSuite cipherSuite)
public void update(byte[] input,
int offset,
int length)
update 在接口中 HandshakeHash.TranscriptHashpublic byte[] digest()
digest 在接口中 HandshakeHash.TranscriptHashpublic byte[] archived()
archived 在接口中 HandshakeHash.TranscriptHashbyte[] digest(boolean useClientLabel,
SecretKey masterSecret)
private static byte[] genPad(int b,
int count)
private MessageDigest cloneMd5()
private MessageDigest cloneSha()
private static void updateDigest(MessageDigest md, byte[] pad1, byte[] pad2, SecretKey masterSecret)
private static void digestKey(MessageDigest md, SecretKey key)
Copyright © 2023. All rights reserved.