Consider Migrating use of BigInteger to dart sdk BigInt
wstrange opened this issue · 4 comments
That would be great. I think I can do that if I find an hour somewhere. Will also try to see if the lib complies with strong mode and other Dart v2 stuffs. Even though the Dart v2 tooling still confuses me..
I made a bunch of quick and dirty dart 2 fixes and bumped the version to 0.4.3. I didn't tackle any BigInt conversion.
There is one test that is failing in bigint_test.dart. I had to comment it out (see line 167) to get it to pass. If you have an hour or so to look at it that would be awesome.
FWIW, we would have the same issue as PointyCastle: dart-lang/sdk#32803.
For PointyCastle, I implemented (very inefficient) placeholders for those two functions, hoping the Dart team implements them soon.
I added those BigInt utility functions to asn1util, but didn't get any further than that. See branch https://github.com/wstrange/asn1lib/tree/bigint