Skip to content

Commit

Permalink
Remove 3DES from Conscrypt (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelaranda0 authored Dec 16, 2024
1 parent 29fc037 commit c7aed19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions common/src/main/java/org/conscrypt/NativeCrypto.java
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,8 @@ static String cipherSuiteFromJava(String javaCipherSuite) {
if (loadError == null) {
// If loadError is not null, it means the native code was not loaded, so
// get_cipher_names will throw UnsatisfiedLinkError. Populate the list of supported
// ciphers with BoringSSL's default, and also explicitly include 3DES.
// https://boringssl-review.googlesource.com/c/boringssl/+/59425 will remove 3DES
// from BoringSSL's default, but Conscrypt isn't quite ready to remove it yet.
String[] allCipherSuites = get_cipher_names("ALL:3DES");
// ciphers with BoringSSL's default.
String[] allCipherSuites = get_cipher_names("ALL");

// get_cipher_names returns an array where even indices are the standard name and odd
// indices are the OpenSSL name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ private static void addOpenSsl(String cipherSuite) {
addOpenSsl("TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA");
addOpenSsl("TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA");
addOpenSsl("TLS_RSA_WITH_AES_128_CBC_SHA");
addOpenSsl("SSL_RSA_WITH_3DES_EDE_CBC_SHA");

// TLSv1.2 cipher suites
addOpenSsl("TLS_RSA_WITH_AES_128_GCM_SHA256");
Expand Down

0 comments on commit c7aed19

Please sign in to comment.