RustCrypto / RustCrypto/hashes
sha1-checked: hardware acceleration on arm64
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 340
- Avg merge
- 12h 31m
- Merged PRs (30d)
- 2
Description
Hi everyone!
For a project I'm currently working with sha1-checked and have integrated the hardware acceleration available on arm64 for about ~2.2-2.4x better performance compared to the baseline, and landing within ~25% of plain unchecked SHA-1.
The downside is that it needs a little bit of unsafe code around the core::arch::aarch64 instrinsics, as well as a bit more complexity due to the runtime feature detection and branching.
Would there be interest in me upstreaming these changes?
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 reviewing the sha1-checked implementation and the proposed core::arch::aarch64 intrinsics integration, including its unsafe boundaries and runtime feature detection. Compare the arm64 results with the stated baseline and unchecked SHA-1 performance; done requires an agreed upstream approach and corresponding implementation details.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography, performance
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100