Skip to content

Commit ce3a2a9

Browse files
committed
bash-hash: review fixes + add tests
1 parent 24cb224 commit ce3a2a9

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

.github/workflows/bash-hash.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: belt-hash
1+
name: bash-hash
22

33
on:
44
pull_request:

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.

bash-hash/CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
## 0.1.0 (UNRELEASED)
1010
- Initial release ([#1])
1111

12-
# TODO: Insert link
13-
[#1]: https://github.com/RustCrypto/hashes/pull/416
12+
[#1]: https://github.com/RustCrypto/hashes/pull/745

bash-hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bash-hash"
3-
version = "0.2.0-rc.1"
3+
version = "0.1.0"
44
description = "bash hash function (STB 34.101.77-2020)"
55
authors = ["RustCrypto Developers"]
66
license = "MIT OR Apache-2.0"

bash-hash/LICENSE-MIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022-2025 The RustCrypto Project Developers
1+
Copyright (c) 2025 The RustCrypto Project Developers
22

33
Permission is hereby granted, free of charge, to any
44
person obtaining a copy of this software and associated
320 Bytes
Binary file not shown.
288 Bytes
Binary file not shown.
256 Bytes
Binary file not shown.

bash-hash/tests/mod.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,20 @@ test_bash_rand!(
2929
bash384_rand,
3030
BashHash384,
3131
hex!(
32-
"3a2932e47780b88aab04c33e0df3c9f53035e4e47daa89e5f8dddf43f4b21c2073d36887684245b87042661c0a3bb8ce"
32+
"3a2932e47780b88aab04c33e0df3c9f53035e4e47daa89e5f8dddf43f4b21c20
33+
73d36887684245b87042661c0a3bb8ce"
3334
)
3435
);
3536

3637
test_bash_rand!(
3738
bash512_rand,
3839
BashHash512,
3940
hex!(
40-
"f85aacf9fb6fe864d86604fb8d93485b533f29d874b49cd5521ad8afb1c11e8b710f8469b95c6af39147a132787801d194473d1bd7ce24fc23e97dc182bf8a9f"
41+
"f85aacf9fb6fe864d86604fb8d93485b533f29d874b49cd5521ad8afb1c11e8b
42+
710f8469b95c6af39147a132787801d194473d1bd7ce24fc23e97dc182bf8a9f"
4143
)
4244
);
4345

44-
// TODO: Implement the serialization tests (ask about the serialization data)
45-
// digest::hash_serialization_test!(bash256_serialization, BashHash256);
46-
// digest::hash_serialization_test!(bash384_serialization, BashHash384);
47-
// digest::hash_serialization_test!(bash512_serialization, BashHash512);
46+
digest::hash_serialization_test!(bash256_serialization, BashHash256);
47+
digest::hash_serialization_test!(bash384_serialization, BashHash384);
48+
digest::hash_serialization_test!(bash512_serialization, BashHash512);

0 commit comments

Comments
 (0)