Skip to content

Commit 8291d46

Browse files
committed
Make the order of supported cipher suites compatible with other providers like aws and ring as the order affects the success of some rustls tests
1 parent afb2ffd commit 8291d46

File tree

1 file changed

+6
-6
lines changed
  • rustls-wolfcrypt-provider/src

1 file changed

+6
-6
lines changed

rustls-wolfcrypt-provider/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ impl rustls::crypto::KeyProvider for Provider {
115115
}
116116

117117
static ALL_CIPHER_SUITES: &[rustls::SupportedCipherSuite] = &[
118-
TLS13_CHACHA20_POLY1305_SHA256,
119-
TLS13_AES_128_GCM_SHA256,
120118
TLS13_AES_256_GCM_SHA384,
121-
TLS12_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
122-
TLS12_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
119+
TLS13_AES_128_GCM_SHA256,
120+
TLS13_CHACHA20_POLY1305_SHA256,
123121
TLS12_ECDHE_RSA_WITH_AES_256_GCM_SHA384,
124-
TLS12_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
125-
TLS12_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
122+
TLS12_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
123+
TLS12_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256,
126124
TLS12_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,
125+
TLS12_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
126+
TLS12_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256,
127127
];
128128

129129
static ALL_RSA_SCHEMES: &[rustls::SignatureScheme] = &[

0 commit comments

Comments
 (0)