pub fn public_key_material_and_fp_to_key(
pkm: &PublicKeyMaterial,
key_type: KeyType,
time: &KeyGenerationTime,
fingerprint: &Fingerprint
) -> Result<PublicKey, Error>
Expand description
Meta-Helper fn: get a Sequoia PublicKey from an openpgp-card PublicKeyMaterial, timestamp and card-Fingerprint.
For ECC decryption keys, possible values for the parameters hash
and sym
will be tested.
Once a key with matching fingerprint is found in this way, it is considered the correct key,
and returned.
The Fingerprint of the retrieved PublicKey is always validated against the Fingerprint
as
stored on the card. If the fingerprints doesn’t match, an Error is returned.