Function openpgp_card_sequoia::util::public_key_material_to_key
source · [−]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.