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

Unified Diff: CHANGELOG.md

Issue 1355223002: Change Hash subclasses to be Converters. (Closed) Base URL: git@github.com:dart-lang/crypto.git@master
Patch Set: Code review changes Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | lib/src/digest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: CHANGELOG.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ccbe390fff6bcb5c24d788f56e76c65ea5ee8dcc..8efbd20f14ba54a0a35daeb68b15116ea881a432 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,10 +1,24 @@
-# Changelog
+## 0.9.2
-## next
+* `Hash`, `MD5`, `SHA1`, and `SHA256` now implement `Converter`. They convert
+ between `List<int>`s and the new `Digest` class, which represents a hash
+ digest. The `Converter` APIs—`Hash.convert()` and
+ `Hash.startChunkedConversion`—should be used in preference to the old APIs,
+ which are now deprecated.
-* Hashing (md5, sha1, sha256) now works correctly for input sizes
- up to 64 bits.
-* Small example added to generate message digests for files.
+* Top-level `sha1`, `sha256`, and `md5` fields have been added to make it easier
+ to use those hash algorithms without having to instantiate new instances.
+
+* Hashing now works correctly for input sizes up to 2^64 bytes.
+
+### Deprecations
+
+* `Hash.add`, `Hash.close`, and `Hash.newInstance` are deprecated.
+ `Hash.convert` should be used for hashing single values, and
+ `Hash.startChunkedConversion` should be used for hashing streamed values.
+
+* `new SHA1()`, `new SHA256()`, and `new MD5()` are deprecated. Use the
+ top-level `sha1`, `sha256`, and `md5` fields instead.
## 0.9.1
« no previous file with comments | « no previous file | lib/src/digest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698