Skip to content

Commit 3b12ad2

Browse files
committed
Fixed spelling errors in the documentation.
Signed-off-by: Jesper Brynolf <[email protected]>
1 parent 2e21e62 commit 3b12ad2

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

tss-esapi/src/structures/capability_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use log::error;
1313
use std::convert::{TryFrom, TryInto};
1414
use std::mem::size_of;
1515

16-
/// A representation of all the capabilites that can be associated
16+
/// A representation of all the capabilities that can be associated
1717
/// with a TPM.
1818
///
1919
/// # Details

tss-esapi/src/structures/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
/// Chapter 10: Structure Definitions
1616
1717
/////////////////////////////////////////////////////////
18-
/// The capabilitydata section
18+
/// The capability data section
1919
/////////////////////////////////////////////////////////
2020
mod capability_data;
2121
pub use self::capability_data::CapabilityData;

tss-esapi/src/structures/tagged/public/ecc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl PublicEccParametersBuilder {
9494
/// for signing to the [PublicEccParametersBuilder].
9595
///
9696
/// # Arguments
97-
/// * `set` - `true` inidcates that the key is going to be used for signing operations.
97+
/// * `set` - `true` indicates that the key is going to be used for signing operations.
9898
/// `false` indicates that the key is not going to be used for signing operations.
9999
pub const fn with_is_signing_key(mut self, set: bool) -> Self {
100100
self.is_signing_key = set;
@@ -112,7 +112,7 @@ impl PublicEccParametersBuilder {
112112
self
113113
}
114114

115-
/// Adds a flag that inidcates if the key is going to be restrictied to
115+
/// Adds a flag that indicates if the key is going to be restricted to
116116
/// the [PublicEccParametersBuilder].
117117
///
118118
/// # Arguments

tss-esapi/src/structures/tagged/public/rsa.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl PublicRsaParametersBuilder {
3636
}
3737

3838
/// Creates a [PublicRsaParametersBuilder] that is setup
39-
/// to build a restructed decryption key.
39+
/// to build a restricted decryption key.
4040
pub const fn new_restricted_decryption_key(
4141
symmetric: SymmetricDefinitionObject,
4242
key_bits: RsaKeyBits,
@@ -99,7 +99,7 @@ impl PublicRsaParametersBuilder {
9999
/// for signing to the [PublicRsaParametersBuilder].
100100
///
101101
/// # Arguments
102-
/// * `set` - `true` inidcates that the key is going to be used for signing operations.
102+
/// * `set` - `true` indicates that the key is going to be used for signing operations.
103103
/// `false` indicates that the key is not going to be used for signing operations.
104104
pub const fn with_is_signing_key(mut self, set: bool) -> Self {
105105
self.is_signing_key = set;
@@ -117,7 +117,7 @@ impl PublicRsaParametersBuilder {
117117
self
118118
}
119119

120-
/// Adds a flag that inidcates if the key is going to be restrictied to
120+
/// Adds a flag that indicates if the key is going to be restricted to
121121
/// the [PublicRsaParametersBuilder].
122122
///
123123
/// # Arguments

tss-esapi/tests/integration_tests/error_tests/return_code_tests/esapi_tests.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn test_esapi_error_from_context_method() {
154154
.expect("Failed to set attributes for second session");
155155

156156
// Creating primary with two sessions that both have encrypt set.
157-
// This is expected to result in 'mutiple encrypt sessions' ESAPI error.
157+
// This is expected to result in 'multiple encrypt sessions' ESAPI error.
158158
let result =
159159
context.execute_with_sessions((Some(first_session), Some(second_session), None), |ctx| {
160160
ctx.create_primary(
@@ -173,10 +173,10 @@ fn test_esapi_error_from_context_method() {
173173
assert_eq!(
174174
esapi_return_code.base_error(),
175175
BaseError::MultipleEncryptSessions,
176-
"Calling 'create_primary' with two encrypt session did not result in the expected ESPI TSS error",
176+
"Calling 'create_primary' with two encrypt session did not result in the expected ESAPI TSS error",
177177
);
178178
} else {
179-
panic!("Calling 'create_primary' with two encrypt session did not result in an ESPI TSS error");
179+
panic!("Calling 'create_primary' with two encrypt session did not result in an ESAPI TSS error");
180180
}
181181
} else {
182182
panic!(

0 commit comments

Comments
 (0)