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

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

Issue 189893002: Add ChaCha20Poly1305Encrypter, based on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove the six svn copy files from the CL Created 6 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 | « net/quic/crypto/quic_decrypter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_encrypter.cc
===================================================================
--- net/quic/crypto/quic_encrypter.cc (revision 255481)
+++ net/quic/crypto/quic_encrypter.cc (working copy)
@@ -5,6 +5,7 @@
#include "net/quic/crypto/quic_encrypter.h"
#include "net/quic/crypto/aes_128_gcm_12_encrypter.h"
+#include "net/quic/crypto/chacha20_poly1305_encrypter.h"
#include "net/quic/crypto/crypto_protocol.h"
#include "net/quic/crypto/null_encrypter.h"
@@ -15,6 +16,8 @@
switch (algorithm) {
case kAESG:
return new Aes128Gcm12Encrypter();
+ case kCC12:
+ return new ChaCha20Poly1305Encrypter();
case kNULL:
return new NullEncrypter();
default:
« no previous file with comments | « net/quic/crypto/quic_decrypter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698