Skip to content

Commit

Permalink
sign, verify: add TODOs for SCT verification
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Pan <andrew.pan@trailofbits.com>
  • Loading branch information
tnytown committed Feb 16, 2024
1 parent 68fea4a commit 752f87f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ impl<'ctx> AsyncSigningSession<'ctx> {
return Err(SigstoreError::ExpiredSigningSession());
}

// TODO(tnytown): verify SCT here, sigstore-rs#326

// Sign artifact.
let input_hash: &[u8] = &hasher.clone().finalize();
let mut signature_bytes = Vec::new();
Expand Down
2 changes: 2 additions & 0 deletions src/verify/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ impl<'a, R: Repository> Verifier<'a, R> {

debug!("signing certificate chains back to trusted root");

// TODO(tnytown): verify SCT here, sigstore-rs#326

// 2) Verify that the signing certificate belongs to the signer.
if let Some(err) = policy.verify(&materials.certificate) {
return Err(err)?;
Expand Down

0 comments on commit 752f87f

Please sign in to comment.