feat: v1.11.6, rename file-sign, file-verify

This commit is contained in:
2025-03-26 07:40:54 +08:00
parent 1582f76cae
commit af20f4c4a0
5 changed files with 8 additions and 8 deletions

2
Cargo.lock generated
View File

@@ -508,7 +508,7 @@ dependencies = [
[[package]]
name = "card-cli"
version = "1.11.5"
version = "1.11.6"
dependencies = [
"aes-gcm-stream",
"authenticator 0.3.1",

View File

@@ -1,6 +1,6 @@
[package]
name = "card-cli"
version = "1.11.5"
version = "1.11.6"
authors = ["Hatter Jiang <jht5945@gmail.com>"]
edition = "2018"

View File

@@ -36,7 +36,7 @@ pub struct CommandImpl;
// all hex is in lower case default
// file ext: *.simple-sig
impl Command for CommandImpl {
fn name(&self) -> &str { "sign-file" }
fn name(&self) -> &str { "file-sign" }
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("PIV sign(with SHA256) subcommand")

View File

@@ -18,7 +18,7 @@ use crate::util::base64_decode;
pub struct CommandImpl;
impl Command for CommandImpl {
fn name(&self) -> &str { "verify-file" }
fn name(&self) -> &str { "file-verify" }
fn subcommand<'a>(&self) -> App<'a, 'a> {
SubCommand::with_name(self.name()).about("PIV verify(with SHA256) subcommand")

View File

@@ -38,7 +38,7 @@ mod cmd_se_ecdh;
mod cmd_se_ecsign;
mod cmd_se_generate;
mod cmd_se_recover;
mod cmd_signfile;
mod cmd_filesign;
mod cmd_signjwt;
mod cmd_signjwtsoft;
mod cmd_signjwtse;
@@ -50,7 +50,7 @@ mod cmd_sshpivsign;
mod cmd_sshpubkey;
mod cmd_u2fregister;
mod cmd_u2fsign;
mod cmd_verifyfile;
mod cmd_fileverify;
mod cmd_parseecdsasignature;
mod cmd_generatekeypair;
mod digest;
@@ -133,8 +133,8 @@ fn inner_main() -> CommandError {
Box::new(cmd_signjwt::CommandImpl),
Box::new(cmd_signjwtsoft::CommandImpl),
Box::new(cmd_signjwtse::CommandImpl),
Box::new(cmd_signfile::CommandImpl),
Box::new(cmd_verifyfile::CommandImpl),
Box::new(cmd_filesign::CommandImpl),
Box::new(cmd_fileverify::CommandImpl),
Box::new(cmd_se::CommandImpl),
Box::new(cmd_se_generate::CommandImpl),
Box::new(cmd_se_recover::CommandImpl),