Index: net/quic/crypto/chacha20_poly1305_encrypter_nss.cc |
diff --git a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc |
index 40cd896840c0ae269eadba2bd1f218ddbae8ccba..770088cb1deb374da0f525c896c66c9cffcf0577 100644 |
--- a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc |
+++ b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc |
@@ -48,9 +48,9 @@ void ChaCha20Poly1305Encrypter::FillAeadParams(StringPiece nonce, |
ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter() |
: AeadBaseEncrypter(CKM_NSS_CHACHA20_POLY1305, PK11_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"); |
} |
ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {} |