Skip to content

Commit 59269ed

Browse files
authored
sha-1 v0.9.7 (#290)
1 parent 1b4a55c commit 59269ed

File tree

5 files changed

+32
-5
lines changed

5 files changed

+32
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sha1/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.9.7 (2021-07-18)
9+
### Changed
10+
- Make `aarch64` CPU feature detection OS-independent ([#276])
11+
- Bump `sha1-asm` to v0.5; support ARMv8 Crypto Extensions on Apple targets ([#289])
12+
13+
[#276]: https://github.com/RustCrypto/hashes/pull/276
14+
[#289]: https://github.com/RustCrypto/hashes/pull/289
15+
816
## 0.9.6 (2021-05-11)
917
### Changed
1018
- Use `cpufeatures` to detect intrinsics support on `aarch64` targets ([#268])

sha1/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sha-1"
3-
version = "0.9.6"
3+
version = "0.9.7"
44
description = "SHA-1 hash function"
55
authors = ["RustCrypto Developers"]
66
license = "MIT OR Apache-2.0"

sha1/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ Pure Rust implementation of the [SHA-1 hash function][1].
1111

1212
[Documentation][docs-link]
1313

14+
## 🚨 Warning: Cryptographically Broken 🚨
15+
16+
The SHA-1 hash function should be considered cryptographically broken and
17+
unsuitable for further use in any security critical capacity, as it is
18+
[practically vulnerable to chosen-prefix collisions][2].
19+
20+
We provide this crate for legacy interoperability purposes only.
21+
1422
## Minimum Supported Rust Version
1523

1624
Rust **1.41** or higher.
@@ -54,3 +62,4 @@ dual licensed as above, without any additional terms or conditions.
5462
[//]: # (general links)
5563

5664
[1]: https://en.wikipedia.org/wiki/SHA-1
65+
[2]: https://sha-mbles.github.io/

sha1/src/lib.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
//! An implementation of the [SHA-1][1] cryptographic hash algorithm.
1+
//! Pure Rust implementation of the [SHA-1][1] cryptographic hash algorithm
2+
//! with optional hardware-specific optimizations.
3+
//!
4+
//! # 🚨 Warning: Cryptographically Broken! 🚨
5+
//!
6+
//! The SHA-1 hash function should be considered cryptographically broken and
7+
//! unsuitable for further use in any security critical capacity, as it is
8+
//! [practically vulnerable to chosen-prefix collisions][2].
9+
//!
10+
//! We provide this crate for legacy interoperability purposes only.
211
//!
312
//! # Usage
413
//!
@@ -18,10 +27,11 @@
1827
//! assert_eq!(result[..], hex!("2aae6c35c94fcfb415dbe95f408b9ce91ee846ed"));
1928
//! ```
2029
//!
21-
//! Also see [RustCrypto/hashes][2] readme.
30+
//! Also see [RustCrypto/hashes][3] readme.
2231
//!
2332
//! [1]: https://en.wikipedia.org/wiki/SHA-1
24-
//! [2]: https://github.com/RustCrypto/hashes
33+
//! [2]: https://sha-mbles.github.io/
34+
//! [3]: https://github.com/RustCrypto/hashes
2535
2636
#![no_std]
2737
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)