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()); |
} |