RFR: 8341964: Add mechanism to disable different parts of TLS cipher suite [v8]
Sean Mullan
mullan at openjdk.org
Fri Nov 8 22:02:30 UTC 2024
On Fri, 8 Nov 2024 21:29:21 GMT, Artur Barashev <abarashev at openjdk.org> wrote:
>> The current syntax of the jdk.tls.disabledAlgorithms makes it difficult to disable algorithms that affect both the key exchange and authentication parts of a TLS cipher suite. For example, if you add "RSA" to the jdk.tls.disabledAlgorithms security property, it disables all cipher suites that use RSA, whether it is for key exchange or authentication. If you only want to disable cipher suites that use RSA for key exchange, the only workaround is to list the whole cipher suite name, so an exact match is done, but if there are many cipher suites that use that key exchange algorithm, this becomes cumbersome.
>
> Artur Barashev has updated the pull request incrementally with one additional commit since the last revision:
>
> Add new test pattern
src/java.base/share/classes/sun/security/util/AbstractAlgorithmConstraints.java line 48:
> 46: protected final AlgorithmDecomposer decomposer;
> 47: private static final Map<String, Pattern> patternCache =
> 48: new ConcurrentHashMap<>();
I don't know if this would matter much, but you could probably specify a smaller initial size here, like 4 or 8.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21841#discussion_r1835089035
More information about the security-dev
mailing list