WIP: keyfork-shard: traitify functionality #22

Manually merged
ryan merged 8 commits from keyfork-shard-traitify into main 2024-02-19 10:51:04 +00:00
3 changed files with 3 additions and 3 deletions
Showing only changes of commit d51ee36ace - Show all commits

View File

@ -33,7 +33,7 @@ fn run() -> Result<()> {
let openpgp = OpenPGP; let openpgp = OpenPGP;
let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery.as_deref(), messages_file)?; let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery.as_deref(), messages_file)?;
print!("{}", smex::encode(&bytes)); print!("{}", smex::encode(bytes));
Ok(()) Ok(())
} }

View File

@ -20,7 +20,7 @@ fn run() -> Result<()> {
let mut bytes = vec![]; let mut bytes = vec![];
remote_decrypt(&mut bytes)?; remote_decrypt(&mut bytes)?;
print!("{}", smex::encode(&bytes)); print!("{}", smex::encode(bytes));
Ok(()) Ok(())
} }

View File

@ -76,7 +76,7 @@ impl ShardExec for OpenPGP {
{ {
let openpgp = keyfork_shard::openpgp::OpenPGP; let openpgp = keyfork_shard::openpgp::OpenPGP;
let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery, input)?; let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery, input)?;
write!(output, "{}", smex::encode(&bytes))?; write!(output, "{}", smex::encode(bytes))?;
Ok(()) Ok(())
} }