Commit Graph

2071 Commits

Author SHA1 Message Date
ager@google.com 353288b664 Update lib.status to only contain the things that are needed.
R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7639 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-15 07:30:26 +00:00
ager@google.com 0159e0a3b8 Revert "Disable crypto tests on Dartium."
R=antonm@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7609 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 13:59:55 +00:00
ager@google.com 3d246ef05f Disable crypto tests on Dartium.
DRT doesn't understand

R=antonm@google.com
BUG=dartbug.com/3042
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7606 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-14 12:34:07 +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
ngeoffray@google.com 21041489fa Implement PrimitiveOrNull types.
Review URL: https://chromiumcodereview.appspot.com//10389063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7537 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 10:25:11 +00:00
ager@google.com cc21879aef After bit-operation fixes the crypto library works with dart2js.
Only change is to avoid remaining issue that (8 >> 32) is 8 with
dart2js at this point. We restrict the length of the message to
"2^32 - 1" bits which.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7533 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-11 08:09:49 +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
rnystrom@google.com 3fbf666bd7 Revert "Using arg parsing lib for dart2js."
This reverts commit 825af47550b15b336d133ea466b3a547737e79be.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7394 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 18:54:14 +00:00
rnystrom@google.com f547fb72c8 Using arg parsing lib for dart2js.
Review URL: https://chromiumcodereview.appspot.com//10377023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7392 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-07 18:23:59 +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
rnystrom@google.com 300a0649aa First pass at a generic reusable command line option parser.
This parses robustly, displays pretty usage, and has good tests.
It is not totally feature-full yet, but this should be a good
first patch to review.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7343 260f80e4-7a28-3924-810f-c04153c831b5
2012-05-04 18:49:20 +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
antonm@google.com e4402161e4 Add #library decls to enable tests in Dartium.
R=iposva@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7079 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 13:43:13 +00:00
asiva@google.com 368163223a Turn on crypto tests back for the VM.
Review URL: https://chromiumcodereview.appspot.com//10184014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7054 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-27 01:28:27 +00:00
srdjan@google.com cb9556b23c Disable slow crypto test on Mac.
Review URL: https://chromiumcodereview.appspot.com//10238017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7044 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 21:50:09 +00:00
antonm@google.com 559b3e5a2d Suppress crypto tests.
Review URL: https://chromiumcodereview.appspot.com//10235011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7038 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 19:45:19 +00:00
ager@google.com e14782c138 Increase test coverage for sha1 and sha256 by using standard test
vectors.

R=sgjesse@google.com
BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@7009 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-26 11:42:10 +00:00
ager@google.com eb8967b5c4 Add common interface for cryptographic hash functions to lib/crypto.dart.
Implement sha1 and sha256.

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

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6941 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 14:17:45 +00:00
iposva@google.com d10d1d2cb3 - Add tests/lib to start testing libraries outside of core.
Review URL: https://chromiumcodereview.appspot.com//10197008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@6929 260f80e4-7a28-3924-810f-c04153c831b5
2012-04-25 09:13:56 +00:00