Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Unified Diff: net/quic/crypto/chacha20_poly1305_encrypter_nss.cc

Issue 1844813002: Uprev NSS to 3.23 on iOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698