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

Issue 27510015: Support ChaCha20+Poly1305 cipher suites. (Closed)

Created:
7 years, 2 months ago by wtc
Modified:
7 years, 2 months ago
Reviewers:
agl
CC:
chromium-reviews
Visibility:
Public.

Description

Support ChaCha20+Poly1305 cipher suites. Patch by Adam Langley. Upstream NSS bug https://bugzilla.mozilla.org/show_bug.cgi?id=917571 R=agl@chromium.org BUG=310768 TEST=none

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix compilation error, fix typos in function arguments #

Total comments: 8

Patch Set 3 : After first review #

Total comments: 1

Patch Set 4 : Make ChaCha20Poly1305 function conform to freebl API, undo changes to chacha20.c, use generic code … #

Total comments: 30

Patch Set 5 : Address review comments #

Patch Set 6 : Address review comments #

Patch Set 7 : Fix the GPR_TOO case in chacha20_vec.c to include |counter| #

Patch Set 8 : Upload again #

Patch Set 9 : Return SECFailure instead of NULL on failure #

Total comments: 11

Patch Set 10 : Minor fixes. Add a patch file. #

Patch Set 11 : Fold long lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3650 lines, -0 lines) Patch
M README.chromium View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M nss.gyp View 1 2 3 4 3 chunks +19 lines, -0 lines 0 comments Download
M nss/lib/freebl/blapi.h View 1 2 3 4 5 6 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
M nss/lib/freebl/blapit.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
A nss/lib/freebl/chacha20/chacha20.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
A nss/lib/freebl/chacha20/chacha20.c View 1 2 3 4 1 chunk +108 lines, -0 lines 0 comments Download
A nss/lib/freebl/chacha20/chacha20_vec.c View 1 2 3 4 5 6 1 chunk +281 lines, -0 lines 0 comments Download
A nss/lib/freebl/chacha20poly1305.h View 1 2 3 4 1 chunk +15 lines, -0 lines 0 comments Download
A nss/lib/freebl/chacha20poly1305.c View 1 2 3 4 5 6 7 8 9 1 chunk +169 lines, -0 lines 0 comments Download
A nss/lib/freebl/poly1305/poly1305.h View 1 chunk +31 lines, -0 lines 0 comments Download
A nss/lib/freebl/poly1305/poly1305.c View 1 2 3 1 chunk +254 lines, -0 lines 0 comments Download
A nss/lib/freebl/poly1305/poly1305-donna-x64-sse2-incremental-source.c View 1 chunk +623 lines, -0 lines 0 comments Download
M nss/lib/pk11wrap/pk11mech.c View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M nss/lib/softoken/pkcs11.c View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M nss/lib/softoken/pkcs11c.c View 1 2 3 4 5 6 7 8 9 10 4 chunks +125 lines, -0 lines 0 comments Download
M nss/lib/softoken/pkcs11i.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +12 lines, -0 lines 0 comments Download
M nss/lib/util/pkcs11n.h View 1 2 3 4 3 chunks +13 lines, -0 lines 0 comments Download
A patches/nss-chacha20-poly1305.patch View 1 2 3 4 5 6 7 8 9 10 1 chunk +1932 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
wtc
Is there a server that I can test with? https://codereview.chromium.org/27510015/diff/1/nss/lib/freebl/chacha20/chacha20.h File nss/lib/freebl/chacha20/chacha20.h (right): https://codereview.chromium.org/27510015/diff/1/nss/lib/freebl/chacha20/chacha20.h#newcode17 nss/lib/freebl/chacha20/chacha20.h:17: ...
7 years, 2 months ago (2013-10-18 01:14:38 UTC) #1
wtc
Patch set 1 is the original files from you. Patch set 2 contains two changes ...
7 years, 2 months ago (2013-10-18 01:16:03 UTC) #2
wtc
agl: this CL is now ready for review. Patch set 1 is your original NSS ...
7 years, 2 months ago (2013-10-19 01:09:42 UTC) #3
wtc
https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/chacha20/chacha20_vec.c File nss/lib/freebl/chacha20/chacha20_vec.c (right): https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/chacha20/chacha20_vec.c#newcode19 nss/lib/freebl/chacha20/chacha20_vec.c:19: typedef unsigned vec __attribute__ ((vector_size (16))); This file and ...
7 years, 2 months ago (2013-10-19 01:15:39 UTC) #4
wtc
https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/blapi.h File nss/lib/freebl/blapi.h (right): https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/blapi.h#newcode839 nss/lib/freebl/blapi.h:839: const unsigned char *input, unsigned int inputLen); I will ...
7 years, 2 months ago (2013-10-19 19:51:02 UTC) #5
wtc
https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/chacha20/chacha20.c File nss/lib/freebl/chacha20/chacha20.c (right): https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/chacha20/chacha20.c#newcode16 nss/lib/freebl/chacha20/chacha20.c:16: #define PLUSONE(v) (PLUS((v), 1)) Not used. Should we use ...
7 years, 2 months ago (2013-10-19 20:15:23 UTC) #6
wtc
https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/blapi.h File nss/lib/freebl/blapi.h (right): https://codereview.chromium.org/27510015/diff/207001/nss/lib/freebl/blapi.h#newcode839 nss/lib/freebl/blapi.h:839: const unsigned char *input, unsigned int inputLen); On 2013/10/19 ...
7 years, 2 months ago (2013-10-20 23:21:27 UTC) #7
agl
The change to move the "context" allocation into freebl does mean that it's no longer ...
7 years, 2 months ago (2013-10-21 21:53:38 UTC) #8
wtc
Thank you for your comments. Please review patch set 9. You may review the diffs ...
7 years, 2 months ago (2013-10-22 22:36:42 UTC) #9
agl
LGTM https://codereview.chromium.org/27510015/diff/437001/nss/lib/freebl/chacha20/chacha20_vec.c File nss/lib/freebl/chacha20/chacha20_vec.c (right): https://codereview.chromium.org/27510015/diff/437001/nss/lib/freebl/chacha20/chacha20_vec.c#newcode179 nss/lib/freebl/chacha20/chacha20_vec.c:179: x12 = (counter & 0xffffffff)+BPI*iters+(BPI-1); x13 = counter ...
7 years, 2 months ago (2013-10-23 14:24:27 UTC) #10
agl
p.s. www.google.com etc are still running the old code where the lengths are prefixes, not ...
7 years, 2 months ago (2013-10-23 14:45:33 UTC) #11
wtc
I'm going to commit patch set 11. https://codereview.chromium.org/27510015/diff/437001/nss/lib/softoken/pkcs11c.c File nss/lib/softoken/pkcs11c.c (right): https://codereview.chromium.org/27510015/diff/437001/nss/lib/softoken/pkcs11c.c#newcode479 nss/lib/softoken/pkcs11c.c:479: sftk_ChaCha20Poly1305_CreateContext(const unsigned ...
7 years, 2 months ago (2013-10-23 20:04:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/27510015/847001
7 years, 2 months ago (2013-10-23 20:04:39 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 20:05:07 UTC) #14
Message was sent while issue was closed.
Change committed as 230497

Powered by Google App Engine
This is Rietveld 408576698