Skip to content

Commit ff2b46e

Browse files
fsb: fix AlgorithmName implementations (#928)
1 parent 138dc5a commit ff2b46e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎fsb/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ 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.2.1 (UNRELEASED)
9+
### Fixed
10+
- `AlgorithmName` implementations ([#928])
11+
12+
[#928]: https://github.com/RustCrypto/hashes/pull/928
13+
814
## 0.2.0 (2026-03-27)
915
### Added
1016
- `alloc` crate feature ([#678])

‎fsb/src/block_api.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use digest::{
1212

1313
macro_rules! fsb_impl {
1414
(
15-
$state:ident, $block_size:ident, $output_size:ident, $state_size:ident,
15+
$full_state:ident, $state:ident, $block_size:ident, $output_size:ident, $state_size:ident,
1616
$n:expr, $w:expr, $r:expr, $p:expr, $s:expr, $doc:expr,
1717
) => {
1818
use digest::consts::{$block_size, $output_size, $state_size};
@@ -333,6 +333,7 @@ macro_rules! fsb_impl {
333333
}
334334

335335
fsb_impl!(
336+
Fsb160,
336337
Fsb160Core,
337338
U60,
338339
U20,
@@ -345,6 +346,7 @@ fsb_impl!(
345346
"Core FSB-160 hasher state",
346347
);
347348
fsb_impl!(
349+
Fsb224,
348350
Fsb224Core,
349351
U84,
350352
U28,
@@ -357,6 +359,7 @@ fsb_impl!(
357359
"Core FSB-224 hasher state",
358360
);
359361
fsb_impl!(
362+
Fsb256,
360363
Fsb256Core,
361364
U96,
362365
U32,
@@ -369,6 +372,7 @@ fsb_impl!(
369372
"Core FSB-256 hasher state",
370373
);
371374
fsb_impl!(
375+
Fsb384,
372376
Fsb384Core,
373377
U115,
374378
U48,
@@ -381,6 +385,7 @@ fsb_impl!(
381385
"Core FSB-384 hasher state",
382386
);
383387
fsb_impl!(
388+
Fsb512,
384389
Fsb512Core,
385390
U155,
386391
U64,

0 commit comments

Comments
 (0)