| 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];
|
|
|