Skip to content

Commit

Permalink
Add doc comments to CreateDpeCertArgs (#377)
Browse files Browse the repository at this point in the history
  • Loading branch information
clundin25 authored Jan 21, 2025
1 parent ded93db commit 8b54c17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dpe/src/x509.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2245,16 +2245,25 @@ enum CertificateType {
Exported,
}

/// Arguments for DPE cert or CSR creation.
pub(crate) struct CreateDpeCertArgs<'a> {
/// Used by DPE to compute measurement digest
pub handle: &'a ContextHandle,
/// The locality of the caller
pub locality: u32,
/// Info string used in the CDI derivation
pub cdi_label: &'a [u8],
/// Label string used in the key derivation
pub key_label: &'a [u8],
/// Additional info string used in the key derivation
pub context: &'a [u8],
}

/// Results for DPE cert or CSR creation.
pub(crate) struct CreateDpeCertResult {
/// Size of certificate or CSR in bytes.
pub cert_size: u32,
/// Public key embedded in Cert or CSR.
pub pub_key: EcdsaPub,
}

Expand Down

0 comments on commit 8b54c17

Please sign in to comment.