Commit Graph

7 Commits

Author SHA1 Message Date
ager@google.com e943ed9998 Add base 64 encoding to the crypto library utils.
It is clearly useful for Crypto APIs. Whether or not we should move
base64 encoding somewhere else can be discussed. However, at least
it is available now.

R=sgjesse@google.com
BUG=dartbug.com/2458
TEST=tests/lib/crypto/base64_test.dart

Review URL: https://chromiumcodereview.appspot.com//10456028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8108 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-30 15:16:06 +00:00
ager@google.com b6e35655cf Make the crypto library an official dart:crypto library.
The library now works on dart2js and on the VM.

Add the library to the API docs and to the sdk.

R=iposva@google.com,dgrove@google.com,kasperl@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10332109

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7604 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 11:20:56 +00:00
ager@google.com 7a29f7b569 Implement md5 hash in crypto library.
It might be nicer to leave it out because we do not want to
encourage its use. On the other hand, there are multiple
places where md5 hashing is used so making it available
seems like the right thing to do.

R=sgjesse@google.com,benl@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10351008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7406 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-08 08:32:52 +00:00
ager@google.com 2093c28840 Add CryptoUtils class.
Currently only contains digestToHex to convert a message digest to a hex string.

R=sgjesse@google.com
BUG=dartbug.com/2839
TEST=

Review URL: https://chromiumcodereview.appspot.com//10383041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7384 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 14:34:56 +00:00
ager@google.com 03b9fb77c3 Add library tags to allow Dartium to run the crypto tests.
R=sgjesse@google.com

Review URL: https://chromiumcodereview.appspot.com//10273004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7148 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-30 10:31:03 +00:00
ager@google.com a51e9e3591 Implement HMAC support in lib/crypto.
R=sgjesse@google.com,benl@google.com
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10170027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7145 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-30 09:54:59 +00:00
sigmund@google.com 45efebba9a test rename overhaul: step 10 - crypto tests, and add back other tests commited
recently, but just before the rename overhaul.

Review URL: https://chromiumcodereview.appspot.com//10229002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7115 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-28 00:12:28 +00:00