Skip to content

Commit 0d9d905

Browse files
Bump crate versions
The hpke crate contains breaking changes that require bumping `ENCRYPTION_FORMAT_VERSION`.
1 parent 320d790 commit 0d9d905

File tree

4 files changed

+56
-62
lines changed

4 files changed

+56
-62
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ description = "Tool to interact with the firewall matched data feature"
66
edition = "2018"
77

88
[dependencies]
9-
assert_cmd = "1.0.1"
9+
assert_cmd = "1.0.2"
1010
bincode = "1.3.1"
1111
clap = "3.0.0-beta.1"
1212
generic-array = { version = "0.14.4", features = ["serde"] }
13-
hpke = { version = "0.3.1", features = ["serde_impls"] }
13+
hpke = { version = "0.4.1", features = ["serde_impls"] }
1414
radix64 = "0.6.2"
1515
rand = "0.7.3"
16-
serde = { version = "1.0.116", features = ["derive"] }
16+
serde = { version = "1.0.117", features = ["derive"] }
1717
serde_json = "1.0.59"
1818

1919
[profile.release]

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ mod tests {
182182
let matched_data = "test matched data";
183183
// Encrypted with public key:
184184
// Ycig/Zr/pZmklmFUN99nr+taURlYItL91g+NcHGYpB8=
185-
let encrypted_matched_data = "AdfVn7odpamJGeFAGj0iW2oTtoXOjVnTFT2x4l+cHKJsEQAAAAAAAAB+zDygjV2aUI92FV4cHMkp+4u37JHnH4fUkRqasPYaCgk=";
185+
let encrypted_matched_data = "Ah0Ax4UEtSQg/bVSJHcgIwbLoNNKGbcwpL2BdCPJEYx1EQAAAAAAAAAsrRpY63jVlKash1iJ2bYh6+TQtedI380nnmZAWYgZMIU=";
186186
let private_key = "uBS5eBttHrqkdY41kbZPdvYnNz8Vj0TvKIUpjB1y/GA=";
187187

188188
// Private key in argument
@@ -218,7 +218,7 @@ mod tests {
218218

219219
#[test]
220220
fn test_arguments() {
221-
let encrypted_matched_data = "AdfVn7odpamJGeFAGj0iW2oTtoXOjVnTFT2x4l+cHKJsEQAAAAAAAAB+zDygjV2aUI92FV4cHMkp+4u37JHnH4fUkRqasPYaCgk=";
221+
let encrypted_matched_data = "Ah0Ax4UEtSQg/bVSJHcgIwbLoNNKGbcwpL2BdCPJEYx1EQAAAAAAAAAsrRpY63jVlKash1iJ2bYh6+TQtedI380nnmZAWYgZMIU=";
222222
let private_key = "uBS5eBttHrqkdY41kbZPdvYnNz8Vj0TvKIUpjB1y/GA=";
223223

224224
let mut cmd = Command::cargo_bin("matched-data-cli").unwrap();

src/matched_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Aead = ChaCha20Poly1305;
1414
type Kdf = HkdfSha256;
1515
type Kex = <Kem as KemTrait>::Kex;
1616

17-
const ENCRYPTION_FORMAT_VERSION: u8 = 1;
17+
const ENCRYPTION_FORMAT_VERSION: u8 = 2;
1818

1919
#[derive(Serialize, Deserialize)]
2020
pub struct EncryptedData {

0 commit comments

Comments
 (0)