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

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

Issue 826973002: replace COMPILE_ASSERT with static_assert in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply fixups 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_nss.cc
diff --git a/net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc b/net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc
index 6214af540f2740b32f5bcb872acf328a243b21b9..5ca33bf1d9739954d00bf29660ff4a8e16d3473d 100644
--- a/net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc
+++ b/net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc
@@ -209,9 +209,9 @@ SECStatus My_Encrypt(PK11SymKey* key,
Aes128Gcm12Encrypter::Aes128Gcm12Encrypter()
: AeadBaseEncrypter(CKM_AES_GCM, My_Encrypt, 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");
ignore_result(g_gcm_support_checker.Get());
}
« no previous file with comments | « net/quic/crypto/aes_128_gcm_12_decrypter_openssl.cc ('k') | net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698