Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GPG and multiple recipients



On Thu, Oct 16, 2008 at 12:12:06PM -0400, Don Levey wrote:
> use in a data processing environment (the specific one isn't really
> important).  The question came up: when encrypting a file, how does it
> handle multiple recipients?  I know that multiple addresses can be
> specified (each with their own --recipient tag), and as one output file
> is created clearly it's not just a simple encryption of the input file
> using only the recipient's public key.
> 
> One possibility we discussed was that gpg generates its own key,
> encrypts the data with that, and then the recipient's public key is used
> to encrypt the data key and that is then tacked on to the metadata.  If
> this is the case, it would explain why the output file grows somewhat
> with each new recipient.

In fact, this is what always happens, one recipient (R)  or n recipients
R0..Rn. GPG makes a random key K, encrypts your message M with K, then
sends K(M) + R0(K) +... Rn(K).

http://www.menet.umn.edu/docs/software/pgp/pgp/pgp.html

-dsr-

-- 
http://tao.merseine.nu/~dsr/eula.html is hereby incorporated by reference.

You can't defend freedom by getting rid of it.






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org