feat: v1.2.1, pgp-card-make print-*-keys

This commit is contained in:
2022-04-14 23:26:22 +08:00
parent ef100c2921
commit b2e83b1c71
2 changed files with 1 additions and 3 deletions

View File

@@ -293,8 +293,6 @@ fn parse_security_sub_key_to_pgp_rsa_private_key(key: &Key<SecretParts, Subordin
} else { } else {
return simple_error!("Not unencrypted private key"); return simple_error!("Not unencrypted private key");
} }
} else {
return simple_error!("Not Key::V4 private key");
}; };
let p = BigNum::from_slice(p.value()).unwrap(); let p = BigNum::from_slice(p.value()).unwrap();
let q = BigNum::from_slice(q.value()).unwrap(); let q = BigNum::from_slice(q.value()).unwrap();

View File

@@ -47,7 +47,7 @@ impl Command for CommandImpl {
index_of_00_from_index_1 = i + 1; index_of_00_from_index_1 = i + 1;
break; break;
} }
}; }
if index_of_00_from_index_1 == 0 { if index_of_00_from_index_1 == 0 {
return simple_error!("Not valid encrypted data, cannot find 0x00"); return simple_error!("Not valid encrypted data, cannot find 0x00");
} }