| Index: net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc
|
| diff --git a/net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc b/net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc
|
| index e256c2a580764ecbb270ccfe4812913b163c5289..a87aca8e360450020c98e5fb425f9bec06b48caa 100644
|
| --- a/net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc
|
| +++ b/net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc
|
| @@ -16,16 +16,21 @@ const size_t kNoncePrefixSize = 0;
|
| } // namespace
|
|
|
| ChaCha20Poly1305Encrypter::ChaCha20Poly1305Encrypter()
|
| - : AeadBaseEncrypter(EVP_aead_chacha20_poly1305(), kKeySize, kAuthTagSize,
|
| + : AeadBaseEncrypter(EVP_aead_chacha20_poly1305(),
|
| + kKeySize,
|
| + kAuthTagSize,
|
| kNoncePrefixSize) {
|
| COMPILE_ASSERT(kKeySize <= kMaxKeySize, key_size_too_big);
|
| COMPILE_ASSERT(kNoncePrefixSize <= kMaxNoncePrefixSize,
|
| nonce_prefix_size_too_big);
|
| }
|
|
|
| -ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {}
|
| +ChaCha20Poly1305Encrypter::~ChaCha20Poly1305Encrypter() {
|
| +}
|
|
|
| // static
|
| -bool ChaCha20Poly1305Encrypter::IsSupported() { return true; }
|
| +bool ChaCha20Poly1305Encrypter::IsSupported() {
|
| + return true;
|
| +}
|
|
|
| } // namespace net
|
|
|