Fix strong mode warnings.
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//1892553002 .
diff --git a/.analysis_options b/.analysis_options
new file mode 100644
index 0000000..a10d4c5
--- /dev/null
+++ b/.analysis_options
@@ -0,0 +1,2 @@
+analyzer:
+ strong-mode: true
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 320bde6..3f3bda0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,10 @@
+## 1.1.0
+
+* `Hmac` and `Hash` now extend the new `ChunkedConverter` class from
+ `dart:convert`.
+
+* Fix all strong mode warnings.
+
## 1.0.0
* All APIs that were deprecated in 0.9.2 have been removed. No new APIs have
diff --git a/lib/src/hash.dart b/lib/src/hash.dart
index fad44ae..4049025 100644
--- a/lib/src/hash.dart
+++ b/lib/src/hash.dart
@@ -12,7 +12,8 @@
/// Every hash is a converter that takes a list of ints and returns a single
/// digest. When used in chunked mode, it will only ever add one digest to the
/// inner [Sink].
-abstract class Hash extends Converter<List<int>, Digest> {
+abstract class Hash
+ extends ChunkedConverter<List<int>, Digest, List<int>, Digest> {
/// The internal block size of the hash in bytes.
///
/// This is exposed for use by the [Hmac] class, which needs to know the block
diff --git a/lib/src/hmac.dart b/lib/src/hmac.dart
index f5bf6bf..2b38c1a 100644
--- a/lib/src/hmac.dart
+++ b/lib/src/hmac.dart
@@ -15,7 +15,7 @@
///
/// HMAC allows messages to be cryptographically authenticated using any
/// iterated cryptographic hash function.
-class Hmac extends Converter<List<int>, Digest> {
+class Hmac extends ChunkedConverter<List<int>, Digest, List<int>, Digest> {
/// The hash function used to compute the authentication digest.
final Hash _hash;
diff --git a/pubspec.yaml b/pubspec.yaml
index 4141c03..1351d12 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,10 +1,10 @@
name: crypto
-version: 1.0.0
+version: 1.1.0
author: Dart Team <misc@dartlang.org>
description: Library of cryptographic functions.
homepage: https://www.github.com/dart-lang/crypto
environment:
- sdk: '>=1.8.0 <2.0.0'
+ sdk: '>=1.16.0-dev.5.0 <2.0.0'
dependencies:
collection: '^1.0.0'
convert: '^1.0.0'