Skip to content

Commit 1c34996

Browse files
committed
Merge branch 'main' of gitlab.cryptoworkshop.com:root/bc-java
2 parents 3b77ea5 + ee8ea02 commit 1c34996

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs/releasenotes.html

+9-6
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,20 @@ <h2>2.0 Release History</h2>
2121
<a id="r1rv78"><h3>2.1.1 Version</h3></a>
2222
Release: 1.78<br/>
2323
Date:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TBD
24-
<h3>2.1.3 Notes.</h3>
25-
<ul>
26-
<li>An implementation of MLS (RFC 9420 - The Messaging Layer Security Protocol) has been added as a new module.</li>
27-
</ul>
2824
<h3>2.1.2 Defects Fixed</h3>
2925
<ul>
3026
<li>Issues with a dangling weak reference causing intermittent NullPointerExceptions in the OcspCache have been fixed.</li>
3127
</ul>
32-
<h3>2.1.2 Notes.</h3>
28+
<h3>2.1.3 Additional Features and Functionality</h3>
29+
<ul>
30+
<li>An implementation of MLS (RFC 9420 - The Messaging Layer Security Protocol) has been added as a new module.</li>
31+
</ul>
32+
<h3>2.1.4 Notes.</h3>
3333
<ul>
3434
<li>Both versions of NTRUPrime have been updated to produce 256 bit secrets in line with Kyber. This should also bring them into line with other implementations such as those used in OpenSSH now.</li>
35+
<li>BCJSSE: The boolean system property 'org.bouncycastle.jsse.fips.allowRSAKeyExchange" now defaults to false. All RSA
36+
key exchange cipher suites will therefore be disabled when the BCJSSE provider is used in FIPS mode, unless this system
37+
property is explicitly set to true.</li>
3538
</ul>
3639

3740
<a id="r1rv77"><h3>2.2.1 Version</h3></a>
@@ -65,7 +68,7 @@ <h3>2.2.3 Additional Features and Functionality</h3>
6568
<li>TLS: RSA key exchange cipher suites are now disabled by default.</li>
6669
<li>Support has been added for PKCS#10 requests to allow certificates using the altSignature/altPublicKey extensions.</li>
6770
</ul>
68-
<h3>2.2.3 Notes.</h3>
71+
<h3>2.2.4 Notes.</h3>
6972
<ul>
7073
<li>Kyber and Dilithium have been updated according to the latest draft of the standard. Dilithium-AES and Kyber-AES have now been removed. Kyber now produces 256 bit secrets for all parameter sets (in line with the draft standard).</li>
7174
<li>NTRU has been updated to produce 256 bit secrets in line with Kyber.</li>

tls/src/main/java/org/bouncycastle/tls/crypto/impl/bc/BcDefaultTlsCredentialedDecryptor.java

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
66
import org.bouncycastle.crypto.params.RSAKeyParameters;
7-
import org.bouncycastle.crypto.tls.TlsRsaKeyExchange;
87
import org.bouncycastle.tls.Certificate;
98
import org.bouncycastle.tls.ProtocolVersion;
109
import org.bouncycastle.tls.TlsCredentialedDecryptor;
@@ -79,9 +78,9 @@ protected TlsSecret safeDecryptPreMasterSecret(TlsCryptoParameters cryptoParams,
7978
{
8079
ProtocolVersion expectedVersion = cryptoParams.getRSAPreMasterSecretVersion();
8180

82-
byte[] M = TlsRsaKeyExchange.decryptPreMasterSecret(encryptedPreMasterSecret, rsaServerPrivateKey,
83-
expectedVersion.getFullVersion(), crypto.getSecureRandom());
81+
byte[] preMasterSecret = org.bouncycastle.crypto.tls.TlsRsaKeyExchange.decryptPreMasterSecret(
82+
encryptedPreMasterSecret, rsaServerPrivateKey, expectedVersion.getFullVersion(), crypto.getSecureRandom());
8483

85-
return crypto.createSecret(M);
84+
return crypto.createSecret(preMasterSecret);
8685
}
8786
}

0 commit comments

Comments
 (0)