Skip to content

Commit 23cb7ae

Browse files
Rust wrapper: add cipher trait support
1 parent 873bc05 commit 23cb7ae

5 files changed

Lines changed: 1371 additions & 2 deletions

File tree

wrapper/rust/wolfssl-wolfcrypt/Cargo.lock

Lines changed: 39 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wrapper/rust/wolfssl-wolfcrypt/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ readme = "README.md"
1414
std = []
1515
rand_core = ["dep:rand_core"]
1616
aead = ["dep:aead"]
17+
cipher = ["dep:cipher"]
1718

1819
[dependencies]
1920
rand_core = { version = "0.10", optional = true, default-features = false }
2021
aead = { version = "0.5", optional = true, default-features = false }
22+
cipher = { version = "0.5", optional = true, default-features = false }
2123

2224
[dev-dependencies]
2325
aead = { version = "0.5", features = ["alloc", "dev"] }
26+
cipher = "0.5"
2427

2528
[build-dependencies]
2629
bindgen = "0.72.1"

wrapper/rust/wolfssl-wolfcrypt/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FEATURES := rand_core,aead
1+
FEATURES := rand_core,aead,cipher
22
CARGO_FEATURE_FLAGS := --features $(FEATURES)
33

44
.PHONY: all

0 commit comments

Comments
 (0)