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

Unified Diff: trunk/src/net/quic/crypto/null_encrypter.cc

Issue 15018013: Revert 198736 "Land Recent QUIC changes" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/net/quic/crypto/crypto_server_config.cc ('k') | trunk/src/net/quic/crypto/proof_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/net/quic/crypto/null_encrypter.cc
===================================================================
--- trunk/src/net/quic/crypto/null_encrypter.cc (revision 198763)
+++ trunk/src/net/quic/crypto/null_encrypter.cc (working copy)
@@ -29,7 +29,7 @@
string buffer = associated_data.as_string();
plaintext.AppendToString(&buffer);
uint128 hash = QuicUtils::FNV1a_128_Hash(buffer.data(), buffer.length());
- QuicUtils::SerializeUint128(hash, output);
+ memcpy(output, &hash, sizeof(hash));
memcpy(output + sizeof(hash), plaintext.data(), plaintext.size());
return true;
}
« no previous file with comments | « trunk/src/net/quic/crypto/crypto_server_config.cc ('k') | trunk/src/net/quic/crypto/proof_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698