OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library crypto.sha256; | |
6 | |
7 import 'dart:convert'; | 5 import 'dart:convert'; |
8 import 'dart:typed_data'; | 6 import 'dart:typed_data'; |
9 | 7 |
10 import 'digest.dart'; | 8 import 'digest.dart'; |
11 import 'hash.dart'; | 9 import 'hash.dart'; |
12 import 'hash_sink.dart'; | 10 import 'hash_sink.dart'; |
13 import 'utils.dart'; | 11 import 'utils.dart'; |
14 | 12 |
15 /// An instance of [SHA256]. | 13 /// An instance of [SHA256]. |
16 /// | 14 /// |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 digest[0] = add32(a, digest[0]); | 133 digest[0] = add32(a, digest[0]); |
136 digest[1] = add32(b, digest[1]); | 134 digest[1] = add32(b, digest[1]); |
137 digest[2] = add32(c, digest[2]); | 135 digest[2] = add32(c, digest[2]); |
138 digest[3] = add32(d, digest[3]); | 136 digest[3] = add32(d, digest[3]); |
139 digest[4] = add32(e, digest[4]); | 137 digest[4] = add32(e, digest[4]); |
140 digest[5] = add32(f, digest[5]); | 138 digest[5] = add32(f, digest[5]); |
141 digest[6] = add32(g, digest[6]); | 139 digest[6] = add32(g, digest[6]); |
142 digest[7] = add32(h, digest[7]); | 140 digest[7] = add32(h, digest[7]); |
143 } | 141 } |
144 } | 142 } |
OLD | NEW |