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

Unified Diff: pkg/crypto/lib/src/sha1.dart

Issue 873273008: Convert crypto libraries to use Uint32Lists. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/crypto/lib/src/md5.dart ('k') | pkg/crypto/lib/src/sha256.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/crypto/lib/src/sha1.dart
===================================================================
--- pkg/crypto/lib/src/sha1.dart (revision 43158)
+++ pkg/crypto/lib/src/sha1.dart (working copy)
@@ -8,10 +8,10 @@
* SHA1 hash function implementation.
*/
class SHA1 extends _HashBase {
- final List<int> _w;
+ final Uint32List _w;
// Construct a SHA1 hasher object.
- SHA1() : _w = new List(80), super(16, 5, true) {
+ SHA1() : _w = new Uint32List(80), super(16, 5, true) {
_h[0] = 0x67452301;
_h[1] = 0xEFCDAB89;
_h[2] = 0x98BADCFE;
@@ -26,7 +26,7 @@
// Compute one iteration of the SHA1 algorithm with a chunk of
// 16 32-bit pieces.
- void _updateHash(List<int> m) {
+ void _updateHash(Uint32List m) {
assert(m.length == 16);
var a = _h[0];
« no previous file with comments | « pkg/crypto/lib/src/md5.dart ('k') | pkg/crypto/lib/src/sha256.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698