RustCrypto / RustCrypto/hybrid-array
the trait `LowerHex` and `UpperHex` is not implemented for `Array`
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 23
- Forks
- 25
- Avg merge
- 1h 46m
- Merged PRs (30d)
- 1
Description
Example for LowerHex
In 0.10.9 this works but not in 0.11.0
use sha2::{Sha512, Digest}; // 0.10.9
fn main() {
let sha512 = format!("{:x}", Sha512::digest(&[1, 2, 3, 4, 5]));
println!("{}", sha512);
}
use sha2::{Sha512, Digest}; // 0.11.0
fn main() {
let sha512 = format!("{:x}", Sha512::digest(&[1, 2, 3, 4, 5])); /// ERROR
println!("{}", sha512);
}
Is that normal ?
Thanks
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the two Rust examples in the issue and compare the formatting behavior between versions 0.10.9 and 0.11.0. Trace the Array type used by Sha512::digest and its formatting support; done means both LowerHex and UpperHex formatting work for the digest output in 0.11.0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 50/100