Skip to content

Commit

Permalink
Merge pull request #3906 from oasisprotocol/dependabot/cargo/hmac-0.11.0
Browse files Browse the repository at this point in the history
rust: bump hmac from 0.10.1 to 0.11.0
  • Loading branch information
kostko authored May 3, 2021
2 parents d3cc04a + c9f73a4 commit e644f80
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .changelog/3906.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rust: bump hmac from 0.10.1 to 0.11.0
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ sp800-185 = "0.2.0"
zeroize = "1.3"
intrusive-collections = "0.8"
sha2 = "0.9.3"
hmac = "0.10.1"
hmac = "0.11.0"
honggfuzz = "0.5.54"
arbitrary = { version = "1.0.0", features = ["derive"] }
num-bigint = { version = "0.4", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion runtime/src/common/crypto/mrae/deoxysii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fn derive_symmetric_key(public: &[u8; 32], private: &[u8; 32]) -> [u8; KEY_SIZE]

let pmk = private.diffie_hellman(&public);

let mut kdf = Kdf::new_varkey(b"MRAE_Box_Deoxys-II-256-128").expect("Hmac::new_varkey");
let mut kdf = Kdf::new_from_slice(b"MRAE_Box_Deoxys-II-256-128").expect("Hmac::new_from_slice");
kdf.update(pmk.as_bytes());
drop(pmk);

Expand Down

0 comments on commit e644f80

Please sign in to comment.