Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sha2/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.11.2 (UNRELEASED)
### Fixed
- SHA-512 `riscv-zknh` backend selection ([#935])

[#935]: https://github.com/RustCrypto/hashes/pull/935

## 0.11.1 (2026-10-12)
### Changed
- Removed workaround for unaligned loads in `riscv-zknh` backend ([#879])
Expand Down
2 changes: 1 addition & 1 deletion sha2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
any(
sha2_backend = "riscv-zknh",
sha2_256_backend = "riscv-zknh",
sha2_256_backend = "riscv-zknh",
sha2_512_backend = "riscv-zknh",
),
feature(riscv_ext_intrinsics)
)]
Expand Down
4 changes: 2 additions & 2 deletions sha2/src/sha512.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cfg_if::cfg_if! {
if #[cfg(any(sha2_backend = "soft", sha2_256_backend = "soft"))] {
if #[cfg(any(sha2_backend = "soft", sha2_512_backend = "soft"))] {
mod soft;
use soft::compress;
} else if #[cfg(any(sha2_backend = "riscv-zknh", sha2_256_backend = "riscv-zknh"))] {
} else if #[cfg(any(sha2_backend = "riscv-zknh", sha2_512_backend = "riscv-zknh"))] {
mod riscv_zknh;

#[cfg(not(target_feature = "zknh"))]
Expand Down
Loading