mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8148421: Transport Layer Security (TLS) Session Hash and Extended Master Secret Extension
Co-authored-by: Martin Balao <mbalao@redhat.com> Reviewed-by: jnimeh, ahgross, rhalade, wetmore
This commit is contained in:
parent
f29e21abb1
commit
82bf0799c6
15 changed files with 448 additions and 64 deletions
|
@ -389,6 +389,10 @@ static final class ClientHello extends HandshakeMessage {
|
|||
extensions.add(signatureAlgorithm);
|
||||
}
|
||||
|
||||
void addExtendedMasterSecretExtension() {
|
||||
extensions.add(new ExtendedMasterSecretExtension());
|
||||
}
|
||||
|
||||
void addMFLExtension(int maximumPacketSize) {
|
||||
HelloExtension maxFragmentLength =
|
||||
new MaxFragmentLengthExtension(maximumPacketSize);
|
||||
|
@ -1441,7 +1445,7 @@ class ECDH_ServerKeyExchange extends ServerKeyExchange {
|
|||
} else {
|
||||
sig = getSignature(privateKey.getAlgorithm());
|
||||
}
|
||||
sig.initSign(privateKey); // where is the SecureRandom?
|
||||
sig.initSign(privateKey, sr);
|
||||
|
||||
updateSignature(sig, clntNonce, svrNonce);
|
||||
signatureBytes = sig.sign();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue