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

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

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
Index: net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc
diff --git a/net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc b/net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc
index 6489528fd3746276cfa45f1871309d957b8c895a..b87d0fc4245c743c459674ab0c7263c43771bd32 100644
--- a/net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc
+++ b/net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc
@@ -18,9 +18,9 @@ const size_t kNoncePrefixSize = 4;
Aes128Gcm12Encrypter::Aes128Gcm12Encrypter()
: AeadBaseEncrypter(EVP_aead_aes_128_gcm(), kKeySize, kAuthTagSize,
kNoncePrefixSize) {
- COMPILE_ASSERT(kKeySize <= kMaxKeySize, key_size_too_big);
- COMPILE_ASSERT(kNoncePrefixSize <= kMaxNoncePrefixSize,
- nonce_prefix_size_too_big);
+ static_assert(kKeySize <= kMaxKeySize, "key size too big");
+ static_assert(kNoncePrefixSize <= kMaxNoncePrefixSize,
+ "nonce prefix size too big");
}
Aes128Gcm12Encrypter::~Aes128Gcm12Encrypter() {}

Powered by Google App Engine
This is Rietveld 408576698