Skip to content

Commit 0671e8d

Browse files
Bump hpke crate to 0.7.1 (#16)
1 parent a9e6c36 commit 0671e8d

File tree

3 files changed

+31
-22
lines changed

3 files changed

+31
-22
lines changed

Cargo.lock

Lines changed: 29 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ assert_fs = "1.0.4"
1111
bincode = "1.3.1"
1212
clap = "3.0.0-beta.4"
1313
generic-array = { version = "0.14.4", features = ["serde"] }
14-
hpke = { version = "0.6.0", default-features = false, features = [
14+
hpke = { version = "0.7.1", default-features = false, features = [
1515
"x25519",
1616
"serde_impls",
1717
] }

src/matched_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub fn decrypt_data(
5151
)?;
5252

5353
// Decrypt ciphertext in place
54-
let mut ciphertext_copy = encrypted_data.ciphertext.to_vec();
54+
let mut ciphertext_copy = encrypted_data.ciphertext.clone();
5555
aead_ctx.open(&mut ciphertext_copy, &[], &encrypted_data.tag)?;
5656

5757
// Rename for clarity

0 commit comments

Comments
 (0)