diff --git a/tss-esapi/src/attributes/nv_index.rs b/tss-esapi/src/attributes/nv_index.rs index 54228120..1375b913 100644 --- a/tss-esapi/src/attributes/nv_index.rs +++ b/tss-esapi/src/attributes/nv_index.rs @@ -157,7 +157,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_pp_write(mut self, set: bool) -> Self { self.nv_index_attributes.set_pp_write(set); self @@ -167,7 +167,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_owner_write(mut self, set: bool) -> Self { self.nv_index_attributes.set_owner_write(set); self @@ -177,7 +177,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_auth_write(mut self, set: bool) -> Self { self.nv_index_attributes.set_auth_write(set); self @@ -187,7 +187,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_policy_write(mut self, set: bool) -> Self { self.nv_index_attributes.set_policy_write(set); self @@ -206,7 +206,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_policy_delete(mut self, set: bool) -> Self { self.nv_index_attributes.set_policy_delete(set); self @@ -216,7 +216,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_write_locked(mut self, set: bool) -> Self { self.nv_index_attributes.set_write_locked(set); self @@ -226,7 +226,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_write_all(mut self, set: bool) -> Self { self.nv_index_attributes.set_write_all(set); self @@ -236,7 +236,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_write_define(mut self, set: bool) -> Self { self.nv_index_attributes.set_write_define(set); self @@ -246,7 +246,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_write_stclear(mut self, set: bool) -> Self { self.nv_index_attributes.set_write_stclear(set); self @@ -256,7 +256,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_global_lock(mut self, set: bool) -> Self { self.nv_index_attributes.set_global_lock(set); self @@ -266,7 +266,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_pp_read(mut self, set: bool) -> Self { self.nv_index_attributes.set_pp_read(set); self @@ -276,7 +276,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_owner_read(mut self, set: bool) -> Self { self.nv_index_attributes.set_owner_read(set); self @@ -286,7 +286,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_auth_read(mut self, set: bool) -> Self { self.nv_index_attributes.set_auth_read(set); self @@ -296,7 +296,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_policy_read(mut self, set: bool) -> Self { self.nv_index_attributes.set_policy_read(set); self @@ -306,7 +306,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_no_da(mut self, set: bool) -> Self { self.nv_index_attributes.set_no_da(set); self @@ -316,7 +316,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_orderly(mut self, set: bool) -> Self { self.nv_index_attributes.set_orderly(set); self @@ -326,7 +326,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_clear_stclear(mut self, set: bool) -> Self { self.nv_index_attributes.set_clear_stclear(set); self @@ -336,7 +336,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_read_locked(mut self, set: bool) -> Self { self.nv_index_attributes.set_read_locked(set); self @@ -346,7 +346,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_written(mut self, set: bool) -> Self { self.nv_index_attributes.set_written(set); self @@ -356,7 +356,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_platform_create(mut self, set: bool) -> Self { self.nv_index_attributes.set_platform_create(set); self @@ -366,7 +366,7 @@ impl NvIndexAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_read_stclear(mut self, set: bool) -> Self { self.nv_index_attributes.set_read_stclear(set); self diff --git a/tss-esapi/src/attributes/object.rs b/tss-esapi/src/attributes/object.rs index bfe6be70..1f9ba8b1 100644 --- a/tss-esapi/src/attributes/object.rs +++ b/tss-esapi/src/attributes/object.rs @@ -95,7 +95,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_fixed_tpm(mut self, set: bool) -> Self { self.object_attributes.set_fixed_tpm(set); self @@ -105,7 +105,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_st_clear(mut self, set: bool) -> Self { self.object_attributes.set_st_clear(set); self @@ -115,7 +115,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_fixed_parent(mut self, set: bool) -> Self { self.object_attributes.set_fixed_parent(set); self @@ -125,7 +125,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_sensitive_data_origin(mut self, set: bool) -> Self { self.object_attributes.set_sensitive_data_origin(set); self @@ -135,7 +135,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_user_with_auth(mut self, set: bool) -> Self { self.object_attributes.set_user_with_auth(set); self @@ -145,7 +145,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_admin_with_policy(mut self, set: bool) -> Self { self.object_attributes.set_admin_with_policy(set); self @@ -155,7 +155,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_no_da(mut self, set: bool) -> Self { self.object_attributes.set_no_da(set); self @@ -165,7 +165,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_encrypted_duplication(mut self, set: bool) -> Self { self.object_attributes.set_encrypted_duplication(set); self @@ -175,7 +175,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_restricted(mut self, set: bool) -> Self { self.object_attributes.set_restricted(set); self @@ -185,7 +185,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_decrypt(mut self, set: bool) -> Self { self.object_attributes.set_decrypt(set); self @@ -195,7 +195,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_sign_encrypt(mut self, set: bool) -> Self { self.object_attributes.set_sign_encrypt(set); self @@ -205,7 +205,7 @@ impl ObjectAttributesBuilder { /// /// # Arguments /// * `set` - `true` indicates that the attribute should have the value SET. - /// `false`indicates that the attribute should have the value CLEAR. + /// `false`indicates that the attribute should have the value CLEAR. pub fn with_x509_sign(mut self, set: bool) -> Self { self.object_attributes.set_x509_sign(set); self diff --git a/tss-esapi/src/context/general_esys_tr.rs b/tss-esapi/src/context/general_esys_tr.rs index f81d6cc3..49981ee2 100644 --- a/tss-esapi/src/context/general_esys_tr.rs +++ b/tss-esapi/src/context/general_esys_tr.rs @@ -146,7 +146,7 @@ impl Context { /// /// # Arguments /// * `tpm_handle` - The TPM handle that references the TPM object for which - /// the ESYS object is being created. + /// the ESYS object is being created. /// /// # Returns /// A handle to the ESYS object that was created from a TPM resource. @@ -277,7 +277,7 @@ impl Context { /// /// # Arguments /// * object_handle`- An [ObjectHandle] referring to an object for which all metadata and - /// resources is going to be released. + /// resources is going to be released. /// /// # Example /// ```rust @@ -468,7 +468,7 @@ impl Context { /// /// # Arguments /// * `buffer` - The buffer containing the data to restore the object. - /// It can be created using [`tr_serialize`](Self::tr_serialize). + /// It can be created using [`tr_serialize`](Self::tr_serialize). /// /// # Returns /// A handle to the object that was created from the buffer. diff --git a/tss-esapi/src/context/tpm_commands/asymmetric_primitives.rs b/tss-esapi/src/context/tpm_commands/asymmetric_primitives.rs index 77b8e281..22ff04d0 100644 --- a/tss-esapi/src/context/tpm_commands/asymmetric_primitives.rs +++ b/tss-esapi/src/context/tpm_commands/asymmetric_primitives.rs @@ -76,7 +76,7 @@ impl Context { /// /// # Arguments /// * `key_handle`- A [KeyHandle] of ECC key which curve parameters will be used - /// to generate the ephemeral key. + /// to generate the ephemeral key. /// /// # Details /// This command uses the TPM to generate an ephemeral @@ -211,7 +211,7 @@ impl Context { /// /// # Arguments /// * `key_handle` - A [KeyHandle] of ECC key which curve parameters will be used - /// to generate the ephemeral key. + /// to generate the ephemeral key. /// * `in_point` - An [EccPoint] on the curve of the key referenced by `key_handle` /// /// # Details diff --git a/tss-esapi/src/context/tpm_commands/context_management.rs b/tss-esapi/src/context/tpm_commands/context_management.rs index 9dcfec18..b710c808 100644 --- a/tss-esapi/src/context/tpm_commands/context_management.rs +++ b/tss-esapi/src/context/tpm_commands/context_management.rs @@ -146,13 +146,12 @@ impl Context { /// /// # Arguments /// * `auth` - An a handle used for authorization that is limited to the ones - /// specified in [Provision]. + /// specified in [Provision]. /// * `object_handle` - The handle of a loaded object. /// * `persistent` - If the `object_handle` is transient object then this - /// then this will become the persistent handle of that - /// object. If the `object_handle` refers to a persistent - /// object then this shall be the persistent handle of that - /// object. + /// then this will become the persistent handle of that object. If the + /// `object_handle` refers to a persistent object then this shall be the + /// persistent handle of that object. /// /// # Returns /// If the input `object_handle` was transient object then it will be made diff --git a/tss-esapi/src/context/tpm_commands/duplication_commands.rs b/tss-esapi/src/context/tpm_commands/duplication_commands.rs index 9376f15b..512a754b 100644 --- a/tss-esapi/src/context/tpm_commands/duplication_commands.rs +++ b/tss-esapi/src/context/tpm_commands/duplication_commands.rs @@ -24,7 +24,7 @@ impl Context { /// * `object_to_duplicate` - An [ObjectHandle] of the object that will be duplicated. /// * `new_parent_handle` - An [ObjectHandle] of the new parent. /// * `encryption_key_in` - An optional encryption key. If this parameter is `None` - /// then a [default value][Default::default] is used. + /// then a [default value][Default::default] is used. /// * `symmetric_alg` - Symmetric algorithm to be used for the inner wrapper. /// /// The `object_to_duplicate` need to be have Fixed TPM and Fixed Parent attributes set to `false`. @@ -347,7 +347,7 @@ impl Context { /// # Arguments /// * `parent_handle` - An [ObjectHandle] of the new parent for the object. /// * `encryption_key` - An optional symmetric encryption key used as the inner wrapper. - /// If `encryption_key` is `None` then a [default value][Default::default] is used. + /// If `encryption_key` is `None` then a [default value][Default::default] is used. /// * `public` - A [Public] of the imported object. /// * `duplicate` - A symmetrically encrypted duplicated object. /// * `encrypted_secret` - The seed for the symmetric key and HMAC key. diff --git a/tss-esapi/src/context/tpm_commands/enhanced_authorization_ea_commands.rs b/tss-esapi/src/context/tpm_commands/enhanced_authorization_ea_commands.rs index 770497ef..fc5b2967 100644 --- a/tss-esapi/src/context/tpm_commands/enhanced_authorization_ea_commands.rs +++ b/tss-esapi/src/context/tpm_commands/enhanced_authorization_ea_commands.rs @@ -331,7 +331,7 @@ impl Context { /// * `object_name` - The [name][Name] of the object being duplicated. /// * `new_parent_name` - The [name][Name] of the new parent. /// * `include_object` - Flag indicating if `object_name` will be included in policy - /// calculation. + /// calculation. /// /// # Details /// Set `include_object` only when this command is used in conjunction with @@ -601,7 +601,7 @@ impl Context { /// * `policy_session` - The [policy session][PolicySession] being extended. /// * `auth_handle` - Handle indicating the source of authorization value. /// * `nv_index_handle` - The [NvIndexHandle] associated with NV memory - /// where the policy is stored. + /// where the policy is stored. /// /// # Example /// ```rust diff --git a/tss-esapi/src/context/tpm_commands/non_volatile_storage.rs b/tss-esapi/src/context/tpm_commands/non_volatile_storage.rs index c12afa52..f7d38572 100644 --- a/tss-esapi/src/context/tpm_commands/non_volatile_storage.rs +++ b/tss-esapi/src/context/tpm_commands/non_volatile_storage.rs @@ -139,7 +139,7 @@ impl Context { /// # Arguments /// * `nv_auth` - The [Provision] used for authorization. /// * `nv_index_handle`- The [NvIndexHandle] associated with - /// the nv area that is to be removed. + /// the nv area that is to be removed. /// /// # Example /// ```rust @@ -238,7 +238,7 @@ impl Context { /// # Arguments /// * `nv_auth` - The [Provision] used for authorization. /// * `nv_index_handle`- The [NvIndexHandle] associated with - /// the nv area that is to be removed. + /// the nv area that is to be removed. /// /// # Example /// ```rust @@ -378,7 +378,7 @@ impl Context { /// /// # Arguments /// * `nv_index_handle` - The [NvIndexHandle] associated with NV memory - /// for which the public part is to be read. + /// for which the public part is to be read. /// # Returns /// A tuple containing the public area and the name of an nv index. /// @@ -493,7 +493,7 @@ impl Context { /// # Arguments /// * `auth_handle` - Handle indicating the source of authorization value. /// * `nv_index_handle` - The [NvIndexHandle] associated with NV memory - /// where data is to be written. + /// where data is to be written. /// * `data` - The data, in the form of a [MaxNvBuffer], that is to be written. /// * `offset` - The octet offset into the NV area. /// @@ -608,7 +608,7 @@ impl Context { /// # Arguments /// * `auth_handle` - Handle indicating the source of authorization value. /// * `nv_index_handle` - The [NvIndexHandle] associated with NV memory - /// where data is to be written. + /// where data is to be written. /// ```rust /// # use tss_esapi::{ /// # Context, TctiNameConf, attributes::{SessionAttributes, NvIndexAttributes}, @@ -715,7 +715,7 @@ impl Context { /// # Arguments /// * `auth_handle` - Handle indicating the source of authorization value. /// * `nv_index_handle` - The [NvIndexHandle] associated with NV memory - /// where data is to be written. + /// where data is to be written. /// * `size` - The number of octets to read. /// * `offset`- Octet offset into the NV area. /// diff --git a/tss-esapi/src/context/tpm_commands/object_commands.rs b/tss-esapi/src/context/tpm_commands/object_commands.rs index 3ec90773..321a73c6 100644 --- a/tss-esapi/src/context/tpm_commands/object_commands.rs +++ b/tss-esapi/src/context/tpm_commands/object_commands.rs @@ -35,8 +35,8 @@ impl Context { /// * `auth_value` - The value used to be used for authorize usage of the object. /// * `sensitive_data` - The data that is to be sealed, a key or derivation values. /// * `outside_info` - Data that will be included in the creation data for this - /// object to provide permanent, verifiable linkage between - /// the object that is being created and some object owner data. + /// object to provide permanent, verifiable linkage between the object + /// that is being created and some object owner data. /// * `creation_pcrs`- PCRs that will be used in creation data. /// /// # Errors diff --git a/tss-esapi/src/context/tpm_commands/symmetric_primitives.rs b/tss-esapi/src/context/tpm_commands/symmetric_primitives.rs index 9b7e79e1..c77157c4 100644 --- a/tss-esapi/src/context/tpm_commands/symmetric_primitives.rs +++ b/tss-esapi/src/context/tpm_commands/symmetric_primitives.rs @@ -23,7 +23,7 @@ impl Context { /// # Arguments /// * `key_handle` - A [KeyHandle] to the key to be used. /// * `decrypt` - A boolean indicating if the data should be decrypted or encrypted. - /// If set to true the data will be decrypted else encrypted. + /// If set to true the data will be decrypted else encrypted. /// * `mode` - The [SymmetricMode] to be used. /// * `in_data` - The data that is going to be decrypted or encrypted. /// * `initial_value_in` - An initial value as required by the algorithm. diff --git a/tss-esapi/src/structures/tagged/public/ecc.rs b/tss-esapi/src/structures/tagged/public/ecc.rs index 29c0605f..79224949 100644 --- a/tss-esapi/src/structures/tagged/public/ecc.rs +++ b/tss-esapi/src/structures/tagged/public/ecc.rs @@ -95,7 +95,7 @@ impl PublicEccParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that the key is going to be used for signing operations. - /// `false` indicates that the key is not going to be used for signing operations. + /// `false` indicates that the key is not going to be used for signing operations. pub const fn with_is_signing_key(mut self, set: bool) -> Self { self.is_signing_key = set; self @@ -106,7 +106,7 @@ impl PublicEccParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that the key is going to be used for decryption operations. - /// `false` indicates that the key is not going to be used for decryption operations. + /// `false` indicates that the key is not going to be used for decryption operations. pub const fn with_is_decryption_key(mut self, set: bool) -> Self { self.is_decryption_key = set; self @@ -117,7 +117,7 @@ impl PublicEccParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that it is going to be a restricted key. - /// `false` indicates that it is going to be a non restricted key. + /// `false` indicates that it is going to be a non restricted key. pub const fn with_restricted(mut self, set: bool) -> Self { self.restricted = set; self diff --git a/tss-esapi/src/structures/tagged/public/rsa.rs b/tss-esapi/src/structures/tagged/public/rsa.rs index 5d3dd07a..a61931c3 100644 --- a/tss-esapi/src/structures/tagged/public/rsa.rs +++ b/tss-esapi/src/structures/tagged/public/rsa.rs @@ -100,7 +100,7 @@ impl PublicRsaParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that the key is going to be used for signing operations. - /// `false` indicates that the key is not going to be used for signing operations. + /// `false` indicates that the key is not going to be used for signing operations. pub const fn with_is_signing_key(mut self, set: bool) -> Self { self.is_signing_key = set; self @@ -111,7 +111,7 @@ impl PublicRsaParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that the key is going to be used for decryption operations. - /// `false` indicates that the key is not going to be used for decryption operations. + /// `false` indicates that the key is not going to be used for decryption operations. pub const fn with_is_decryption_key(mut self, set: bool) -> Self { self.is_decryption_key = set; self @@ -122,7 +122,7 @@ impl PublicRsaParametersBuilder { /// /// # Arguments /// * `set` - `true` indicates that it is going to be a restricted key. - /// `false` indicates that it is going to be a non restricted key. + /// `false` indicates that it is going to be a non restricted key. pub const fn with_restricted(mut self, set: bool) -> Self { self.restricted = set; self diff --git a/tss-esapi/tests/integration_tests/context_tests/tpm_commands/attestation_commands_tests.rs b/tss-esapi/tests/integration_tests/context_tests/tpm_commands/attestation_commands_tests.rs index a0bd8352..596981b7 100644 --- a/tss-esapi/tests/integration_tests/context_tests/tpm_commands/attestation_commands_tests.rs +++ b/tss-esapi/tests/integration_tests/context_tests/tpm_commands/attestation_commands_tests.rs @@ -52,7 +52,10 @@ mod test_quote { match attest.attested() { AttestInfo::Quote { info } => { - assert!(info.pcr_digest().len() != 0, "Digest in QuoteInfo is empty"); + assert!( + !info.pcr_digest().is_empty(), + "Digest in QuoteInfo is empty" + ); assert_eq!( &pcr_selection_list, info.pcr_selection(),