diff --git a/attestation-service/src/lib.rs b/attestation-service/src/lib.rs index f987b4305..7307ac77a 100644 --- a/attestation-service/src/lib.rs +++ b/attestation-service/src/lib.rs @@ -154,19 +154,19 @@ impl AttestationService { /// Evaluate Attestation Evidence. /// Issue an attestation results token which contain TCB status and TEE public key. Input parameters: /// - `evidence`: TEE evidence bytes. This might not be the raw hardware evidence bytes. Definitions - /// are in `verifier` crate. + /// are in `verifier` crate. /// - `tee`: concrete TEE type /// - `runtime_data`: These data field will be used to check against the counterpart inside the evidence. - /// The concrete way of checking is decide by the enum type. If this parameter is set `None`, the comparation - /// will not be performed. + /// The concrete way of checking is decide by the enum type. If this parameter is set `None`, the comparation + /// will not be performed. /// - `init_data`: These data field will be used to check against the counterpart inside the evidence. - /// The concrete way of checking is decide by the enum type. If this parameter is set `None`, the comparation - /// will not be performed. + /// The concrete way of checking is decide by the enum type. If this parameter is set `None`, the comparation + /// will not be performed. /// - `hash_algorithm`: The hash algorithm that is used to calculate the digest of `runtime_data` and - /// `init_data`. + /// `init_data`. /// - `policy_ids`: The policy ids that used to check this evidence. Any check fails against a policy will - /// not cause this function to return error. The result check against every policy will be included inside - /// the finally Token returned by CoCo-AS. + /// not cause this function to return error. The result check against every policy will be included inside + /// the finally Token returned by CoCo-AS. #[allow(clippy::too_many_arguments)] pub async fn evaluate( &self, diff --git a/rvps/src/reference_value.rs b/rvps/src/reference_value.rs index f644cce72..4e5877649 100644 --- a/rvps/src/reference_value.rs +++ b/rvps/src/reference_value.rs @@ -55,10 +55,10 @@ fn primitive_date_time_from_str<'de, D: Deserializer<'de>>( /// * `name`: name of the artifact related to this reference value. /// * `expired`: expired time for this reference value. /// * `hash_value`: A set of key-value pairs, each indicates a hash -/// algorithm and its relative hash value for the artifact. -/// The actual struct deliver from RVPS to AS is -/// [`TrustedDigest`], whose simple structure is easy -/// for AS to handle. +/// algorithm and its relative hash value for the artifact. +/// The actual struct deliver from RVPS to AS is +/// [`TrustedDigest`], whose simple structure is easy +/// for AS to handle. #[derive(Serialize, Deserialize, Clone, Debug, PartialEq, Eq)] pub struct ReferenceValue { #[serde(default = "default_version")] @@ -140,7 +140,7 @@ impl ReferenceValue { /// AS, it will include: /// * `name`: The name of the artifact, e.g., `linux-1.1.1` /// * `hash_values`: digests that have been verified and can -/// be trusted, so we can refer them as `trusted digests`. +/// be trusted, so we can refer them as `trusted digests`. #[derive(Serialize, Deserialize, Clone, Default, Debug, PartialEq, Eq)] pub struct TrustedDigest { /// The resource name.