-
Notifications
You must be signed in to change notification settings - Fork 73
Conversation
Hmm, it'd be nice if this PR could work on top of the commits from #113. Both to give credit to the original author and to have the name of the implementer on top of the commit in case someone has questions about it later. |
In that case, I could merge this next week and put it into a release as well. |
I'll rebase it soon, originally it was just for personal usage but I'll redo it to preserve the original commits |
Thanks! |
The implementation was ported from Bouncy Castle.
@stevenroose Re-based this pull request to include @jminer's commit |
test/test/digest_tests.dart
Outdated
@@ -31,5 +33,14 @@ void _runDigestTest( | |||
var out = digest.process(plainText); | |||
var hexOut = formatBytesAsHexString(out); | |||
|
|||
expect(hexOut, equals(expectedHexDigestText)); | |||
|
|||
f or(var i = 0; i < plainText.length; ++i) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a type on this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pushed fix,
also confirmed test passes
00:00 +31: Blake2b: digest: (empty string)
00:00 +32: Blake2b: digest: Lorem ipsum dolor sit amet[...]
00:00 +33: Blake2b: digest: En un lugar de La Mancha, [...]
00:00 +34: Blake2b: digest: Lorem ipsum dolor sit amet[...]
00:00 +35: Blake2b: digest: Lorem ipsum dolor sit amet[...]
Thanks! |
This is a rebase of #113.
I'm using this for a flutter crypto currency wallet I'm working on, as seen implemented in this package: https://github.com/bbedward/flutter_nano_core