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

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

Issue 12623017: Add Aes128GcmEncrypter and Aes128GcmDecrypter (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix build errors. Add GetKey and GetNoncePrefix. Created 7 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/quic_encrypter.cc
===================================================================
--- net/quic/crypto/quic_encrypter.cc (revision 188227)
+++ net/quic/crypto/quic_encrypter.cc (working copy)
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "net/quic/crypto/quic_encrypter.h"
+
+#include "net/quic/crypto/aes_128_gcm_encrypter.h"
#include "net/quic/crypto/null_encrypter.h"
namespace net {
@@ -11,9 +13,7 @@
QuicEncrypter* QuicEncrypter::Create(CryptoTag algorithm) {
switch (algorithm) {
case kAESG:
- // TODO(wtc): add support for Aes128GcmEncrypter.
- // return new Aes128GcmEncrypter();
- return new NullEncrypter();
+ return new Aes128GcmEncrypter();
case kNULL:
return new NullEncrypter();
default:

Powered by Google App Engine
This is Rietveld 408576698