| 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 9b0e9bfb3d8b810d9ae537fa7c092aa407b3e31c..7f99dabfc7e885bfaddb2edd6598b0777413fe6b 100644
|
| --- a/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
|
| +++ b/net/quic/crypto/chacha20_poly1305_encrypter_nss.cc
|
| @@ -35,9 +35,9 @@ void ChaCha20Poly1305Encrypter::FillAeadParams(StringPiece nonce,
|
| AeadParams* aead_params) const {
|
| aead_params->len = sizeof(aead_params->data.nss_aead_params);
|
| CK_NSS_AEAD_PARAMS* nss_aead_params = &aead_params->data.nss_aead_params;
|
| - nss_aead_params->pIv =
|
| + nss_aead_params->pNonce =
|
| reinterpret_cast<CK_BYTE*>(const_cast<char*>(nonce.data()));
|
| - nss_aead_params->ulIvLen = nonce.size();
|
| + nss_aead_params->ulNonceLen = nonce.size();
|
| nss_aead_params->pAAD =
|
| reinterpret_cast<CK_BYTE*>(const_cast<char*>(associated_data.data()));
|
| nss_aead_params->ulAADLen = associated_data.size();
|
|
|