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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « net/quic/crypto/chacha20_poly1305_decrypter.h ('k') | net/quic/crypto/chacha20_poly1305_decrypter_test.cc » ('j') | no next file with comments »
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 0d8eff0e7374d81ff8ea2f22dca7c39e2175bdde..b78db051098e794ef4580a61766402965ee44f85 100644
--- a/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc
+++ b/net/quic/crypto/chacha20_poly1305_decrypter_nss.cc
@@ -36,10 +36,11 @@ bool ChaCha20Poly1305Decrypter::IsSupported() {
return false;
}
-void ChaCha20Poly1305Decrypter::FillAeadParams(StringPiece nonce,
- StringPiece associated_data,
- size_t auth_tag_size,
- AeadParams* aead_params) const {
+void ChaCha20Poly1305Decrypter::FillAeadParams(
+ StringPiece nonce,
+ const StringPiece& associated_data,
+ size_t auth_tag_size,
+ AeadParams* aead_params) const {
NOTIMPLEMENTED();
}
@@ -60,10 +61,11 @@ bool ChaCha20Poly1305Decrypter::IsSupported() {
return true;
}
-void ChaCha20Poly1305Decrypter::FillAeadParams(StringPiece nonce,
- StringPiece associated_data,
- size_t auth_tag_size,
- AeadParams* aead_params) const {
+void ChaCha20Poly1305Decrypter::FillAeadParams(
+ StringPiece nonce,
+ const StringPiece& associated_data,
+ size_t auth_tag_size,
+ 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 =
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_decrypter.h ('k') | net/quic/crypto/chacha20_poly1305_decrypter_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698