An Error Has Occurred Encrypted Session Key Is Bad
GnuPG Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Okay, here's your answer. The test keys and message tht William gave me helped a lot. It key pad looks like GnuPG is listing Twofish, then Blowfish, then CAST as preferred algorithms. For some reason, key bar GnuPG is encrypting to Blowfish, instead of Twofish. (Bug, Werner?) To be decrypted in PGP 6.5.x, the message must use CAST, IDEA, or 3DES as the ESK. To be the most compatable with all implementations of OpenPGP, one should 3DES, as this will be present in all OpenPGP compliant programs. (IDEA and CAST5 are "shoulds", 3DES is a "must".) You are taking a chance with the others, if you plan to move the secret keys to a different program in the future. Note that this incompatability only applies to keys generated in one program, and imported and used in another. You could keep the old key and work around this by adding a new UID with a different preferred algorithm specified, and encrypting to that. - --Len. On Fri, 17 Mar 2000, Chris Ruvolo wrote: > On Thu, 16 Mar 2000, William X. Walsh wrote: > > >>>Well, I don't know about this. I've had a large problem with PGP 6.x not > >>>being > >>>able to decrypt messages encrypted by GnuPG, regardless if they key it is > >>>encrypting to was created in GnuPG or PGP. > >> > >> So you're saying that GnuPG and PGP are *not* compatible and people > >> using one may not be able to successfully exchange encrypted > >> documents with users of the other? > > > >The problem is persistant, and anytime I encrypt a message using GnuPG, users > >of PGP 6.5.x (for windows at least) cannot decrypt the message. It gives an > >error. I've reported this a few times in the past over the last few months. > > > >This is not an intermittent problem. > > > I can confirm this problem. I was one of the people that emailed William. > I tested it with GPG 1.0.1 and PGP Freeware for Windows 6.5.2. Perhaps > there is some kind of option I am missing or something? > > I have the following settings in my options file: > > no-greeting > force-v3-sigs > escape-from-lines > lock-once > load-extension rsa > load-extension idea > rfc1991 > keyserver wwwkeys.us.pgp.net > > Any suggestions? Thanks. > > -Chris > __ L. Sassaman System Administrator | "All of the chaos Technology Consultant | Makes perfect sense..." icq.. 10735603 | pgp.. finger:
Post #1 of 3 (1014 views) Permalink Problems with PGP user decrypting GPG files Hi everyone, We are in the process of testing our encryption / decrytion with some trading partners that are using PGP 7.0.1 on windows 2000 advanced server. We are using gpg 1.0.6 on tru64 unix v5.1 on a DS10. I have imported into GPG their public keys, and our private/public pair that were exported from PGP 6.5.8 on a PC. I encrypt files by using the following shell script: #!/bin/ksh # # Program Name: /usr/bin/encryptgpguser # # Author: Mike Kirkland # Date: 11-28-01 # # Purpose: This https://lists.gnupg.org/pipermail/gnupg-users/2000-March/005167.html script will encrypt files past to it from server lyra # after encryption lyra will ftp files from this directory to be sent to payer # This script will be rexec from lyra with 2 parameters passed to it # # 1 the filename to be encrypted # 2 the payer's public key identifier to be used for encryption # # Modifications: N/A cd /gpguser USAGE="Usage: `basename $0`
Alegria Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ http://bouncy-castle.1462172.n4.nabble.com/ERROR-encrypted-session-key-is-bad-when-trying-to-decrypt-td1466221.html ♦ ERROR: encrypted session key is bad (when trying to decrypt) *Hi everyone* This is my problem. 1. I'm using keyBasedLargeFileProcessor and keyBasedFileProcessor example for encrypting and https://www.mail-archive.com/tbudl@thebat.dutaint.com/msg44721.html decrypting files 2. I've installed Network associates PGP Freeware version 6.5.8 and generated an RSA and DSS keypair with it. 3. I've exported the corresponding public key an error from the keypair generated in step #2 4. I use public key from step 3 for encryption via keyBasedLargeFileProcessor and keyBasedFileProcessor 5. Encryption of a 2K text file is done. No error or exceptions appear 6. When I tell Network associates PGP Freeware version 6.5.8 to decrypt the file i get "ERROR: encrypted session key an error has is bad" I've done the same test using PGP Desktop and KGPG(linux) latest versions and nothing like this has happenned. Both programs were able to decrypt what BouncyCastle had encrypted, so what's the problem with Network associates PGP Freeware version 6.5.8 ??? I know this is and old version but thats the one our client uses (to save some $$$). Is there any backward compatibility option I'm not enabling? or could Network associates PGP be just too old to handle encryption from bouncyCastle? I've tried with and without ASCII Armor and integrity check but no luck, still getting the same error. Strange thing is that if i used keyBasedFileProcessor and keyBasedLargeFileProcessor to encrypt and decrypt it works fine. Meaning: BouncyCastle can encrypt and decrypt for PGP Desktop, KGPG and Himself. What could be the problem?? Thanks in advance David Hook-4 Reply | Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: ERR
qualifies for TBUDL. Please read on: >> I just reinstalled PGPckt after having some problems with XP. Could >> someone please post me an encrypted message for test purpose? NA> Just did... off List. Yes I got your message without any problem. But messages sent by Jonathan and Kevin had problems. In Jonathan's case: 1. As soon as I pressed Ctrl + Shift + D to decrypt, and before I was anywhere near the passphrase area, TB! generated more than 20 error boxes with message: "The passphrase you entered does not match any of the usable listed keys" 2. I sent an encrypted reply to Jonathan and also encrypted to my own key. After I sent the message, I tried decrypting the message in the sent folder but TB! generated another encrypted message. Only after did I encrypted that particular message again, did I get the decrypted version. Could it be that I somehow managed to encrypt the same message twice? Interestingly, Jonathan at the other end had the same problem: ,----- [ Begin Quote ] ----- | >> TB! generated series of error boxes (more than 20 in fact ! I kept | >> clicking Ok and the new ones kept appearing!)with message: | | >> 'The passphrase you entered does not match any of the usable listed | >> keys' What do you think is the problem?' | | JA> Odd thing is, I got exactly the same thing. After going through | JA> the messages, it gave me the option to decrypt it. The more | JA> curious thing was the fact I had to decrypt it twice to see the | JA> message... very odd. As for why it is doing it. I don't have a | JA> clue ;) `----- [ End Quote ] ----- In Kevin's Case: 1. I simply can't decrypt his message. A 'batpgp60.dll' error box pops up with message, "An error has occurred: encrypted session key is bad" I use: PGP 6.5.8ckt (Build 06) -- Cheers, Sudip For PM:- mailto:[EMAIL PROTECTED] ---- Sudip Pokhrel Kathmandu-NP PGP Key ID: 0xD93F5185 http://pgpkeys.mit.edu -- Sys Info -- Using The Bat! v1.61 on Windows XP 5.1 (Build 2600 ) H/W: Pentium IV 1.6 Ghz|256MB RAM|4