Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated x25519-dalek dependency to 2.0.0 #46

Merged
merged 6 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

### Removals

* Removed the redundant re-export of the first encapsulated key type as `kem::EncappedKey`

### Changes

* Updated `x25519-dalek` to 2.0

## [0.10.0] - 2022-10-01

### Additions
Expand Down
7 changes: 1 addition & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,9 @@ p384 = { version = "0.13", default-features = false, features = ["arithmetic", "
sha2 = { version = "0.10", default-features = false }
serde = { version = "1.0", default-features = false, optional = true }
subtle = { version = "2.4", default-features = false }
x25519-dalek = { version = "2", default-features = false, features = ["static_secrets"], optional = true }
zeroize = { version = "1", default-features = false, features = ["zeroize_derive"] }

[dependencies.x25519-dalek]
version = "2.0.0-pre.1"
default-features = false
features = ["u64_backend"]
optional = true

[dev-dependencies]
criterion = { version = "0.4", features = ["html_reports"] }
hex = "0.4"
Expand Down
4 changes: 1 addition & 3 deletions src/kem/dhkem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ macro_rules! impl_dhkem {
$kem_id:literal,
$doc_str:expr
) => {

// Export everything from the crate we define
pub use $mod_name::*;
pub use $mod_name::$kem_name;

pub(crate) mod $mod_name {
use crate::{
Expand Down
7 changes: 3 additions & 4 deletions src/single_shot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ mod test {
use super::*;
use crate::{
aead::ChaCha20Poly1305,
kdf::{HkdfSha256, HkdfSha384},
kem::Kem as KemTrait,
op_mode::{OpModeR, OpModeS, PskBundle},
test_util::gen_rand_buf,
Expand Down Expand Up @@ -229,23 +228,23 @@ mod test {
test_single_shot_correctness!(
test_single_shot_correctness_x25519,
ChaCha20Poly1305,
HkdfSha256,
crate::kdf::HkdfSha256,
crate::kem::x25519_hkdfsha256::X25519HkdfSha256
);

#[cfg(feature = "p256")]
test_single_shot_correctness!(
test_single_shot_correctness_p256,
ChaCha20Poly1305,
HkdfSha256,
crate::kdf::HkdfSha256,
crate::kem::dhp256_hkdfsha256::DhP256HkdfSha256
);

#[cfg(feature = "p384")]
test_single_shot_correctness!(
test_single_shot_correctness_p384,
ChaCha20Poly1305,
HkdfSha384,
crate::kdf::HkdfSha384,
crate::kem::dhp384_hkdfsha384::DhP384HkdfSha384
);
}