summaryrefslogtreecommitdiff
path: root/crates/tor-keymgr/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/tor-keymgr/src')
-rw-r--r--crates/tor-keymgr/src/config.rs2
-rw-r--r--crates/tor-keymgr/src/keystore/ctor/client.rs2
-rw-r--r--crates/tor-keymgr/src/keystore/ephemeral.rs2
-rw-r--r--crates/tor-keymgr/src/mgr.rs2
4 files changed, 4 insertions, 4 deletions
diff --git a/crates/tor-keymgr/src/config.rs b/crates/tor-keymgr/src/config.rs
index 0c210fc8b..9b0485560 100644
--- a/crates/tor-keymgr/src/config.rs
+++ b/crates/tor-keymgr/src/config.rs
@@ -331,7 +331,7 @@ impl ArtiKeystoreConfigBuilder {
}
let () = match self.primary.kind {
- // only enabled OR kind may be set, and when keymgr is not enabeld they must be false|disabled
+ // only enabled OR kind may be set, and when keymgr is not enabled they must be false|disabled
None | Some(EoA::Auto) => Ok(()),
_ => Err(ConfigBuildError::Inconsistent {
fields: ["enabled", "kind"].map(Into::into).into_iter().collect(),
diff --git a/crates/tor-keymgr/src/keystore/ctor/client.rs b/crates/tor-keymgr/src/keystore/ctor/client.rs
index 6536c906d..d85f44c44 100644
--- a/crates/tor-keymgr/src/keystore/ctor/client.rs
+++ b/crates/tor-keymgr/src/keystore/ctor/client.rs
@@ -193,7 +193,7 @@ impl CTorClientKeystore {
/// format.
///
/// TODO: we might want to move this to tor-hscrypto at some point,
-/// but for now, we don't actually *need* to expose this publically.
+/// but for now, we don't actually *need* to expose this publicly.
fn parse_client_keypair(
key: impl AsRef<str>,
) -> StdResult<(HsId, HsClientDescEncKeypair), MalformedClientKeyError> {
diff --git a/crates/tor-keymgr/src/keystore/ephemeral.rs b/crates/tor-keymgr/src/keystore/ephemeral.rs
index 713003138..6b20cc69a 100644
--- a/crates/tor-keymgr/src/keystore/ephemeral.rs
+++ b/crates/tor-keymgr/src/keystore/ephemeral.rs
@@ -25,7 +25,7 @@ type KeyIdent = (ArtiPath, KeystoreItemType);
/// system may do so for reasons outside of this library's control. Some
/// examples are swapping RAM to disk, generating core dumps, invoking
/// suspend-to-disk power management, etc. This key store does not attempt to
-/// prevent this operating system behvaiour.
+/// prevent this operating system behaviour.
pub struct ArtiEphemeralKeystore {
/// Identifier hard-coded to 'ephemeral'
id: KeystoreId,
diff --git a/crates/tor-keymgr/src/mgr.rs b/crates/tor-keymgr/src/mgr.rs
index c68b4ab35..e2ac48c34 100644
--- a/crates/tor-keymgr/src/mgr.rs
+++ b/crates/tor-keymgr/src/mgr.rs
@@ -687,7 +687,7 @@ mod tests {
/// The corresponding fake public key type.
#[derive(Clone, Debug)]
struct TestPublicKey {
- /// The undelying key.
+ /// The underlying key.
key: KeystoreItem,
}