pub fn public_key_material_and_fp_to_key(
    pkm: &PublicKeyMaterial,
    key_type: KeyType,
    created: &KeyGenerationTime,
    fingerprint: &Fingerprint,
) -> Result<PublicKey, Error>
Expand description

Get PublicKey for an openpgp-card PublicKeyMaterial, KeyGenerationTime and Fingerprint.

For ECC decryption keys, possible values for the parameters hash and alg_sym will be tested. If 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 don’t match, an Error is returned.