Index: tests/lib/crypto/hmac_sha1_test.dart |
diff --git a/tests/lib/crypto/hmac_sha1_test.dart b/tests/lib/crypto/hmac_sha1_test.dart |
index 1aec85d0199141b50582087d6df3ffbc0d2451bc..8a87ceb2c982f852449ca4e6f7d537592cf20fc5 100644 |
--- a/tests/lib/crypto/hmac_sha1_test.dart |
+++ b/tests/lib/crypto/hmac_sha1_test.dart |
@@ -11,7 +11,9 @@ part 'hmac_sha1_test_vectors.dart'; |
void testStandardVectors(inputs, keys, macs) { |
for (var i = 0; i < inputs.length; i++) { |
- var d = new HMAC(new SHA1(), keys[i]).update(inputs[i]).digest(); |
+ var hmac = new HMAC(new SHA1(), keys[i]); |
+ hmac.add(inputs[i]); |
+ var d = hmac.close(); |
Expect.isTrue(CryptoUtils.bytesToHex(d).startsWith(macs[i]), '$i'); |
} |
} |