Compare commits

..

No commits in common. "ba64db8f009c873cb32beb4cff6ca3cd863c23c8" and "bac762f5bec1567de54c2295977625ec96353796" have entirely different histories.

4 changed files with 8 additions and 9 deletions

4
Cargo.lock generated
View File

@ -1674,7 +1674,7 @@ dependencies = [
[[package]]
name = "keyfork"
version = "0.2.3"
version = "0.2.2"
dependencies = [
"card-backend-pcsc",
"clap",
@ -1835,7 +1835,7 @@ dependencies = [
[[package]]
name = "keyfork-shard"
version = "0.2.2"
version = "0.2.1"
dependencies = [
"aes-gcm",
"anyhow",

View File

@ -1,6 +1,6 @@
[package]
name = "keyfork-shard"
version = "0.2.2"
version = "0.2.1"
edition = "2021"
license = "AGPL-3.0-only"

View File

@ -25,7 +25,7 @@ use openpgp::{
stream::{DecryptionHelper, DecryptorBuilder, VerificationHelper},
Parse,
},
policy::{NullPolicy, Policy},
policy::{NullPolicy, Policy, StandardPolicy},
serialize::{
stream::{ArbitraryWriter, Encryptor2, LiteralWriter, Message, Recipient, Signer},
Marshal,
@ -276,7 +276,7 @@ impl<P: PromptHandler> Format for OpenPGP<P> {
key_data: &[Self::PublicKey],
threshold: u8,
) -> Result<Self::EncryptedData, Self::Error> {
let policy = NullPolicy::new();
let policy = StandardPolicy::new();
let mut pp = vec![SHARD_METADATA_VERSION, threshold];
// Note: Sequoia does not export private keys on a Cert, only on a TSK
signing_key
@ -362,7 +362,7 @@ impl<P: PromptHandler> Format for OpenPGP<P> {
public_key: &Cert,
signing_key: &mut Self::SigningKey,
) -> Result<EncryptedMessage> {
let policy = NullPolicy::new();
let policy = StandardPolicy::new();
let valid_cert = public_key
.with_policy(&policy, None)
.map_err(Error::Sequoia)?;
@ -577,8 +577,7 @@ fn get_encryption_keys<'a>(
openpgp::packet::key::UnspecifiedRole,
> {
cert.keys()
// NOTE: this causes complications on Airgap systems
// .alive()
.alive()
.revoked(false)
.supported()
.for_storage_encryption()

View File

@ -1,6 +1,6 @@
[package]
name = "keyfork"
version = "0.2.3"
version = "0.2.2"
edition = "2021"
license = "AGPL-3.0-only"