gcry_cipher_setkey(h,k,l)

Timo Schulz twoaday@freakmail.de
Mon, 22 Apr 2002 19:11:06 +0200


On Mon Apr 22 2002; 18:45, Rüdiger Sonderfeld wrote:


> > 1. Generate a 256 bit random key.
> 
> So I have the problem if I want to decrypt it I have to 
> remember the random key.

No. This key is encrypted with the digest key and this key (from the
digest) is derrived from the passphrase. So you don't need to remember 
the randomly chosen key.

 
> 4. Encrypt the data with the key from step one.
> 
> from step one? for what is then step 2/3?

You can compare this with the OpenPGP scheme:

The digest key protects the session key. This key does not encrypt
any data, it's just to encrypt the session key.


        Timo