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

Issue 6750016: Make SHA256_update and SHA512_update if the passed in length is greater than UINT32_MAX (Closed)

Created:
9 years, 9 months ago by gauravsh
Modified:
9 years, 6 months ago
Reviewers:
Randall Spangler
CC:
chromium-os-reviews_chromium.org, Randall Spangler, gauravsh, Luigi Semenzato, Bill Richardson
Visibility:
Public.

Description

Make SHA256_update and SHA512_update if the passed in length is greater than UINT32_MAX BUG=chrome-os-partner:2912 TEST=make && make runtests Change-Id: If415a023d47b78ae2fc5af0b2fe5e410ef37086d Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=a01a62b

Patch Set 1 #

Total comments: 2

Patch Set 2 : review #

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : casts #

Patch Set 5 : . #

Total comments: 2

Patch Set 6 : satisfy vc maybe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -22 lines) Patch
M firmware/lib/cryptolib/include/sha.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M firmware/lib/cryptolib/sha2.c View 1 2 3 4 5 4 chunks +48 lines, -20 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
gauravsh
9 years, 9 months ago (2011-03-26 01:28:21 UTC) #1
Randall Spangler
http://codereview.chromium.org/6750016/diff/1/firmware/lib/cryptolib/sha2.c File firmware/lib/cryptolib/sha2.c (right): http://codereview.chromium.org/6750016/diff/1/firmware/lib/cryptolib/sha2.c#newcode609 firmware/lib/cryptolib/sha2.c:609: SHA256_update(&ctx, data, len); Is SHA256_update() used anywhere else? If ...
9 years, 9 months ago (2011-03-26 02:02:46 UTC) #2
gauravsh
http://codereview.chromium.org/6750016/diff/1/firmware/lib/cryptolib/sha2.c File firmware/lib/cryptolib/sha2.c (right): http://codereview.chromium.org/6750016/diff/1/firmware/lib/cryptolib/sha2.c#newcode609 firmware/lib/cryptolib/sha2.c:609: SHA256_update(&ctx, data, len); On 2011/03/26 02:02:46, Randall Spangler wrote: ...
9 years, 9 months ago (2011-03-26 23:21:41 UTC) #3
Randall Spangler
LGTM assuming the two extra (uint32_t) typecasts. http://codereview.chromium.org/6750016/diff/7001/firmware/lib/cryptolib/include/sha.h File firmware/lib/cryptolib/include/sha.h (right): http://codereview.chromium.org/6750016/diff/7001/firmware/lib/cryptolib/include/sha.h#newcode57 firmware/lib/cryptolib/include/sha.h:57: void SHA1_update(SHA1_CTX* ...
9 years, 9 months ago (2011-03-28 16:15:04 UTC) #4
gauravsh
I will push the changes once the tree is open! http://codereview.chromium.org/6750016/diff/7001/firmware/lib/cryptolib/include/sha.h File firmware/lib/cryptolib/include/sha.h (right): http://codereview.chromium.org/6750016/diff/7001/firmware/lib/cryptolib/include/sha.h#newcode57 ...
9 years, 9 months ago (2011-03-28 18:49:41 UTC) #5
Randall Spangler
http://codereview.chromium.org/6750016/diff/17001/firmware/lib/cryptolib/sha2.c File firmware/lib/cryptolib/sha2.c (right): http://codereview.chromium.org/6750016/diff/17001/firmware/lib/cryptolib/sha2.c#newcode610 firmware/lib/cryptolib/sha2.c:610: block_size = (remaining_len >= (uint32_t) UINT32_MAX) ? Actually, I ...
9 years, 9 months ago (2011-03-28 21:18:54 UTC) #6
gauravsh
http://codereview.chromium.org/6750016/diff/17001/firmware/lib/cryptolib/sha2.c File firmware/lib/cryptolib/sha2.c (right): http://codereview.chromium.org/6750016/diff/17001/firmware/lib/cryptolib/sha2.c#newcode610 firmware/lib/cryptolib/sha2.c:610: block_size = (remaining_len >= (uint32_t) UINT32_MAX) ? On 2011/03/28 ...
9 years, 9 months ago (2011-03-29 17:44:45 UTC) #7
Randall Spangler
9 years, 9 months ago (2011-03-29 19:33:21 UTC) #8
LGTM, thanks

Powered by Google App Engine
This is Rietveld 408576698