gpg-rs / gpgme

GPGme bindings for Rust
GNU Lesser General Public License v2.1
83 stars 13 forks source link

Key selection or encrypt with all subkeys #24

Open apognu opened 5 years ago

apognu commented 5 years ago

I'm not sure if this is an issue for here or the upstream gpgme folks.

I'm looking for a way to force selection of a specific subkey for encryption, or to encrypt using all encryption subkeys (each subkey would be a recipient of the message).

I know GPG automatically select the most recent subkey for encryption, and the ! suffix is used - on the command line - to select a particular subkey. I cannot find the equivalent for gpgme.

Is there any way to do that?