RustCrypto / RustCrypto/hashes

sha1-checked: hardware acceleration on arm64

Open
#909 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.