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

Issue 218: HMAC-SHA1 implementation for Mac based on CommonCrypto (Closed)

Created:
12 years, 3 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

HMAC-SHA1 implementation for Mac based on CommonCrypto; allow Windows HMAC-SHA1 to use keys longer than 16 bytes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=1724

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -149 lines) Patch
M base/SConscript View 1 1 chunk +1 line, -1 line 0 comments Download
M base/base.xcodeproj/project.pbxproj View 1 5 chunks +10 lines, -0 lines 0 comments Download
M base/build/base.vcproj View 1 1 chunk +2 lines, -2 lines 0 comments Download
M base/hmac.h View 1 2 3 4 5 4 chunks +20 lines, -16 lines 0 comments Download
D base/hmac.cc View 1 1 chunk +0 lines, -97 lines 0 comments Download
A base/hmac_mac.cc View 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
M base/hmac_unittest.cc View 2 chunks +118 lines, -13 lines 0 comments Download
A + base/hmac_win.cc View 1 2 3 4 5 6 3 chunks +30 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_util.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Mark Mentovai
OK, I don't know if we actually want this, since it pretty much hinges on ...
12 years, 3 months ago (2008-09-04 00:05:38 UTC) #1
Evan Martin
I believe the conclusion was to use NSS on Linux and the native mac stuff ...
12 years, 3 months ago (2008-09-04 00:11:45 UTC) #2
wtc
I did some web searches for the system crypto library on Mac OS X. I ...
12 years, 3 months ago (2008-09-04 02:44:00 UTC) #3
Mark Mentovai
To Wan-Teh for review. I haven't tested this on Windows yet, I'll do that before ...
12 years, 3 months ago (2008-09-04 14:39:39 UTC) #4
Mark Mentovai
I tested this on Windows and updated it so that hmac_win.cc is able to handle ...
12 years, 3 months ago (2008-09-04 16:49:43 UTC) #5
wtc
I agree with the use of CommonCrypto. It seems to be newly available in Leopard: ...
12 years, 3 months ago (2008-09-04 17:30:35 UTC) #6
wtc
http://codereview.chromium.org/218/diff/21/245 File base/hmac_win.cc (right): http://codereview.chromium.org/218/diff/21/245#newcode66 Line 66: // CRYPT_IPSEC_HMAC_KEY allows keys longer than 16 bytes, ...
12 years, 3 months ago (2008-09-04 18:10:28 UTC) #7
wtc
12 years, 3 months ago (2008-09-04 18:40:42 UTC) #8
LGTM.

I also looked at Patch Set 7 even though the comments
below were added to Patch Set 6.

http://codereview.chromium.org/218/diff/263/51
File base/hmac_mac.cc (right):

http://codereview.chromium.org/218/diff/263/51#newcode41
Line 41: DCHECK(false);
WOuld NOTREACHED() be better?

http://codereview.chromium.org/218/diff/263/48
File base/hmac_win.cc (right):

http://codereview.chromium.org/218/diff/263/48#newcode56
Line 56: sizeof(KeyBlob));
I'm not sure if we need to do std::max here.  It'd be
useful only if key_length is <= 0.

Powered by Google App Engine
This is Rietveld 408576698