Chromium Code Reviews

Unified Diff: pkg/crypto/lib/src/hmac.dart

Issue 23619068: pkg/crypto: tighten up (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « pkg/crypto/lib/src/hash_utils.dart ('k') | pkg/crypto/lib/src/sha256.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/crypto/lib/src/hmac.dart
diff --git a/pkg/crypto/lib/src/hmac.dart b/pkg/crypto/lib/src/hmac.dart
index 59c177109497d52a6319baa2a60f81765d628a0b..ba6cc11fc9218076adc5fa19a15259fd76e662cd 100644
--- a/pkg/crypto/lib/src/hmac.dart
+++ b/pkg/crypto/lib/src/hmac.dart
@@ -22,7 +22,7 @@ class HMAC {
/**
* Add a list of bytes to the message.
*/
- add(List<int> data) {
+ void add(List<int> data) {
if (_isClosed) throw new StateError("HMAC is closed");
_message.addAll(data);
}
@@ -110,5 +110,5 @@ class HMAC {
// HMAC internal state.
Hash _hash;
List<int> _key;
- List<int> _message;
+ final List<int> _message;
}
« no previous file with comments | « pkg/crypto/lib/src/hash_utils.dart ('k') | pkg/crypto/lib/src/sha256.dart » ('j') | no next file with comments »

Powered by Google App Engine