We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, on Windows a call to write_all after finish causes panic.
write_all
finish
Example:
use crypto_hash::{Algorithm, Hasher}; use std::io::Write; fn main() { let mut hasher = Hasher::new(Algorithm::MD5); let message1 = b"Hello"; hasher.write_all(message1).unwrap(); let _hash1 = hasher.finish(); let message2 = b"world!"; hasher.write_all(message2).unwrap(); let _hash2 = hasher.finish(); }
This is caused by the misusage of the Windows CryptoAPI. As stated here in the Microsoft documentation:
The hash value can be retrieved by using CryptGetHashParam [...] After one of the functions from this list has been called, CryptHashData and CryptHashSessionKey cannot be called.
After one of the functions from this list has been called, CryptHashData and CryptHashSessionKey cannot be called.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, on Windows a call to
write_all
afterfinish
causes panic.Example:
This is caused by the misusage of the Windows CryptoAPI.
As stated here in the Microsoft documentation:
The text was updated successfully, but these errors were encountered: