feat: fix YubiKey typo

This commit is contained in:
2025-05-01 22:41:09 +08:00
parent 1773186dbf
commit 86489c5d29
4 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ impl Command for CommandImpl {
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name())
.about("Yubikey HMAC decrypt")
.about("YubiKey HMAC decrypt")
.arg(
Arg::with_name("ciphertext")
.long("ciphertext")

View File

@@ -13,7 +13,7 @@ impl Command for CommandImpl {
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name())
.about("Yubikey HMAC encrypt")
.about("YubiKey HMAC encrypt")
.arg(
Arg::with_name("plaintext")
.long("plaintext")

View File

@@ -98,7 +98,7 @@ impl Command for CommandImpl {
ssh_public_key.write_string(format!("nistp{}", ec_bit_len).as_bytes());
ssh_public_key.write_string(pk_point_hex);
let ssh_public_key_str = format!(
"ecdsa-sha2-nistp{} {} Yubikey-PIV-{}", ec_bit_len, base64_encode(ssh_public_key), slot_id);
"ecdsa-sha2-nistp{} {} YubiKey-PIV-{}", ec_bit_len, base64_encode(ssh_public_key), slot_id);
json.insert("ssh_public_key", ssh_public_key_str.to_string());
}
_ => {}

View File

@@ -105,7 +105,7 @@ impl Command for CommandImpl {
eprintln!();
let ssh_pub_key = format!(
"{}ecdsa-sha2-{} {} Yubikey-PIV-{}",
"{}ecdsa-sha2-{} {} YubiKey-PIV-{}",
if ca {
"cert-authority,principals=\"root\" "
} else {