| 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'); | 5 #library('dart:crypto'); |
| 6 | 6 |
| 7 #source('crypto_utils.dart'); | 7 #source('crypto_utils.dart'); |
| 8 #source('hash_utils.dart'); | 8 #source('hash_utils.dart'); |
| 9 #source('hmac.dart'); | 9 #source('hmac.dart'); |
| 10 #source('md5.dart'); | 10 #source('md5.dart'); |
| 11 #source('sha1.dart'); | 11 #source('sha1.dart'); |
| 12 #source('sha256.dart'); | 12 #source('sha256.dart'); |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Interface for cryptographic hash functions. | 15 * Interface for cryptographic hash functions. |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 /** | 120 /** |
| 121 * HashExceptions are thrown on invalid use of a Hash | 121 * HashExceptions are thrown on invalid use of a Hash |
| 122 * object. | 122 * object. |
| 123 */ | 123 */ |
| 124 class HashException { | 124 class HashException { |
| 125 HashException(String this.message); | 125 HashException(String this.message); |
| 126 toString() => "HashException: $message"; | 126 toString() => "HashException: $message"; |
| 127 String message; | 127 String message; |
| 128 } | 128 } |
| 129 | 129 |
| OLD | NEW |