Skip to content

Commit f4eec74

Browse files
Merge pull request RustCrypto#5 from jkoudys/master-honeybun
Code review for Rust crypto main PR
2 parents ec89c1b + d6f6de4 commit f4eec74

File tree

6 files changed

+35
-49
lines changed

6 files changed

+35
-49
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ target/
22
*/target/
33
*/*/target/
44
*/Cargo.lock
5+
.devcontainer/

Cargo.lock

+24-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kupyna/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ description = "Kupyna (DSTU 7564:2014) hash function"
55
authors = ["RustCrypto Developers"]
66
license = "MIT OR Apache-2.0"
77
readme = "README.md"
8-
edition = "2021"
8+
edition = "2024"
99
documentation = "https://docs.rs/kupyna"
1010
repository = "https://github.com/RustCrypto/hashes"
1111
keywords = ["crypto", "hash", "kupyna"]
1212
categories = ["cryptography", "no-std"]
13-
rust-version = "1.71"
13+
rust-version = "1.85"
1414

1515
[dependencies]
1616
digest = "=0.11.0-pre.10"
17-
hex-literal = "0.4"
17+
hex-literal = "1"
1818

1919
[dev-dependencies]
2020
digest = { version = "=0.11.0-pre.10", features = ["dev"] }
21-
hex-literal = "0.4"
21+
hex-literal = "1"
2222
base16ct = { version = "0.2", features = ["alloc"] }
2323

2424
[features]
@@ -28,4 +28,3 @@ zeroize = ["digest/zeroize"]
2828

2929
[package.metadata.docs.rs]
3030
all-features = true
31-
rustdoc-args = ["--cfg", "docsrs"]

kupyna/README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
# RustCrypto: Kupyna
22

33

4+
[![crate][crate-image]][crate-link]
5+
[![Docs][docs-image]][docs-link]
46
![Apache2/MIT licensed][license-image]
57
![Rust Version][rustc-image]
68
[![Project Chat][chat-image]][chat-link]
9+
[![Build Status][build-image]][build-link]
710

811
Pure Rust implementation of the [Kupyna] cryptographic hash function defined under DSTU 7564:2014.
12+
913
## Examples
1014

1115
```rust
@@ -15,18 +19,11 @@ let mut hasher = Kupyna256::default();
1519
hasher.update(b"my message");
1620
let hash = hasher.finalize();
1721

18-
println!("Computed Hash: {:02X?}", hash);
22+
assert_eq!(hash, hex!("538e2e238142df05e954702aa75d6942cebe30d44bd514df365d13bdcb6b1458"));
1923
```
2024

2125
Also, see the [examples section] in the RustCrypto/hashes readme.
2226

23-
## Minimum Supported Rust Version
24-
25-
Rust **1.71** or higher.
26-
27-
Minimum supported Rust version can be changed in the future, but it will be
28-
done with a minor version bump.
29-
3027
## License
3128

3229
The crate is licensed under either of:

kupyna/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,4 +335,4 @@ impl SerializableState for KupynaLongVarCore {
335335
}
336336

337337
#[cfg(feature = "zeroize")]
338-
impl ZeroizeOnDrop for KupynaLongVarCore {}
338+
impl ZeroizeOnDrop for KupynaLongVarCore {}

kupyna/tests/mod.rs

-5
This file was deleted.

0 commit comments

Comments
 (0)