Index: net/quic/crypto/chacha20_poly1305_decrypter_nss.cc |
diff --git a/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc b/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc |
index fbeaaeb9a2973d1fe8ba50b456bd1cdc1bcf3449..0d8eff0e7374d81ff8ea2f22dca7c39e2175bdde 100644 |
--- a/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc |
+++ b/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc |
@@ -48,9 +48,9 @@ void ChaCha20Poly1305Decrypter::FillAeadParams(StringPiece nonce, |
ChaCha20Poly1305Decrypter::ChaCha20Poly1305Decrypter() |
: AeadBaseDecrypter(CKM_NSS_CHACHA20_POLY1305, PK11_Decrypt, 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"); |
} |
ChaCha20Poly1305Decrypter::~ChaCha20Poly1305Decrypter() {} |