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

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

Issue 169363008: pkg/crypto: move tests to unittest package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: feedback Created 6 years, 10 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 | « pkg/crypto/lib/src/hash_utils.dart ('k') | pkg/crypto/lib/src/md5.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 ba6cc11fc9218076adc5fa19a15259fd76e662cd..a4ea193b9b137d697a2dd51a4002094909d943d0 100644
--- a/pkg/crypto/lib/src/hmac.dart
+++ b/pkg/crypto/lib/src/hmac.dart
@@ -12,12 +12,15 @@ part of crypto;
*/
// TODO(floitsch): make Hash implement Sink, EventSink or similar.
class HMAC {
+ final List<int> _message;
+ Hash _hash;
+ List<int> _key;
bool _isClosed = false;
/**
* Create an [HMAC] object from a [Hash] and a key.
*/
- HMAC(Hash this._hash, List<int> this._key) : _message = [];
+ HMAC(Hash this._hash, List<int> this._key): _message = [];
/**
* Add a list of bytes to the message.
@@ -106,9 +109,4 @@ class HMAC {
}
return result == 0;
}
-
- // HMAC internal state.
- Hash _hash;
- List<int> _key;
- final List<int> _message;
}
« no previous file with comments | « pkg/crypto/lib/src/hash_utils.dart ('k') | pkg/crypto/lib/src/md5.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698