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

Issue 8124011: Add constant-time comparison operators for cryptographic uses. (Closed)

Created:
9 years, 2 months ago by palmer
Modified:
9 years, 2 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Make constant-time comparison operators for cryptographic uses public. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104502

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Total comments: 1

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -21 lines) Patch
M crypto/crypto.gyp View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M crypto/hmac.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -21 lines 0 comments Download
A crypto/secure_util.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +30 lines, -0 lines 0 comments Download
A crypto/secure_util.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Ryan Sleevi
I'm inclined to believe this may be better suited under crypto/ then base/. The only ...
9 years, 2 months ago (2011-10-03 23:45:33 UTC) #1
Chris Palmer
> You should also look to update crypto/hmac.cc:SecureMemCmp() to use this > routine. Oh, it ...
9 years, 2 months ago (2011-10-03 23:57:38 UTC) #2
Chris Palmer
Well, rather than trashing the CL, I'm re-using it. Turns out I had to make ...
9 years, 2 months ago (2011-10-04 00:03:05 UTC) #3
Ryan Sleevi
Right. wtc expressed the same feeling in the original review - that it should be ...
9 years, 2 months ago (2011-10-04 00:10:14 UTC) #4
wtc
http://codereview.chromium.org/8124011/diff/4001/crypto/hmac.h File crypto/hmac.h (right): http://codereview.chromium.org/8124011/diff/4001/crypto/hmac.h#newcode81 crypto/hmac.h:81: bool SecureMemcmp(const void* s1, const void* s2, size_t n); ...
9 years, 2 months ago (2011-10-04 00:32:10 UTC) #5
Chris Palmer
wtc, looks like you did a review right before I uploaded a new rev of ...
9 years, 2 months ago (2011-10-04 00:37:03 UTC) #6
Ryan Sleevi
LGTM, modulo the namespace issue below. http://codereview.chromium.org/8124011/diff/5001/crypto/secure_memcmp.cc File crypto/secure_memcmp.cc (right): http://codereview.chromium.org/8124011/diff/5001/crypto/secure_memcmp.cc#newcode6 crypto/secure_memcmp.cc:6: missing namespace crypto ...
9 years, 2 months ago (2011-10-04 00:38:28 UTC) #7
Chris Palmer
http://codereview.chromium.org/8124011/diff/5001/crypto/secure_memcmp.cc File crypto/secure_memcmp.cc (right): http://codereview.chromium.org/8124011/diff/5001/crypto/secure_memcmp.cc#newcode6 crypto/secure_memcmp.cc:6: On 2011/10/04 00:38:28, Ryan Sleevi wrote: > missing namespace ...
9 years, 2 months ago (2011-10-04 00:40:30 UTC) #8
wtc
LGTM. It is wasteful to use a header for just one function. You may want ...
9 years, 2 months ago (2011-10-04 00:58:22 UTC) #9
Chris Palmer
> LGTM. It is wasteful to use a header for just one function. > You ...
9 years, 2 months ago (2011-10-04 16:44:56 UTC) #10
wtc
LGTM on Patch Set 9. http://codereview.chromium.org/8124011/diff/9001/crypto/secure_util.h File crypto/secure_util.h (right): http://codereview.chromium.org/8124011/diff/9001/crypto/secure_util.h#newcode9 crypto/secure_util.h:9: #include "base/basictypes.h" Nit: for ...
9 years, 2 months ago (2011-10-04 19:17:08 UTC) #11
Chris Palmer
> crypto/secure_util.h:9: #include "base/basictypes.h" > Nit: for the definition of the size_t type, it is ...
9 years, 2 months ago (2011-10-04 19:20:20 UTC) #12
wtc
http://codereview.chromium.org/8124011/diff/11002/crypto/secure_util.h File crypto/secure_util.h (right): http://codereview.chromium.org/8124011/diff/11002/crypto/secure_util.h#newcode25 crypto/secure_util.h:25: CRYPTO_EXPORT bool SecureMemcmp(const void* s1, const void* s2, size_t ...
9 years, 2 months ago (2011-10-04 19:49:06 UTC) #13
Chris Palmer
> If not, perhaps we should > rename this function SecureMemEqual. Done.
9 years, 2 months ago (2011-10-04 20:01:07 UTC) #14
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/8124011/14001
9 years, 2 months ago (2011-10-05 22:09:49 UTC) #15
commit-bot: I haz the power
Try job failure for 8124011-14001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
9 years, 2 months ago (2011-10-05 23:46:29 UTC) #16
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/8124011/14001
9 years, 2 months ago (2011-10-06 23:48:17 UTC) #17
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-07 02:24:22 UTC) #18
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/8124011/14001
9 years, 2 months ago (2011-10-07 02:27:15 UTC) #19
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
9 years, 2 months ago (2011-10-07 03:29:43 UTC) #20
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/palmer@chromium.org/8124011/14001
9 years, 2 months ago (2011-10-07 15:30:53 UTC) #21
commit-bot: I haz the power
9 years, 2 months ago (2011-10-07 17:02:50 UTC) #22
Change committed as 104502

Powered by Google App Engine
This is Rietveld 408576698