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

Side by Side Diff: runtime/lib/crypto/crypto_vm.dart

Issue 11368124: Fix library syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
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 // TODO(ager, iposva): Get rid of this file when the VM snapshot 5 // TODO(ager, iposva): Get rid of this file when the VM snapshot
6 // generation can deal with normal library structure. 6 // generation can deal with normal library structure.
7 7
8 #library('crypto'); 8 library crypto;
9 9
10 #import('dart:math'); 10 import 'dart:math';
11 11
12 /** 12 /**
13 * Interface for cryptographic hash functions. 13 * Interface for cryptographic hash functions.
14 * 14 *
15 * The [update] method is used to add data to the hash. The [digest] method 15 * The [update] method is used to add data to the hash. The [digest] method
16 * is used to extract the message digest. 16 * is used to extract the message digest.
17 * 17 *
18 * Once the [digest] method has been called no more data can be added using the 18 * Once the [digest] method has been called no more data can be added using the
19 * [update] method. If [update] is called after the first call to [digest] a 19 * [update] method. If [update] is called after the first call to [digest] a
20 * HashException is thrown. 20 * HashException is thrown.
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 /** 118 /**
119 * HashExceptions are thrown on invalid use of a Hash 119 * HashExceptions are thrown on invalid use of a Hash
120 * object. 120 * object.
121 */ 121 */
122 class HashException { 122 class HashException {
123 HashException(String this.message); 123 HashException(String this.message);
124 toString() => "HashException: $message"; 124 toString() => "HashException: $message";
125 String message; 125 String message;
126 } 126 }
127 127
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698