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

Issue 12623017: Add Aes128GcmEncrypter and Aes128GcmDecrypter (Closed)

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

Description

Add Aes128GcmEncrypter and Aes128GcmDecrypter for the AEAD_AES_128_GCM authenticated encryption algorithm. An OpenSSL-based implementation is included. The NSS-based implementation will be added later. Merge internal change: 42641062 Add the GetKey() and GetNoncePrefix() methods to Aes128GcmEncrypter and Aes128GcmDecrypter. Merge internal change: 43570937 R=rch@chromium.org,rtenneti@chromium.org BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188292

Patch Set 1 #

Patch Set 2 : Fix build problems with use_openssl=1 #

Patch Set 3 : Rename the .cc files to _openssl.cc #

Total comments: 5

Patch Set 4 : Add a stub NSS-based implementation. Skip tests if AES GCM is not supported. #

Total comments: 4

Patch Set 5 : Add the DCHECKs that rch suggested #

Patch Set 6 : Sync with trunk, resolve merge conflicts, not buildable yet. #

Patch Set 7 : Fix build errors. Add GetKey and GetNoncePrefix. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1342 lines, -7 lines) Patch
M net/net.gyp View 1 2 3 4 5 6 chunks +15 lines, -1 line 0 comments Download
A net/quic/crypto/aes_128_gcm_decrypter.h View 1 2 3 4 5 6 1 chunk +64 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_decrypter_nss.cc View 1 2 3 4 5 6 1 chunk +77 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_decrypter_openssl.cc View 1 2 3 4 5 6 1 chunk +129 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_decrypter_test.cc View 1 2 3 1 chunk +374 lines, -0 lines 2 comments Download
A net/quic/crypto/aes_128_gcm_encrypter.h View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_encrypter_nss.cc View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_encrypter_openssl.cc View 1 2 3 4 5 6 1 chunk +143 lines, -0 lines 0 comments Download
A net/quic/crypto/aes_128_gcm_encrypter_test.cc View 1 2 3 1 chunk +334 lines, -0 lines 0 comments Download
M net/quic/crypto/quic_decrypter.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M net/quic/crypto/quic_encrypter.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
A net/quic/crypto/scoped_evp_cipher_ctx.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ryan Hamilton
As I started looking into this, I realized I'm confused. Is this code shared between ...
7 years, 9 months ago (2013-03-13 03:28:17 UTC) #1
Ryan Hamilton
One more question. Do we need an NSS implementation of this?
7 years, 9 months ago (2013-03-13 03:29:34 UTC) #2
wtc
https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc File net/quic/crypto/aes_128_gcm_decrypter_openssl.cc (right): https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc#newcode25 net/quic/crypto/aes_128_gcm_decrypter_openssl.cc:25: if (key.size() != sizeof(key_)) { On 2013/03/13 03:28:17, Ryan ...
7 years, 9 months ago (2013-03-13 19:08:07 UTC) #3
Ryan Hamilton
lgtm https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc File net/quic/crypto/aes_128_gcm_decrypter_openssl.cc (right): https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc#newcode25 net/quic/crypto/aes_128_gcm_decrypter_openssl.cc:25: if (key.size() != sizeof(key_)) { On 2013/03/13 19:08:07, ...
7 years, 9 months ago (2013-03-13 22:06:10 UTC) #4
wtc
https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc File net/quic/crypto/aes_128_gcm_decrypter_openssl.cc (right): https://codereview.chromium.org/12623017/diff/8002/net/quic/crypto/aes_128_gcm_decrypter_openssl.cc#newcode25 net/quic/crypto/aes_128_gcm_decrypter_openssl.cc:25: if (key.size() != sizeof(key_)) { On 2013/03/13 22:06:10, Ryan ...
7 years, 9 months ago (2013-03-13 22:59:16 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/12623017/40001
7 years, 9 months ago (2013-03-13 23:04:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/12623017/40001
7 years, 9 months ago (2013-03-14 22:38:19 UTC) #7
commit-bot: I haz the power
Failed to apply patch for net/net.gyp: While running patch -p0 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-14 22:38:21 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/12623017/87001
7 years, 9 months ago (2013-03-15 00:00:41 UTC) #9
commit-bot: I haz the power
Change committed as 188292
7 years, 9 months ago (2013-03-15 07:49:39 UTC) #10
eroman
https://chromiumcodereview.appspot.com/12623017/diff/87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc File net/quic/crypto/aes_128_gcm_decrypter_test.cc (right): https://chromiumcodereview.appspot.com/12623017/diff/87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc#newcode266 net/quic/crypto/aes_128_gcm_decrypter_test.cc:266: bool DecodeHexString(const char* in, Random drive-by: This seems like ...
7 years, 1 month ago (2013-11-01 01:58:12 UTC) #11
wtc
https://chromiumcodereview.appspot.com/12623017/diff/87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc File net/quic/crypto/aes_128_gcm_decrypter_test.cc (right): https://chromiumcodereview.appspot.com/12623017/diff/87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc#newcode266 net/quic/crypto/aes_128_gcm_decrypter_test.cc:266: bool DecodeHexString(const char* in, On 2013/11/01 01:58:18, eroman wrote: ...
7 years, 1 month ago (2013-11-01 18:42:02 UTC) #12
eroman
7 years, 1 month ago (2013-11-01 22:29:30 UTC) #13
FYI: Done in https://codereview.chromium.org/54043003/


On Fri, Nov 1, 2013 at 11:42 AM, <wtc@chromium.org> wrote:

>
> https://chromiumcodereview.appspot.com/12623017/diff/
> 87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc
> File net/quic/crypto/aes_128_gcm_decrypter_test.cc (right):
>
> https://chromiumcodereview.appspot.com/12623017/diff/
> 87001/net/quic/crypto/aes_128_gcm_decrypter_test.cc#newcode266
> net/quic/crypto/aes_128_gcm_decrypter_test.cc:266: bool
> DecodeHexString(const char* in,
>
> On 2013/11/01 01:58:18, eroman wrote:
>
>> Random drive-by: This seems like a duplication of
>>
> base::HexStringToBytes()
>
>  If this is something that interest you, I can replace it.
>>
>
> Replacing this with base::HexStringToBytes() would be good. Thanks.
>
> https://chromiumcodereview.appspot.com/12623017/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698