Skip to content

Commit

Permalink
Add security module (optional feature): With Block Integrity Block de…
Browse files Browse the repository at this point in the history
…fined in RFC 9172 and a test case defined in RFC 9173
  • Loading branch information
PatrickGarvey committed Mar 29, 2024
1 parent b39118c commit 6f51efe
Show file tree
Hide file tree
Showing 4 changed files with 895 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ harness = false
default = ["binary-build"]
binary-build = ["instant"]
benchmark-helpers = ["instant"]
bpsec = ["dep:sha2", "dep:hmac", "dep:hex-literal"]

[dependencies]
humantime = "2.1.0"
Expand All @@ -45,6 +46,11 @@ crc = "3.0.1"
thiserror = "1.0.23"
bitflags = "2.2.1"

# bpsec dependencies
sha2 = { version ="0.10.6", optional = true }
hmac = { version ="0.12.1", optional = true }
hex-literal = { version ="0.3.4", optional = true }

# non wasm config

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub mod ffi;
pub mod flags;
pub mod helpers;
pub mod primary;
#[cfg(feature = "bpsec")]
pub mod security;

#[cfg(target_arch = "wasm32")]
pub mod wasm;
Expand Down
Loading

0 comments on commit 6f51efe

Please sign in to comment.