These reviews are from cargo-vet. To add your review, set up cargo-vet and submit your URL to its registry.

The current version of SHA-2 is 0.11.0-pre.4.

0.10.8 (older version) unknown

From kornelski/crev-proofs copy of salsa.debian.org.

Only in debcargo (unstable). Changelog:

  • Team upload.
  • Package sha2 0.10.8 from crates.io using debcargo 2.6.1 (Closes: #1054250)
  • Bump hex-literal dev-dependency to 0.4.

0.10.7 — diff review from 0.10.6 only (older version) safe-to-deploy

From zcash/rust-ecosystem copy of zcash/zcash. By str4d.

The new unsafe assembly backend only uses aarch64 intrinsics, via their typed Rust APIs (aside from the SHA2-specific intrinsics that are not in Rust yet). I did not perform a cryptographic review, but the code to load from and store into the function arguments looks correct.

cargo-vet does not verify reviewers' identity. You have to fully trust the source the audits are from.

safe-to-deploy (implies safe-to-run)

This crate will not introduce a serious security vulnerability to production software exposed to untrusted input. More…

safe-to-run
Implied by other criteria

This crate can be compiled, run, and tested on a local workstation or in controlled automation without surprising consequences. More…

unknown

May have been packaged automatically without a review


These reviews are from Crev, a distributed system for code reviews. To add your review, set up cargo-crev.

The current version of SHA-2 is 0.11.0-pre.4.

0.9.8 (older version) Rating: Positive Thoroughness: None Understanding: None

by vlad20012 on 2021-09-18

This version fixes a major bug introduced in the previous version 0.9.7

  • Issue: High (RUSTSEC-2021-0100)

    The v0.9.7 release of the sha2 crate introduced a new AVX2-accelerated backend which was automatically enabled for all x86/x86_64 CPUs where AVX2 support was autodetected at runtime.

    This backend was buggy and would miscompute results for long messages (i.e. messages spanning multiple SHA blocks).

    The crate has since been yanked, but any users who upgraded to v0.9.7 should immediately upgrade to v0.9.8 and recompute any hashes which were previously computed by v0.9.7.

0.8.0 (older version) Rating: Positive Thoroughness: None Understanding: Medium

Approved without comment by kornelski on 2019-01-06


Lib.rs has been able to verify that all files in the crate's tarball are in the crate's repository. Please note that this check is still in beta, and absence of this confirmation does not mean that the files don't match.

Crates in the crates.io registry are tarball snapshots uploaded by crates' publishers. The registry is not using crates' git repositories, so there is a possibility that published crates have a misleading repository URL, or contain different code from the code in the repository.

To review the actual code of the crate, it's best to use cargo crev open sha2. Alternatively, you can download the tarball of sha2 v0.11.0-pre.4 or view the source online.