0% found this document useful (0 votes)
136 views5 pages

Bouncy Castle - Dev - Problem With Decryption

The document discusses a problem decrypting an encrypted file using Bouncy Castle. A partner encrypts files using Eldos Secure Blackbox PGP SDK for the partner to decrypt with Bouncy Castle. However, the partner now cannot decrypt files encrypted with Eldos. The error messages shown are from the partner's decryption attempt but their meaning is unclear. Assistance is sought to resolve the incompatibility between Eldos encryption and Bouncy Castle decryption.

Uploaded by

Spit Fire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
136 views5 pages

Bouncy Castle - Dev - Problem With Decryption

The document discusses a problem decrypting an encrypted file using Bouncy Castle. A partner encrypts files using Eldos Secure Blackbox PGP SDK for the partner to decrypt with Bouncy Castle. However, the partner now cannot decrypt files encrypted with Eldos. The error messages shown are from the partner's decryption attempt but their meaning is unclear. Assistance is sought to resolve the incompatibility between Eldos encryption and Bouncy Castle decryption.

Uploaded by

Spit Fire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Bouncy Castle - Dev - Problem with decryption http://bouncy-castle.1462172.n4.nabble.com/Problem-with-decrypti...

Bouncy Castle › Bouncy Castle - Dev

Problem with decryption


Classic List Threaded 2 messages

Kelly Schoenhofen Problem with decryption Reply | Threaded |

Hey all – sorry how stupid this is going to sound,


but while we don’t use Bouncy Castle a partner
of ours does, and we’d like some technical
assistance for a product we’re not even using ;)

Full story: We encrypt a file for a partner we do


business with, they decrypt it with Bouncy Castle
(they say). In fact, just to get it out of the way,
this is from our partner:

“The version of Bouncy Castle is for JDK 1.4.


The signed .jar file in use is entitled ‘bcprov-
jdk14-135.jar.zip’. The Source file is entitled
‘bcpg-jdk14-135.jar.zip’. “

For a really long time we used PGP Desktop 8.02


to encrypt their files, ftp it to them and they
decrypted it. We’ve been moving our PGP
Desktop implementations to a more lights-out
friendly solution powered by the Eldos Secure
Blackbox PGP SDK; we switched this particular
partner to the Eldos SDK and they immediately
came back and said they can’t decrypt the file
encrypted with Eldos anymore. They did some
byte comparisons and the first thing they/we
noticed is it looked like Eldos wasn’t putting a
marker packet in the beginning of the encrypted
file. We’ve tried to address that “issue” and our
partner still says they are still unable to decrypt.
Here’s the error from our business partner that
they forwarded to us, we cannot make heads or
tails of it; we have no idea what it means other
than PGP decryption failed. Has anyone else

1 of 5 12/8/19, 3:02 PM
Bouncy Castle - Dev - Problem with decryption http://bouncy-castle.1462172.n4.nabble.com/Problem-with-decrypti...

seen this, and can they point us in the right


direction? Is this even a Bouncy Castle error?

24/10/08 12:07:05 - 00 - (pgpDecrypt)


PGPUPoC::processRun - begin

24/10/08 12:07:05 - 00 - (pgpDecrypt)


Class:OpenPGPUPoC,Method:processRun,
RunMessage is PGPRequest

24/10/08 12:07:05 - 00 - (pgpDecrypt)


Class:OpenPGPUPoC,Method:processRun,
decrypting D:/ftproot/hallmark/from_hallmark
/archive/PGP-TestForDecryption5.txt.pgp using
D:\hci\root4.2\hdc_hallmark
\keys\XXXX_sec.asc...

10/24/2008 12:07:05

[pd :pdtd:ERR /0: pgpDecrypt] Tcl error:

msgId = message1

proc = 'cljTPS'

args = '{CLASS
com.cwi.linc.upoc.OpenPGPUPoC} {CONFIGTBL
pgp_config_hi_decrypt}'

result =
'com.quovadx.cloverleaf.upoc.CloverleafException:
Class:OpenPGPUPoC,Method:processRun, failed
to Decrypt file
Class:OpenPGPUPoC,Method:decryptFile,
IOException: null'

errorInfo: '

com.quovadx.cloverleaf.upoc.CloverleafException:
Class:OpenPGPUPoC,Method:processRun, failed
to Decrypt file
Class:OpenPGPUPoC,Method:decryptFile,
IOException: null

at
com.cwi.linc.upoc.OpenPGPUPoC.processRun(OpenPGPUPoC.ja

at

2 of 5 12/8/19, 3:02 PM
Bouncy Castle - Dev - Problem with decryption http://bouncy-castle.1462172.n4.nabble.com/Problem-with-decrypti...

com.bostech.linc.LincBase.processRun(LincBase.java:108)

at
com.bostech.upoc.UPoCBase.process(UPoCBase.java:166)

at
com.quovadx.cloverleaf.upoc.CloverEnv.processTPS(CloverEnv

invoked from within

"processTPS "$instanceMap($__userArgs)
$context $mode $mh""

(procedure "cljTPS" line 25)

invoked from within

"cljTPS {MSGID message1} {CONTEXT


pdupoc_write} {ARGS {{CLASS
com.cwi.linc.upoc.OpenPGPUPoC} {CONFIGTBL
pgp_config_hi_decrypt}}} {MODE run}
{VERSION 3...."'

10/24/2008 12:07:05

[upoc:tps :ERR /0: pgpDecrypt] tpsRun() failed

24/10/08 12:07:18 - 00 - (conf_in)


FileReaderUPoC::createReader; failed to move
D:\ftproot\hallmark\from_hallmark\decrypted
\PGP-TestForDecryption5.txt.pgp to D:\ftproot
\hallmark\from_hallmark\stage\PGP-
TestForDecryption5.txt.pgp

| Environmental Configuration
Kelly Schoenhofen
Lead

Hallmark Insights P 612.321.5827 M 612.987.4442

www.HallmarkInsights.com [hidden email]

3 of 5 12/8/19, 3:02 PM
Bouncy Castle - Dev - Problem with decryption http://bouncy-castle.1462172.n4.nabble.com/Problem-with-decrypti...

Harakiri Re: Problem with decryption


Reply | Threaded |

--- On Mon, 10/27/08, Kelly Schoenhofen


<[hidden email]> wrote:

12:07:05

> [pd :pdtd:ERR /0: pgpDecrypt] Tcl error:


> msgId = message1
> proc = 'cljTPS'
> args = '{CLASS
> com.cwi.linc.upoc.OpenPGPUPoC}
{CONFIGTBL
> pgp_config_hi_decrypt}'
> result =
>
'com.quovadx.cloverleaf.upoc.CloverleafException:
> Class:OpenPGPUPoC,Method:processRun,
failed to Decrypt file
> Class:OpenPGPUPoC,Method:decryptFile,
IOException: null'
> errorInfo: '

There is no Bouncycastle error in this stack


trace, in fact the only error you see is an
IOException which is a generic io error, which
could point to the fact that they did not correctly
read in the file at all. Nobody can help you with a
stacktrace like this, if you dont see any
org.bouncycastle.* packages or errors - then it
aint a bouncycastle problem. They should supply
you the except error message from bouncycastle

4 of 5 12/8/19, 3:02 PM
Bouncy Castle - Dev - Problem with decryption http://bouncy-castle.1462172.n4.nabble.com/Problem-with-decrypti...

and - the code they used from bouncycastle to


decrypt the file.

Alternatively, just try to decrypt a test file with


BC yourself - it aint that hard - there are quiet a
few pgp examples in the bouncycastle API -
there has been a console bc api releases a few
days ago too.

« Return to Bouncy Castle - Dev |

Free forum by Nabble Edit this page

5 of 5 12/8/19, 3:02 PM

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy