You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.
fn main() {
let text_bytes = b"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
let hash = sha256_rs::sha256(text_bytes);
println!("Hello, world!, {:02X?}", hash);
}
Results in a panic: thread 'main' panicked at 'source slice length (256) does not match destination slice length (32)', /<REDACTED>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sha256-rs-1.0.1/src/lib.rs:112:12
The text was updated successfully, but these errors were encountered:
sha256
fails already on moderately sized arrays:Results in a panic:
thread 'main' panicked at 'source slice length (256) does not match destination slice length (32)', /<REDACTED>/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sha256-rs-1.0.1/src/lib.rs:112:12
The text was updated successfully, but these errors were encountered: