Skip to content

Commit

Permalink
Fix pow producing too big integers for js
Browse files Browse the repository at this point in the history
  • Loading branch information
adracus committed Feb 19, 2015
1 parent 9c622df commit 0367f95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/rsa_pkcs1.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int _bigIntToInt(BigInteger big) {
}

Uint8List i2osp(BigInteger x, int len) {
if (null != len && x >= new BigInteger(pow(256, len)))
if (null != len && x >= new BigInteger(256).pow(len))
throw new ArgumentError("integer too large");

var b;
Expand Down

0 comments on commit 0367f95

Please sign in to comment.