Skip to content

Commit

Permalink
remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanjh committed Aug 2, 2024
1 parent 8a261d9 commit 0caf659
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
10 changes: 0 additions & 10 deletions enclave_build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ impl<'a> Docker2Eif<'a> {
}
}

// let signature: Option<String> = sig_path.clone().map(|sp| {
// let mut sig_file = File::open(sp).unwrap();
// let mut signature_hex = Vec::new();
// sig_file.read_to_end(&mut signature_hex).unwrap();
// String::from_utf8(signature_hex).unwrap().trim().to_string()
// });

// println!(" ----------------------- >> {signature:?}");

let sign_info: Option<Box<dyn PcrSigner>> = match (certificate_path, key_path, sig_path) {
(None, None, None) => None,
(Some(cert_path), Some(key_path), None) => Some(Box::new(
Expand Down Expand Up @@ -312,6 +303,5 @@ impl<'a> Docker2Eif<'a> {
Some(output_file) => Ok(build.write_to(output_file)),
None => Ok(build.get_measurements()),
}
// Ok(build.write_to(self.output))
}
}
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -360,15 +360,6 @@ pub fn sign_from_pcr0(pcr0: &str, key_path: &str, output_path: &str) -> NitroCli
})?;
eprintln!("PCR0 signature successfully generated.");
Ok(())
// let mut key_file = File::open(key_path).unwrap();
// let mut private_key = Vec::new();
// key_file.read_to_end(&mut private_key).unwrap();
// let sig = pcr_cose_sign1(&pcr_info, &private_key).unwrap();
// let sig_hex = hex::encode(sig);

// println!("{sig_hex}");

// Ok(sig_hex)
}

/// Creates new enclave name
Expand Down

0 comments on commit 0caf659

Please sign in to comment.