session key for decryption

vedaal vedaal@hotmail.com
Wed May 8 18:43:01 2002


> Message: 13
> To: gnupg-users@gnupg.org
> Subject: Re: using a released session key to decrypt
> From: Werner Koch <wk@gnupg.org>
> Date: Wed, 08 May 2002 16:11:29 +0200
>
> On Wed, 8 May 2002 09:50:02 -0400, vedaal  said:
>
> > is there a gnupg command that allows decryption of a message, using a
> > revealed session key?
>
> --show-session-key and --override-session-key
>
> See the man page for details
...
i'm sorry for not being clearer,

i had already checked the man page, and used both commands, but could not
get it to work.
i started with a file  d:\skt1.txt , encrypted to a test key,
then used the --show-session-key command,
and after decryption, got a session key string, and the decrypted plaintext
output into a file,
then, when i wanted to use the session key string to decrypt the original
file, i could not get it to work.

here is the sequence of gpg commands:

 D:\WinPT>gpg --show-session-key d:\skt1.txt

You need a passphrase to unlock the secret key for
user: "test <test@key.test>"
2048-bit RSA key, ID F77AFF7B, created 2001-04-26

gpg: session key: "1:BDFC53FC47F75CAD12A83F16B60AE805"
gpg: encrypted with 2048-bit RSA key, ID F77AFF7B, created 2001-04-26
      "test <test@key.test>"
gpg: d:\skt1.txt: unknown suffix
Enter new filename: d:\ssk1.txt
File `d:\ssk1.txt' exists. Overwrite (y/N)? y

Welcome, Honored Traditional User,
 What is thy bidding?
 Type a valid Command, and it shall be done.
 D:\WinPT>gpg --override-session-key
BDFC53FC47F75CAD12A83F16B60AE805 --decrypt d:\skt1.txt

gpg: encrypted with 2048-bit RSA key, ID F77AFF7B, created 2001-04-26
      "test <test@key.test>"
gpg: public key decryption failed: bad key
gpg: decryption failed: secret key not available

Welcome, Honored Traditional User,
 What is thy bidding?
 Type a valid Command, and it shall be done.
 D:\WinPT>gpg --override-session-key BDFC53FC47F75CAD12A83F16B60AE805
d:\skt1.txt
gpg: encrypted with 2048-bit RSA key, ID F77AFF7B, created 2001-04-26
      "test <test@key.test>"
gpg: public key decryption failed: bad key
gpg: decryption failed: secret key not available

Welcome, Honored Traditional User,
 What is thy bidding?
 Type a valid Command, and it shall be done.
 D:\WinPT>gpg --override-session-key BDFC53FC47F75CAD12A83F16B60AE805
gpg: Go ahead and type your message ...
--decrypt d:\skt1.txt


after typing in --decrypt d:\skt1.txt
gpg just showed a blinking cursor
and had no further activity.

the same thing happened if the -- was left out,
and also if just the filename without the decrypt command
was entered after the prompt of "Go ahead and type your message...",

my question is,
is there a specific command syntax to use together with/after/before
 the --override-session-key string     command?

Thanks Again,

vedaal