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

Unified Diff: net/quic/core/crypto/crypto_secret_boxer.cc

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Exclude certain files from jumbo because of a Windows problem Created 3 years, 3 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/core/crypto/aead_base_encrypter.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/crypto/crypto_secret_boxer.cc
diff --git a/net/quic/core/crypto/crypto_secret_boxer.cc b/net/quic/core/crypto/crypto_secret_boxer.cc
index 65691d25b79c7e156f8dc31c8749c1d9eb8b5614..6e75cb031709b2745fd93e95d68e8b4b99522c64 100644
--- a/net/quic/core/crypto/crypto_secret_boxer.cc
+++ b/net/quic/core/crypto/crypto_secret_boxer.cc
@@ -38,12 +38,12 @@ size_t CryptoSecretBoxer::GetKeySize() {
return kKeySize;
}
-// kAEAD is the AEAD used for boxing: AES-128-GCM-SIV.
-static const EVP_AEAD* (*const kAEAD)() = EVP_aead_aes_128_gcm_siv;
+// kAEAD_fn is the AEAD used for boxing: AES-128-GCM-SIV.
+static const EVP_AEAD* (*const kAEAD_fn)() = EVP_aead_aes_128_gcm_siv;
void CryptoSecretBoxer::SetKeys(const std::vector<string>& keys) {
DCHECK(!keys.empty());
- const EVP_AEAD* const aead = kAEAD();
+ const EVP_AEAD* const aead = kAEAD_fn();
std::unique_ptr<State> new_state(new State);
for (const string& key : keys) {
@@ -70,7 +70,7 @@ string CryptoSecretBoxer::Box(QuicRandom* rand,
// n bytes of ciphertext
// 16 bytes of authenticator
size_t out_len =
- kBoxNonceSize + plaintext.size() + EVP_AEAD_max_overhead(kAEAD());
+ kBoxNonceSize + plaintext.size() + EVP_AEAD_max_overhead(kAEAD_fn());
string ret;
uint8_t* out = reinterpret_cast<uint8_t*>(base::WriteInto(&ret, out_len + 1));
« no previous file with comments | « net/quic/core/crypto/aead_base_encrypter.cc ('k') | net/quic/core/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698