From 7a4ec55d770aefbc07caab39682ca3775d9d6140 Mon Sep 17 00:00:00 2001 From: Steffen Eiden Date: Tue, 11 Jun 2024 11:53:08 +0200 Subject: [PATCH] rust/pvattest: Add short option for --arpk pvattest-C had a -a option for --arpk which the Rust implementation missed. Add this short option. Reviewed-by: Marc Hartmayer Signed-off-by: Steffen Eiden --- rust/pvattest/man/pvattest-create.1 | 2 +- rust/pvattest/man/pvattest-verify.1 | 2 +- rust/pvattest/src/cli.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/pvattest/man/pvattest-create.1 b/rust/pvattest/man/pvattest-create.1 index bf6f0020..bdb497f5 100644 --- a/rust/pvattest/man/pvattest-create.1 +++ b/rust/pvattest/man/pvattest-create.1 @@ -75,7 +75,7 @@ Write the generated request to FILE. .RE .RE .PP -\-\-arpk +\-a, \-\-arpk .RS 4 Save the protection key as unencrypted GCM-AES256 key in FILE Do not publish this key, otherwise your attestation is compromised. diff --git a/rust/pvattest/man/pvattest-verify.1 b/rust/pvattest/man/pvattest-verify.1 index 0a527b2a..8c445b99 100644 --- a/rust/pvattest/man/pvattest-verify.1 +++ b/rust/pvattest/man/pvattest-verify.1 @@ -45,7 +45,7 @@ must start at a page boundary. .RE .RE .PP -\-\-arpk +\-a, \-\-arpk .RS 4 Use FILE as the protection key to decrypt the request Do not publish this key, otherwise your attestation is compromised. Delete this key after verification. diff --git a/rust/pvattest/src/cli.rs b/rust/pvattest/src/cli.rs index 6582331a..919bf643 100644 --- a/rust/pvattest/src/cli.rs +++ b/rust/pvattest/src/cli.rs @@ -97,7 +97,7 @@ pub struct CreateAttOpt { /// Save the protection key as unencrypted GCM-AES256 key in FILE /// /// Do not publish this key, otherwise your attestation is compromised. - #[arg(long, value_name = "FILE", value_hint = ValueHint::FilePath,)] + #[arg(short, long, value_name = "FILE", value_hint = ValueHint::FilePath,)] pub arpk: String, /// Specify-additional data for the request. @@ -222,7 +222,7 @@ pub struct VerifyOpt { /// /// Do not publish this key, otherwise your attestation is compromised. /// Delete this key after verification. - #[arg(long, value_name = "FILE", value_hint = ValueHint::FilePath,)] + #[arg(short, long, value_name = "FILE", value_hint = ValueHint::FilePath,)] pub arpk: String, /// Define the output format.