From 8b54c174385fd9c03bb3a76cc580da1c776043fe Mon Sep 17 00:00:00 2001 From: Carl Lundin <108372512+clundin25@users.noreply.github.com> Date: Tue, 21 Jan 2025 09:22:55 -0800 Subject: [PATCH] Add doc comments to CreateDpeCertArgs (#377) --- dpe/src/x509.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dpe/src/x509.rs b/dpe/src/x509.rs index 0d8c12e8..3bf45131 100644 --- a/dpe/src/x509.rs +++ b/dpe/src/x509.rs @@ -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, }