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

Issue 4691003: Implement symmetric key for openssl (Closed)

Created:
10 years, 1 month ago by joth
Modified:
9 years, 7 months ago
Reviewers:
bulach, wtc, Ryan Sleevi
CC:
chromium-reviews, cbentzel+watch_chromium.org, Paweł Hajdan Jr., darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

implement openssl symmetric key add AES derived key test Also includes some build fixes. BUG=None TEST=./out/Debug/base_unittests --gtest_filter=SymmetricKey* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65936

Patch Set 1 #

Patch Set 2 : Add test, refactor tests to be data driven #

Patch Set 3 : Refactored tests to parameterized style, and working #

Total comments: 10

Patch Set 4 : fixed mac + small tidy up #

Patch Set 5 : rsleevi comments #

Patch Set 6 : missed a file #

Total comments: 4

Patch Set 7 : lint #

Total comments: 2

Patch Set 8 : rsleevi comments #

Patch Set 9 : fix windows build #

Total comments: 7

Patch Set 10 : wtc comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -86 lines) Patch
M base/base.gypi View 4 chunks +5 lines, -1 line 0 comments Download
M base/crypto/symmetric_key.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M base/crypto/symmetric_key_openssl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +49 lines, -8 lines 0 comments Download
M base/crypto/symmetric_key_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +77 lines, -72 lines 0 comments Download
M base/openssl_util.h View 5 6 7 8 9 2 chunks +21 lines, -3 lines 0 comments Download
A base/openssl_util.cc View 6 7 8 9 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
joth
10 years, 1 month ago (2010-11-10 20:17:42 UTC) #1
Ryan Sleevi
The build changes look fine, but perhaps it's time to re-evaluate the comment in build/linux/system.gyp ...
10 years, 1 month ago (2010-11-10 23:18:45 UTC) #2
joth
Thanks for the quick comment, now addressed except the non-AES random key. As mentioned I'm ...
10 years, 1 month ago (2010-11-11 15:07:12 UTC) #3
Ryan Sleevi
LGTM, with a few nits below. http://codereview.chromium.org/4691003/diff/17001/base/openssl_util.cc File base/openssl_util.cc (right): http://codereview.chromium.org/4691003/diff/17001/base/openssl_util.cc#newcode18 base/openssl_util.cc:18: DVLOG(1) << "SSL ...
10 years, 1 month ago (2010-11-11 18:07:15 UTC) #4
joth
Thanks! Will land this in the morning. http://codereview.chromium.org/4691003/diff/17001/base/openssl_util.cc File base/openssl_util.cc (right): http://codereview.chromium.org/4691003/diff/17001/base/openssl_util.cc#newcode18 base/openssl_util.cc:18: DVLOG(1) << ...
10 years, 1 month ago (2010-11-11 19:54:36 UTC) #5
wtc
Please consider these as drive-by review comments. I didn't review some changes carefully. http://codereview.chromium.org/4691003/diff/33001/base/crypto/symmetric_key.h File ...
10 years, 1 month ago (2010-11-11 23:39:15 UTC) #6
joth
Cheers! Landed. http://codereview.chromium.org/4691003/diff/33001/base/crypto/symmetric_key.h File base/crypto/symmetric_key.h (right): http://codereview.chromium.org/4691003/diff/33001/base/crypto/symmetric_key.h#newcode69 base/crypto/symmetric_key.h:69: // Swaps in the content of the ...
10 years, 1 month ago (2010-11-12 12:15:53 UTC) #7
wtc
10 years, 1 month ago (2010-11-12 15:01:50 UTC) #8
http://codereview.chromium.org/4691003/diff/33001/base/crypto/symmetric_key.h
File base/crypto/symmetric_key.h (right):

http://codereview.chromium.org/4691003/diff/33001/base/crypto/symmetric_key.h...
base/crypto/symmetric_key.h:69: // Swaps in the content of the |key|.
On 2010/11/12 12:15:53, joth wrote:
>
> As mentioned to rsleevi, the swap() was intended to avoid making unnecessary
> copies of the confidential key, not for performance gain,

Ah, I see.  It was not obvious that's the purpose of the
swap.

> but as it's not not
> clear I have switched the factory methods to access the key_ member directly
> (including for Import, as it seems as well to keep them all  consistent).

This sounds good.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698