Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Unified Diff: net/quic/crypto/quic_crypto_server_config.cc

Issue 1854273002: Remove the non-RFC 7539 variants of ChaCha20Poly1305 crypters in QUIC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.cc ('k') | net/quic/crypto/quic_crypto_server_config_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_server_config.cc
diff --git a/net/quic/crypto/quic_crypto_server_config.cc b/net/quic/crypto/quic_crypto_server_config.cc
index 68a56587e4fdb3839f47dd70ff90d57ef11f0fc0..2d0c664974df56340745abb1e045101ea47e4356 100644
--- a/net/quic/crypto/quic_crypto_server_config.cc
+++ b/net/quic/crypto/quic_crypto_server_config.cc
@@ -294,12 +294,9 @@ QuicServerConfigProtobuf* QuicCryptoServerConfig::GenerateConfig(
} else {
msg.SetTaglist(kKEXS, kC255, 0);
}
- if (FLAGS_quic_crypto_server_config_default_has_chacha20) {
- if (ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
- msg.SetTaglist(kAEAD, kAESG, kCC12, kCC20, 0);
- } else {
- msg.SetTaglist(kAEAD, kAESG, kCC12, 0);
- }
+ if (FLAGS_quic_crypto_server_config_default_has_chacha20 &&
+ ChaCha20Poly1305Rfc7539Encrypter::IsSupported()) {
+ msg.SetTaglist(kAEAD, kAESG, kCC20, 0);
} else {
msg.SetTaglist(kAEAD, kAESG, 0);
}
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.cc ('k') | net/quic/crypto/quic_crypto_server_config_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698