Skip to content

Commit

Permalink
fix clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Firstyear committed Aug 1, 2023
1 parent 01a046c commit ee8dc03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tss-esapi/examples/hmac.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ fn main() {
// tpm resource manager.
let mut context = Context::new(
TctiNameConf::from_environment_variable()
.expect("Failed to get TCTI / TPM2TOOLS_TCTI from environment"),
.expect("Failed to get TCTI / TPM2TOOLS_TCTI from environment. Try `export TCTI=device:/dev/tpmrm0`"),
)
.expect("Failed to create Context");

Expand Down Expand Up @@ -138,7 +138,7 @@ fn main() {
.unwrap();
// Perform the HMAC.
let r = ctx.hmac(
hmac_key.clone().into(),
hmac_key.into(),
input_data.clone(),
HashingAlgorithm::Sha256,
);
Expand Down

0 comments on commit ee8dc03

Please sign in to comment.