bcgit / pc-dart

Pointy Castle - Dart Derived Bouncy Castle APIs
MIT License
237 stars 122 forks source link

Improve scrypt performance #135

Closed licy183 closed 3 years ago

licy183 commented 3 years ago

In previous code, scrypt._arraycopy method calls an unnecessary Uint8List.sublist, which will make a copy of the origin Uint8List. This PR tries to use less copy and object conversion to provide a better performance.

Related issue:

134

mwcw commented 3 years ago

Hi,

Thank You for offering this patch.

I should sync later today.