DaGenix / rust-crypto

A (mostly) pure-Rust implementation of various cryptographic algorithms.
Apache License 2.0
1.39k stars 295 forks source link

Fix blake2b errors #353

Closed DaGenix closed 8 years ago

DaGenix commented 8 years ago

Blake2b could calculate incorrect digests due to two errors:

1) It was accidentally using a temporary buffer in the finalize() method. 2) The reset() method did not take the key or params into account in all circumstances.

FYI: @PeterReid