diff options
author | Werner Koch <[email protected]> | 2025-09-02 10:37:47 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2025-09-02 10:38:12 +0000 |
commit | 66216bf54637d5cf2c2ec0d2a4723d5ba61d09d1 (patch) | |
tree | a30db02c7c22d3231db939bdbc3f3162ff45e5ed | |
parent | agent:w32: Fix non-release of MAPSID. (diff) | |
download | gnupg-66216bf54637d5cf2c2ec0d2a4723d5ba61d09d1.tar.gz gnupg-66216bf54637d5cf2c2ec0d2a4723d5ba61d09d1.zip |
doc: Document --add-recipients
--
-rw-r--r-- | doc/gpg.texi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/gpg.texi b/doc/gpg.texi index fcef474f9..2f9134252 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -193,6 +193,26 @@ the user needs to enter the passphrase. The option @opindex store Store only (make a simple literal data packet). + +@item --add-recipients +@itemx --change-recipients +@opindex add-recipients +@opindex change-recipients +These two commands can be used to change the recipients of an +encrypted file or to add more recipients without fully decrypting the +file. This command works by decrypting just the encrypted session key +and then encrypt the session key to the new recipients given with the +@option{--recipient} options. The output is the entire file with the +recipients added. The advantage over a simple decrypt and encrypt is +that any inner signature is kept intact and that gpg does not need to +actually decrypt the bulk of the data. If +@option{--change-recipients} is used instead of +@option{--add-recipients} all existing recipients are removed from the +output file so than only the newly specified recipients are able to +decrypt the new file. Note also that symmetric encrypted session keys +are removed from the output for both variants of the command. + + @item --decrypt @itemx -d @opindex decrypt |