fn select_pk_for_encryption(
key: &SignedPublicKey,
) -> Option<&SignedPublicSubKey>
Expand description
Selects a subkey of the public key to use for encryption.
Returns None
if the public key cannot be used for encryption.
TODO: take key flags and expiration dates into account