Added blake2 support

creating a pull request for discussion
would be nice not to have the magic number here, but that's an existing problem