feat: v1.2.1, pgp-card-make print-*-keys
This commit is contained in:
@@ -293,8 +293,6 @@ fn parse_security_sub_key_to_pgp_rsa_private_key(key: &Key<SecretParts, Subordin
|
||||
} else {
|
||||
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 q = BigNum::from_slice(q.value()).unwrap();
|
||||
|
||||
@@ -47,7 +47,7 @@ impl Command for CommandImpl {
|
||||
index_of_00_from_index_1 = i + 1;
|
||||
break;
|
||||
}
|
||||
};
|
||||
}
|
||||
if index_of_00_from_index_1 == 0 {
|
||||
return simple_error!("Not valid encrypted data, cannot find 0x00");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user