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

Issue 10134055: Add common interface for cryptographic hash functions to lib/crypto.dart. (Closed)

Created:
8 years, 8 months ago by Mads Ager (google)
Modified:
8 years, 8 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add common interface for cryptographic hash functions to lib/crypto.dart. Implement sha1 and sha256. R=sgjesse@google.com,iposva@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=6941

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+631 lines, -135 lines) Patch
M lib/crypto/crypto.dart View 1 1 chunk +44 lines, -61 lines 0 comments Download
M lib/crypto/sha1.dart View 1 1 chunk +56 lines, -71 lines 0 comments Download
A lib/crypto/sha256.dart View 1 chunk +98 lines, -0 lines 0 comments Download
A lib/crypto/sha_utils.dart View 1 1 chunk +118 lines, -0 lines 0 comments Download
M tests/lib/src/crypto/sha1Test.dart View 1 2 chunks +13 lines, -3 lines 0 comments Download
A tests/lib/src/crypto/sha256Test.dart View 1 1 chunk +302 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mads Ager (google)
8 years, 8 months ago (2012-04-25 12:52:58 UTC) #1
Søren Gjesse
LGTM, this looks nice and clean! Maybe we should consider moving more functions to the ...
8 years, 8 months ago (2012-04-25 13:02:40 UTC) #2
Ben Laurie (Google)
https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart File lib/crypto/crypto.dart (right): https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart#newcode17 lib/crypto/crypto.dart:17: * used again. "should not"? You mean "will throw ...
8 years, 8 months ago (2012-04-25 13:17:13 UTC) #3
Mads Ager (google)
https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart File lib/crypto/crypto.dart (right): https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart#newcode17 lib/crypto/crypto.dart:17: * used again. On 2012/04/25 13:17:13, Ben Laurie (Google) ...
8 years, 8 months ago (2012-04-25 13:39:34 UTC) #4
Ivan Posva
https://chromiumcodereview.appspot.com/10134055/diff/1/tests/lib/src/crypto/sha1Test.dart File tests/lib/src/crypto/sha1Test.dart (right): https://chromiumcodereview.appspot.com/10134055/diff/1/tests/lib/src/crypto/sha1Test.dart#newcode25 tests/lib/src/crypto/sha1Test.dart:25: final expected_values = const [ On 2012/04/25 13:17:13, Ben ...
8 years, 8 months ago (2012-04-25 13:44:21 UTC) #5
Ben Laurie (Google)
On 2012/04/25 13:39:34, Mads Ager wrote: > https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart > File lib/crypto/crypto.dart (right): > > https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart#newcode17 ...
8 years, 8 months ago (2012-04-25 13:55:35 UTC) #6
Ben Laurie (Google)
https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart File lib/crypto/crypto.dart (right): https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart#newcode17 lib/crypto/crypto.dart:17: * used again. On 2012/04/25 13:39:34, Mads Ager wrote: ...
8 years, 8 months ago (2012-04-25 13:55:43 UTC) #7
Mads Ager (google)
On 2012/04/25 13:55:43, Ben Laurie (Google) wrote: > https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart > File lib/crypto/crypto.dart (right): > > ...
8 years, 8 months ago (2012-04-25 14:22:31 UTC) #8
Ben Laurie (Google)
8 years, 8 months ago (2012-04-25 14:27:26 UTC) #9
On 2012/04/25 14:22:31, Mads Ager wrote:
> On 2012/04/25 13:55:43, Ben Laurie (Google) wrote:
> >
https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart
> > File lib/crypto/crypto.dart (right):
> > 
> >
>
https://chromiumcodereview.appspot.com/10134055/diff/1/lib/crypto/crypto.dart...
> 
> Fair question. Adding reset if/when we need it at a later point will luckily
be
> easy. :)

clone() is also likely to be useful for the same reason.

Powered by Google App Engine
This is Rietveld 408576698