Skip to content

Commit

Permalink
Merge pull request #127 from chrysn-pull-requests/crypto-as-trait-2
Browse files Browse the repository at this point in the history
refactor!: Move crypto operations into a trait.
  • Loading branch information
geonnave authored Nov 9, 2023
2 parents da310f4 + bd426ed commit 219dd0c
Show file tree
Hide file tree
Showing 18 changed files with 963 additions and 679 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ members = [
"crypto/edhoc-crypto-hacspec",
"crypto/edhoc-crypto-psa",
"crypto/edhoc-crypto-cryptocell310-sys",
"crypto/edhoc-crypto-trait",
"examples/coap",
"examples/edhoc-rs-no_std",
"examples/edhoc-rs-cc2538",
Expand Down
2 changes: 2 additions & 0 deletions crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ description = "EDHOC crypto library dispatch crate"
[dependencies]
edhoc-consts = { path = "../consts", default-features = false }

edhoc-crypto-trait.path = "./edhoc-crypto-trait"

# hacspec
edhoc-crypto-hacspec = { path = "./edhoc-crypto-hacspec", optional = true }

Expand Down
1 change: 1 addition & 0 deletions crypto/edhoc-crypto-cryptocell310-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ links = "nrf_cc310_0.9.13"

[dependencies]
edhoc-consts = { path = "../../consts" }
edhoc-crypto-trait.path = "../edhoc-crypto-trait"

[build-dependencies]
bindgen = "0.63.0"
Loading

0 comments on commit 219dd0c

Please sign in to comment.