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

Issue 8511050: Unify the error checking of crypto::Encryptor and add WARN_UNUSED_RESULT to prevent misuse. (Closed)

Created:
9 years, 1 month ago by Ryan Sleevi
Modified:
8 years, 6 months ago
Reviewers:
Peter Kasting, wtc
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Unify the error checking of crypto::Encryptor and add WARN_UNUSED_RESULT to prevent misuse. BUG=102722

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : Rebased with pkastings changes #

Patch Set 4 : Cleaned up memory usage and checks #

Patch Set 5 : Fix mac and linux #

Total comments: 13

Patch Set 6 : Rebased #

Patch Set 7 : Remove test for empty ciphertext #

Patch Set 8 : Fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -98 lines) Patch
M chrome/browser/password_manager/encryptor_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M crypto/encryptor.h View 1 2 3 chunks +10 lines, -5 lines 0 comments Download
M crypto/encryptor.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M crypto/encryptor_mac.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -9 lines 0 comments Download
M crypto/encryptor_nss.cc View 1 2 3 4 5 6 7 chunks +29 lines, -42 lines 0 comments Download
M crypto/encryptor_openssl.cc View 1 2 3 4 5 6 3 chunks +22 lines, -18 lines 0 comments Download
M crypto/encryptor_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M crypto/encryptor_win.cc View 1 2 3 4 5 6 3 chunks +18 lines, -19 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Ryan Sleevi
wtc: PTAL. The motivation is that the Encryptor should be well-behaved in the face of ...
9 years, 1 month ago (2011-11-11 07:36:57 UTC) #1
wtc
Patch Set 2 LGTM, but I disagree with converting all CHECKs and DCHECKs to tests. ...
9 years, 1 month ago (2011-11-15 02:33:58 UTC) #2
Ryan Sleevi
wtc: Sorry for letting this idle a bit. I think I've found a reasonable balance ...
9 years ago (2011-12-14 06:07:52 UTC) #3
wtc
Review comments on Patch Set 5: Some of my comments below also apply to the ...
9 years ago (2011-12-15 02:03:58 UTC) #4
Peter Kasting
http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc File crypto/encryptor_mac.cc (right): http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc#newcode48 crypto/encryptor_mac.cc:48: output->swap(result); On 2011/12/15 02:03:58, wtc wrote: > > IMPORTANT: ...
9 years ago (2011-12-15 02:12:39 UTC) #5
wtc
http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc File crypto/encryptor_mac.cc (right): http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc#newcode48 crypto/encryptor_mac.cc:48: output->swap(result); On 2011/12/15 02:12:39, Peter Kasting wrote: > > ...
9 years ago (2011-12-15 02:16:44 UTC) #6
Ryan Sleevi
Is there a use-case for wanting to be able to treat an empty string as ...
9 years ago (2011-12-15 02:18:16 UTC) #7
Peter Kasting
http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc File crypto/encryptor_mac.cc (right): http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor_mac.cc#newcode58 crypto/encryptor_mac.cc:58: result_size + 1 < input.size()) { On 2011/12/15 02:18:16, ...
9 years ago (2011-12-15 02:20:08 UTC) #8
wtc
http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor.cc File crypto/encryptor.cc (right): http://codereview.chromium.org/8511050/diff/13002/crypto/encryptor.cc#newcode98 crypto/encryptor.cc:98: return false; On 2011/12/15 02:18:16, Ryan Sleevi wrote: > ...
9 years ago (2011-12-15 22:04:14 UTC) #9
Peter Kasting
rsleevi: This seems to have died. Did you want to resurrect this?
8 years, 6 months ago (2012-06-13 19:13:23 UTC) #10
Ryan Sleevi
8 years, 6 months ago (2012-06-21 18:51:28 UTC) #11
On 2012/06/13 19:13:23, Peter Kasting wrote:
> rsleevi: This seems to have died.  Did you want to resurrect this?

Closed. We killed off the platform-specific encryptors.

Powered by Google App Engine
This is Rietveld 408576698