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

Issue 189893002: Add ChaCha20Poly1305Encrypter, based on (Closed)

Created:
6 years, 9 months ago by wtc
Modified:
6 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Visibility:
Public.

Description

Add ChaCha20Poly1305Encrypter, based on draft-agl-tls-chacha20poly1305-04 and identified by the tag CC12. Add the base class AeadBaseEncrypter for Aes128Gcm12Encrypter and ChaCha20Poly1305Encrypter. Both subclasses can be defined by configuring the base class with four parameters. Merge internal CL: 62224774 Add ChaCha20Poly1305Decrypter, based on draft-agl-tls-chacha20poly1305-04 and identified by the tag CC12. This continues the previous CL that added ChaCha20Poly1305Encrypter. Add the base class AeadBaseDecrypter for Aes128Gcm12Decrypter and ChaCha20Poly1305Decrypter. Both subclasses can be defined by configuring the base class with four parameters. Merge internal CL: 62637549 Note: The chacha20_poly1305_*_nss.cc files will be implemented in a follow-up CL. Six files created with "svn copy" were added separately in https://codereview.chromium.org/196743005/ (r256650). R=agl@chromium.org,rtenneti@chromium.org BUG=none TEST=net_unittests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256837

Patch Set 1 #

Patch Set 2 : Add the Decrypters #

Patch Set 3 : Complete #

Patch Set 4 : Tweaks #

Total comments: 2

Patch Set 5 : Export AeadBase*crypter #

Total comments: 8

Patch Set 6 : Move GCM-specific code back to the Aes128Gcm12En/Decrypter classes #

Total comments: 5

Patch Set 7 : Add const #

Patch Set 8 : Remove the six svn copy files from the CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+671 lines, -670 lines) Patch
M net/net.gyp View 1 2 5 chunks +22 lines, -0 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter.h View 1 2 3 4 5 2 chunks +9 lines, -38 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter_nss.cc View 1 2 3 4 5 5 chunks +19 lines, -166 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter_openssl.cc View 1 1 chunk +8 lines, -97 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter_test.cc View 1 2 2 chunks +22 lines, -26 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter.h View 1 2 2 chunks +9 lines, -38 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter_nss.cc View 1 2 3 4 5 5 chunks +19 lines, -169 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter_openssl.cc View 1 chunk +7 lines, -118 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter_test.cc View 1 2 chunks +16 lines, -18 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_decrypter.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_decrypter_nss.cc View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_decrypter_openssl.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_decrypter_test.cc View 1 2 3 4 5 1 chunk +129 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_encrypter.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_encrypter_nss.cc View 1 2 3 4 5 1 chunk +74 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_encrypter_openssl.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A net/quic/crypto/chacha20_poly1305_encrypter_test.cc View 1 2 3 4 5 1 chunk +108 lines, -0 lines 0 comments Download
M net/quic/crypto/crypto_protocol.h View 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/quic_decrypter.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M net/quic/crypto/quic_encrypter.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wtc
Sorry about the big CL. Hopefully it's straightforward to review. Adam, you've reviewed the internal ...
6 years, 9 months ago (2014-03-08 01:08:51 UTC) #1
ramant (doing other things)
lgtm https://codereview.chromium.org/189893002/diff/50001/net/quic/crypto/aes_128_gcm_12_decrypter.h File net/quic/crypto/aes_128_gcm_12_decrypter.h (right): https://codereview.chromium.org/189893002/diff/50001/net/quic/crypto/aes_128_gcm_12_decrypter.h#newcode36 net/quic/crypto/aes_128_gcm_12_decrypter.h:36: nit: Blank line at the end of a ...
6 years, 9 months ago (2014-03-10 14:36:55 UTC) #2
agl
LGTM https://codereview.chromium.org/189893002/diff/70001/net/quic/crypto/aead_base_decrypter.h File net/quic/crypto/aead_base_decrypter.h (right): https://codereview.chromium.org/189893002/diff/70001/net/quic/crypto/aead_base_decrypter.h#newcode61 net/quic/crypto/aead_base_decrypter.h:61: #if !defined(USE_NSS) Is USE_NSS really USE_SYSTEM_NSS? This reads ...
6 years, 9 months ago (2014-03-10 15:08:32 UTC) #3
wtc
Thanks for the review. Please review patch set 6. You can just review the diffs ...
6 years, 9 months ago (2014-03-11 04:02:01 UTC) #4
wtc
https://codereview.chromium.org/189893002/diff/90001/net/quic/crypto/aead_base_decrypter.h File net/quic/crypto/aead_base_decrypter.h (right): https://codereview.chromium.org/189893002/diff/90001/net/quic/crypto/aead_base_decrypter.h#newcode84 net/quic/crypto/aead_base_decrypter.h:84: const EVP_AEAD* aead_alg_; Note to self: make this member ...
6 years, 9 months ago (2014-03-11 04:21:11 UTC) #5
wtc
https://codereview.chromium.org/189893002/diff/90001/net/quic/crypto/aead_base_decrypter.h File net/quic/crypto/aead_base_decrypter.h (right): https://codereview.chromium.org/189893002/diff/90001/net/quic/crypto/aead_base_decrypter.h#newcode87 net/quic/crypto/aead_base_decrypter.h:87: const PK11_DecryptFunction pk11_decrypt_; I just realized that pk11_decrypt_ is ...
6 years, 9 months ago (2014-03-11 15:53:50 UTC) #6
agl
lgtm I didn't mean for you to move the GCM specific code from the base ...
6 years, 9 months ago (2014-03-11 17:08:10 UTC) #7
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 9 months ago (2014-03-13 12:54:43 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/189893002/110002
6 years, 9 months ago (2014-03-13 12:55:02 UTC) #9
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 15:23:56 UTC) #10
Message was sent while issue was closed.
Change committed as 256837

Powered by Google App Engine
This is Rietveld 408576698