Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

@GarmashAlex GarmashAlex commented Feb 12, 2026

AlgorithmName::write_alg_name used OS::USIZE which is the output size in bytes (32, 48, 64), producing names like "BashHash32" instead of "BashHash256". This is inconsistent with the official naming from STB 34.101.77 (reference impl uses bash256/bash384/bash512), the public type aliases (BashHash256, BashHash384, BashHash512), and the RustCrypto convention of using bit sizes in algorithm names.

Fixed by changing OS::USIZE to OS::USIZE * 8. Added test that verifies the Debug output contains correct bit-sized names.

@newpavlov newpavlov merged commit e0c089c into RustCrypto:master Feb 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants