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

Unified Diff: net/quic/crypto/chacha20_poly1305_decrypter_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
« no previous file with comments | « no previous file | net/quic/crypto/chacha20_poly1305_encrypter_nss.cc » ('j') | net/socket/nss_ssl_util.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 aeff43a4c6e1d27b5c0e02c0dd0ade2aa2618917..7ba03ab3406409f2cc781e8a00f2830873d55696 100644
--- a/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc
+++ b/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc
@@ -35,9 +35,9 @@ void ChaCha20Poly1305Decrypter::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();
davidben 2016/03/30 18:39:25 This would be contingent on a src/third_party/nss
Ryan Sleevi 2016/03/31 02:52:58 Correct. Sorry, I didn't upload the DEPS bit yet,
davidben 2016/03/31 05:23:00 Got it.
nss_aead_params->pAAD =
reinterpret_cast<CK_BYTE*>(const_cast<char*>(associated_data.data()));
nss_aead_params->ulAADLen = associated_data.size();
« no previous file with comments | « no previous file | net/quic/crypto/chacha20_poly1305_encrypter_nss.cc » ('j') | net/socket/nss_ssl_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698