PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
271 stars 75 forks source link

dart version ? #165

Open fly512 opened 5 years ago

fly512 commented 5 years ago

lib/asymmetric/oaep.dart:212:31: Error: The method '&' isn't defined for the class 'dart.core::bool'. Try correcting the name to the name of an existing method, or defining a method named '&'. if ((block[index] != 0) & (start == block.length)) {

duncanhoggan commented 5 years ago

Please provide more information regarding your environment, versions etc. If you are using flutter the flutter doctor -v output would be appreciated.

Based on the error you are using dart v1, please feel free to submit a PR for changes.

cupill commented 5 years ago

Same issue here, using Dart VM version: 2.0.0 (Fri Aug 3 10:53:23 2018 +0200) on "windows_x64" So not using Flutter Problem is bools do not handle the binary operators & and | Works by changing simple | and & to double || and && in lib\asymmetric\oaep.dart lines 212, 217 and 220