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

Side by Side Diff: pkg/crypto/lib/src/crypto_utils.dart

Issue 15820008: Remove library dart:crypto (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/crypto/lib/crypto.dart ('k') | pkg/crypto/lib/src/hash_utils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 part of dart.crypto; 5 part of dart.crypto;
6 6
7 abstract class _CryptoUtils { 7 abstract class _CryptoUtils {
8 static String bytesToHex(List<int> bytes) { 8 static String bytesToHex(List<int> bytes) {
9 var result = new StringBuffer(); 9 var result = new StringBuffer();
10 for (var part in bytes) { 10 for (var part in bytes) {
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 out[o++] = x >> 16; 152 out[o++] = x >> 16;
153 if (o < outputLen) { 153 if (o < outputLen) {
154 out[o++] = (x >> 8) & 0xFF; 154 out[o++] = (x >> 8) & 0xFF;
155 if (o < outputLen) out[o++] = x & 0xFF; 155 if (o < outputLen) out[o++] = x & 0xFF;
156 } 156 }
157 } 157 }
158 return out; 158 return out;
159 } 159 }
160 160
161 } 161 }
OLDNEW
« no previous file with comments | « pkg/crypto/lib/crypto.dart ('k') | pkg/crypto/lib/src/hash_utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698