Skip to content
This repository has been archived by the owner on Dec 23, 2020. It is now read-only.

Add Blake2b #164

Merged
merged 3 commits into from
Feb 20, 2019
Merged

Add Blake2b #164

merged 3 commits into from
Feb 20, 2019

Conversation

bbedward
Copy link
Contributor

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

@stevenroose
Copy link
Member

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.

@stevenroose
Copy link
Member

In that case, I could merge this next week and put it into a release as well.

@bbedward
Copy link
Contributor Author

I'll rebase it soon, originally it was just for personal usage but I'll redo it to preserve the original commits

@stevenroose
Copy link
Member

Thanks!

jminer and others added 2 commits February 20, 2019 09:48
The implementation was ported from Bouncy Castle.
@bbedward
Copy link
Contributor Author

@stevenroose Re-based this pull request to include @jminer's commit

@@ -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) {
Copy link
Member

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.

Copy link
Contributor Author

@bbedward bbedward Feb 20, 2019

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[...]

@stevenroose stevenroose merged commit e6529de into PointyCastle:master Feb 20, 2019
@stevenroose
Copy link
Member

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants