View Single Post
Old 05-17-2008, 05:06 PM   #25
Gudy
Wizard
Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.Gudy ought to be getting tired of karma fortunes by now.
 
Gudy's Avatar
 
Posts: 1,154
Karma: 3252017
Join Date: Jan 2008
Location: Germany
Device: Pocketbook Touch Lux (623)
Quote:
Originally Posted by pilotbob View Post
Thanks for the info. The plot thickens.
Not necessarily. One way to achieve this would be a two-step process where you encrypt each book with a key unique to that book, then encrypt the key needed to decrypt the book with the PID. If the mobipocket format has a fixed place to store the decryption key four times for each of the four PIDs allowed, the size doesn't need to change.

If you assume a 2048 bit key for encrypting/decrypting the book, then storing four encrypted versions of that key takes 1 kB, which isn't that much.

I don't know if this is what happens, but IIRC, this is how gnupg works if you encrypt an email for multiple recipients (except that gnupg doesn't have a fixed number of "slots", so each additional recipient you encrypt the message for enlarges the whole thing by a couple hundred bytes).
Gudy is offline   Reply With Quote