Function openpgp_card_sequoia::util::make_cert
source · pub fn make_cert(
open: &mut Card<Transaction<'_>>,
key_sig: PublicKey,
key_dec: Option<PublicKey>,
key_aut: Option<PublicKey>,
pw1: Option<&str>,
pinpad_prompt: &dyn Fn(),
touch_prompt: &(dyn Fn() + Send + Sync),
user_ids: &[String]
) -> Result<Cert>
Expand description
Create a Cert from the three subkeys on a card. (Calling this multiple times will result in different Certs!)
When pw1 is None, attempt to verify via pinpad.
prompt
notifies the user when a pinpad needs the user pin as input.
FIXME: accept optional metadata for user_id(s)?