#assembly #sha-1

no-std sha1-asm

Assembly implementation of SHA-1 compression function

13 releases

0.5.3 May 7, 2024
0.5.2 Aug 7, 2023
0.5.1 Jul 16, 2021
0.5.0 Feb 9, 2021
0.4.0 Jun 13, 2017

#2655 in Cryptography

Download history 50509/week @ 2024-07-21 38379/week @ 2024-07-28 44951/week @ 2024-08-04 54926/week @ 2024-08-11 39472/week @ 2024-08-18 50312/week @ 2024-08-25 59547/week @ 2024-09-01 29469/week @ 2024-09-08 16406/week @ 2024-09-15 17084/week @ 2024-09-22 19344/week @ 2024-09-29 19631/week @ 2024-10-06 21827/week @ 2024-10-13 20373/week @ 2024-10-20 20166/week @ 2024-10-27 18909/week @ 2024-11-03

82,328 downloads per month
Used in 142 crates (2 directly)

MIT license

30KB
636 lines

RustCrypto: ASM hashes Rust Version Project Chat dependency status

Assembly implementations of hash functions core functionality based on code from Project Nayuki.

Crates in this repository provide only core compression functions, for full hash functionality please refer to the crates from RustCrypto/hashes repository. With enabled asm feature md5, sha-1, sha2 and whirlpool crates will use code from this repository.

NOTE: this repo is in maintenance mode only

Now that inline assembly is stable (as of Rust 1.59), assembly should be added directly to the relevant crates at https://github.com/RustCrypto/hashes.

For more information, see #45.

Supported Platforms

All crates are tested on the following platforms:

  • Linux (32-bit and 64-bit x86)
  • Windows (64-bit x86, GNU only)
  • ARM64 (except md5, which is x86 only)

Windows MSVC builds are known to be broken. See #17.

Minimum Supported Rust Version

All crates in this repository support Rust 1.43 or higher.

In the future when the minimum supported Rust version is changed, it will be accompanied by a minor version bump.

License

All crates licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Assembly implementation of the SHA-1 compression function.

This crate is not intended for direct use, most users should prefer the sha-1 crate with enabled asm feature instead.

Only x86, x86-64, and AArch64 architectures are currently supported.

No runtime deps

~0–280KB