Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I'm currently reading up on the components of PGP and I am wondering what exactly the PRNG is used for. PGP uses ANSI X9.17 and entropy from a users keystrokes to generate a temporary key.

So, is this temporary key used for the public key encryption? Is it one of the keys in the key pairs? And how does PGP actually generate it's key pairs?

share|improve this question

1 Answer 1

(Open)PGP is a hybrid encryption system, it uses both public/private and symmetric key encryption. Public/private key encryption is very inefficient for any kind of data but very small one, so when encrypting for some private key, usually you're only encrypting some block cipher which is then used to actually encrypt the data.

For generating this key, a random number generator is used.

share|improve this answer
    
Thanks for your reply. Would you be able to get into more detail as to how the Random Number Generator is used? Suppose that the private key is generated from Random Number Generator + user entropy. How is the other element of the pair (in this case, the public key) generated? –  WhiteBit Dec 10 '13 at 14:57
    
When not creating a new public-private key pair, it is only used for block ciphers. such a block is an arbitrary random number of a given size. –  Jens Erat Dec 10 '13 at 15:54
    
Thanks for explaining that public key encryption is used only to encrypt the block cipher of the symmetric key. The question that I asked is still unanswered though. –  WhiteBit Dec 13 '13 at 16:03
    
You asked three questions, I answered the first two of them. I don't know the mathematical background well enough to further explain the third one, other can do better. –  Jens Erat Dec 13 '13 at 18:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.