luckykellan / dart_sm

基于Dart语言实现的国密SM2、SM3、SM4算法。
Apache License 2.0
34 stars 8 forks source link

Flutter web无法使用SM3 #6

Open mikiller opened 1 year ago

mikiller commented 1 year ago

你好,flutter web项目,调用SM3.hash(data);报错“Unsupported operation: Uint64 accessor not supported by dart2js.” When the exception was thrown, this was the stack: dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/errors.dart 288:49 throw dart-sdk/lib/_internal/js_dev_runtime/private/native_typed_data.dart 646:5 setUint64] packages/dart_sm/src/sm3.dart 17:15 hashBytesToBytes packages/dart_sm/src/sm3.dart 108:37 hash 请问怎么解决?

luckykellan commented 1 year ago

感谢反馈,因为在dart的js环境中不支持64位整数,也就是Uint64。 这周会尝试解决,进度会同步到这里

willwGit commented 7 months ago

感谢反馈,因为在dart的js环境中不支持64位整数,也就是Uint64。 这周会尝试解决,进度会同步到这里

24年啦,兄弟,我也碰到这个问题了 @luckykellan

luckykellan commented 7 months ago

已完成,更新到0.1.5版本