Skip to content

Commit 0caf659

Browse files
committed
remove comments
1 parent 8a261d9 commit 0caf659

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

enclave_build/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,6 @@ impl<'a> Docker2Eif<'a> {
102102
}
103103
}
104104

105-
// let signature: Option<String> = sig_path.clone().map(|sp| {
106-
// let mut sig_file = File::open(sp).unwrap();
107-
// let mut signature_hex = Vec::new();
108-
// sig_file.read_to_end(&mut signature_hex).unwrap();
109-
// String::from_utf8(signature_hex).unwrap().trim().to_string()
110-
// });
111-
112-
// println!(" ----------------------- >> {signature:?}");
113-
114105
let sign_info: Option<Box<dyn PcrSigner>> = match (certificate_path, key_path, sig_path) {
115106
(None, None, None) => None,
116107
(Some(cert_path), Some(key_path), None) => Some(Box::new(
@@ -312,6 +303,5 @@ impl<'a> Docker2Eif<'a> {
312303
Some(output_file) => Ok(build.write_to(output_file)),
313304
None => Ok(build.get_measurements()),
314305
}
315-
// Ok(build.write_to(self.output))
316306
}
317307
}

src/lib.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,6 @@ pub fn sign_from_pcr0(pcr0: &str, key_path: &str, output_path: &str) -> NitroCli
360360
})?;
361361
eprintln!("PCR0 signature successfully generated.");
362362
Ok(())
363-
// let mut key_file = File::open(key_path).unwrap();
364-
// let mut private_key = Vec::new();
365-
// key_file.read_to_end(&mut private_key).unwrap();
366-
// let sig = pcr_cose_sign1(&pcr_info, &private_key).unwrap();
367-
// let sig_hex = hex::encode(sig);
368-
369-
// println!("{sig_hex}");
370-
371-
// Ok(sig_hex)
372363
}
373364

374365
/// Creates new enclave name

0 commit comments

Comments
 (0)