Skip to content

Commit

Permalink
KEM: Updated HPKE deps for testing (#1090)
Browse files Browse the repository at this point in the history
  • Loading branch information
rozbb committed Aug 22, 2022
1 parent 48bd970 commit 652088f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 9 additions & 7 deletions kem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ p256 = { version = "0.9", features = [ "ecdsa" ] }
pqcrypto = { version = "0.15", default-features = false, features = [ "pqcrypto-saber" ] }
pqcrypto-traits = "0.3"

# rust-hpke causes compilation issues, so it's temporarily disabled, see:
# https://github.com/RustCrypto/traits/pull/1088
# [dev-dependencies.hpke]
# git = "https://github.com/rozbb/rust-hpke"
# rev = "9230db267819f5795a47510139f4f1a60688ce82"
# default-features = false
# features = [ "x25519" ]
# We use an hpke commit that pulls in x25519-dalek v2.0.0-pre.1. This is necessary because all the
# modern crates (including this one) use zeroize >1.3, which is incompatible with the previous
# x25519-dalek version. Once the next x25519-dalek version is cut, the next hpke version will be
# cut, and this commit-based dependency can go away.
[dev-dependencies.hpke]
git = "https://github.com/rozbb/rust-hpke"
rev = "18eda000f27a871f360c283b30407a95169d7d58"
default-features = false
features = [ "x25519" ]

[features]
default = []
Expand Down
2 changes: 0 additions & 2 deletions kem/tests/hpke.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#![cfg(disable_hpke)]

use hpke::{
kem::{Kem as KemTrait, X25519HkdfSha256},
Deserializable as HpkeDeserializable, Serializable as HpkeSerializable,
Expand Down

0 comments on commit 652088f

Please sign in to comment.