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

Issue 12457004: Curve25519-donna changes. (Closed)

Created:
7 years, 9 months ago by ramant (doing other things)
Modified:
7 years, 9 months ago
Reviewers:
agl, wtc, Ryan Sleevi
CC:
chromium-reviews
Visibility:
Public.

Description

Added Curve25519-donna changes. Added a wrapper class that implements the following API calls which for Curve25519. + ScalarMult to compute the shared key. + ScalarBaseMult to get public key. + ConvertToPrivateKey returns a private key from random bytes. Per agl/wtc, grabbed the rev 234205ff from the git repo (https://github.com/agl/curve25519-donna/tree/234205ff1ecaf6b3c1dc76798a462c4293f31fdb) and checked it in to crypto/ because that version has pure Google copyright. R=wtc@chromium.org,agl@chromium.org,rsleevi@chromium.org TEST=crypto unit tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187074

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : #

Total comments: 16

Patch Set 6 : #

Patch Set 7 : #

Total comments: 37

Patch Set 8 : #

Patch Set 9 : #

Total comments: 4

Patch Set 10 : #

Total comments: 4

Patch Set 11 : #

Patch Set 12 : #

Total comments: 2

Patch Set 13 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+724 lines, -0 lines) Patch
M crypto/crypto.gyp View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A crypto/curve25519.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +48 lines, -0 lines 0 comments Download
A crypto/curve25519.cc View 1 2 3 4 5 6 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A crypto/curve25519-donna.c View 1 2 3 4 5 6 7 1 chunk +592 lines, -0 lines 0 comments Download
A crypto/curve25519_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +44 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
wtc
Review comments on patch set 4: Note: I removed agl as a reviewer temporarily. Let's ...
7 years, 9 months ago (2013-03-06 00:55:58 UTC) #1
ramant (doing other things)
Hi Wan-Teh, Made the changes you have suggested. Had a one small #ifdef to curve-donna ...
7 years, 9 months ago (2013-03-06 19:01:05 UTC) #2
wtc
Review comments on patch set 5. https://chromiumcodereview.appspot.com/12457004/diff/13003/crypto/curve25519.cc File crypto/curve25519.cc (right): https://chromiumcodereview.appspot.com/12457004/diff/13003/crypto/curve25519.cc#newcode9 crypto/curve25519.cc:9: using std::string; Remove ...
7 years, 9 months ago (2013-03-06 19:21:07 UTC) #3
ramant (doing other things)
Hi Wan-Teh, Made all the changes you have suggested. Minor change: Deleted some unnecessary code ...
7 years, 9 months ago (2013-03-06 20:03:11 UTC) #4
ramant (doing other things)
+rsleevi
7 years, 9 months ago (2013-03-06 20:05:06 UTC) #5
Ryan Sleevi
https://codereview.chromium.org/12457004/diff/46007/crypto/crypto.gyp File crypto/crypto.gyp (right): https://codereview.chromium.org/12457004/diff/46007/crypto/crypto.gyp#newcode189 crypto/crypto.gyp:189: 'curve25519.cc', Should this be named curve_25519, per Chromium file ...
7 years, 9 months ago (2013-03-06 21:18:32 UTC) #6
wtc
Patch set 7 LGTM. Please wait for rsleevi's approval. agl: I have a question for ...
7 years, 9 months ago (2013-03-06 21:26:44 UTC) #7
agl
https://codereview.chromium.org/12457004/diff/46007/crypto/crypto.gyp File crypto/crypto.gyp (right): https://codereview.chromium.org/12457004/diff/46007/crypto/crypto.gyp#newcode189 crypto/crypto.gyp:189: 'curve25519.cc', On 2013/03/06 21:18:32, Ryan Sleevi wrote: > Should ...
7 years, 9 months ago (2013-03-06 21:47:50 UTC) #8
wtc
https://codereview.chromium.org/12457004/diff/46007/crypto/third_party/curve25519-donna/README File crypto/third_party/curve25519-donna/README (right): https://codereview.chromium.org/12457004/diff/46007/crypto/third_party/curve25519-donna/README#newcode1 crypto/third_party/curve25519-donna/README:1: See http://code.google.com/p/curve25519-donna/ for details. On 2013/03/06 21:47:50, agl wrote: ...
7 years, 9 months ago (2013-03-07 03:28:39 UTC) #9
ramant (doing other things)
Tried to address all your comments. Implemented the interim solution suggested by agl/wtc. Removed third_party/curve25519 ...
7 years, 9 months ago (2013-03-08 00:10:15 UTC) #10
wtc
Patch set 9 LGTM. Please wait for agl and rsleevi's approval. https://codereview.chromium.org/12457004/diff/60001/crypto/curve25519.h File crypto/curve25519.h (right): ...
7 years, 9 months ago (2013-03-08 01:30:15 UTC) #11
agl
lgtm https://codereview.chromium.org/12457004/diff/60001/crypto/curve25519.h File crypto/curve25519.h (right): https://codereview.chromium.org/12457004/diff/60001/crypto/curve25519.h#newcode24 crypto/curve25519.h:24: // GF(2^252 + 27742317777372353535851937790883648493). On 2013/03/08 01:30:15, wtc ...
7 years, 9 months ago (2013-03-08 15:17:31 UTC) #12
ramant (doing other things)
Deleted ConvertToPrivateKey, because curve25519_donna(0 has the same code (it does the clamping). PTAL. https://codereview.chromium.org/12457004/diff/60001/crypto/curve25519.h File ...
7 years, 9 months ago (2013-03-08 18:15:25 UTC) #13
Ryan Sleevi
Mostly LGTM, but still a question about the test and two nits. https://codereview.chromium.org/12457004/diff/9003/crypto/curve25519.h File crypto/curve25519.h ...
7 years, 9 months ago (2013-03-08 18:27:33 UTC) #14
ramant (doing other things)
PTAL. thanks. https://codereview.chromium.org/12457004/diff/9003/crypto/curve25519.h File crypto/curve25519.h (right): https://codereview.chromium.org/12457004/diff/9003/crypto/curve25519.h#newcode42 crypto/curve25519.h:42: void CRYPTO_EXPORT ScalarBaseMult(const uint8* private_key, uint8* public_key); ...
7 years, 9 months ago (2013-03-08 18:30:45 UTC) #15
Ryan Sleevi
LGTM. Tiny nit, take it or leave it. https://codereview.chromium.org/12457004/diff/81002/crypto/curve25519_unittest.cc File crypto/curve25519_unittest.cc (right): https://codereview.chromium.org/12457004/diff/81002/crypto/curve25519_unittest.cc#newcode47 crypto/curve25519_unittest.cc:47: ASSERT_EQ(alice_shared, ...
7 years, 9 months ago (2013-03-08 18:37:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/12457004/81002
7 years, 9 months ago (2013-03-08 19:01:34 UTC) #17
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-08 19:07:08 UTC) #18
ramant (doing other things)
rsleevi: made the changes you have suggested. PTAL. :-). https://codereview.chromium.org/12457004/diff/81002/crypto/curve25519_unittest.cc File crypto/curve25519_unittest.cc (right): https://codereview.chromium.org/12457004/diff/81002/crypto/curve25519_unittest.cc#newcode47 crypto/curve25519_unittest.cc:47: ...
7 years, 9 months ago (2013-03-08 19:09:45 UTC) #19
Ryan Sleevi
lgtm
7 years, 9 months ago (2013-03-08 19:27:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rtenneti@chromium.org/12457004/93001
7 years, 9 months ago (2013-03-08 19:37:24 UTC) #21
commit-bot: I haz the power
7 years, 9 months ago (2013-03-08 23:40:45 UTC) #22
Message was sent while issue was closed.
Change committed as 187074

Powered by Google App Engine
This is Rietveld 408576698