Home GnuPG

Add helpers to check whether a key is usable for encryption/signing

Description

Add helpers to check whether a key is usable for encryption/signing

These helpers check that the key has a subkey with the required
capability that is neither expired nor revoked nor otherwise invalid.
In case of signing, additionally the secret subkey must be available.