pub fn public_key_material_to_key(
    pkm: &PublicKeyMaterial,
    key_type: KeyType,
    time: &KeyGenerationTime,
    hash: Option<HashAlgorithm>,
    sym: Option<SymmetricAlgorithm>
) -> Result<PublicKey, Error>
Expand description

Helper fn: get a Sequoia PublicKey from an openpgp-card PublicKeyMaterial.

For ECC decryption keys, hash and sym can be optionally specified.