PGP Inline encryption issues

View: New views
3 Messages — Rating Filter:   Alert me  

PGP Inline encryption issues

by Rajani123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear All,
I am working on a product which supports S/MIME, PGP sign and encryption.
We upgraded bouncy from 1.34 to 1.44. When we send a message for encryption,
encrypted message doesn't contains end pgp tag (-----END PGP
MESSAGE-----) this is happening only for PGP inline message
encryption, rest all working fine.

Since it is very common test case I am curious why it is not working.
I am getting "Error - No valid armored OpenPGP data block found" when
I opened encrypted message on thunderbird.

Thanks in advance,
Rajani Gali


Re: PGP Inline encryption issues

by David Hook-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It sounds like the underlying ArmoredOutputStream is not being closed
properly.

Regards,

David

On Fri, 2009-10-23 at 10:04 +0530, rajani chowdary wrote:

> Dear All,
> I am working on a product which supports S/MIME, PGP sign and encryption.
> We upgraded bouncy from 1.34 to 1.44. When we send a message for encryption,
> encrypted message doesn't contains end pgp tag (-----END PGP
> MESSAGE-----) this is happening only for PGP inline message
> encryption, rest all working fine.
>
> Since it is very common test case I am curious why it is not working.
> I am getting "Error - No valid armored OpenPGP data block found" when
> I opened encrypted message on thunderbird.
>
> Thanks in advance,
> Rajani Gali
>



Re: PGP Inline encryption issues

by Rajani123 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks David,
It is working with your solution.

Regards,
Rajani

David Hook-2 wrote:
It sounds like the underlying ArmoredOutputStream is not being closed
properly.

Regards,

David

On Fri, 2009-10-23 at 10:04 +0530, rajani chowdary wrote:
> Dear All,
> I am working on a product which supports S/MIME, PGP sign and encryption.
> We upgraded bouncy from 1.34 to 1.44. When we send a message for encryption,
> encrypted message doesn't contains end pgp tag (-----END PGP
> MESSAGE-----) this is happening only for PGP inline message
> encryption, rest all working fine.
>
> Since it is very common test case I am curious why it is not working.
> I am getting "Error - No valid armored OpenPGP data block found" when
> I opened encrypted message on thunderbird.
>
> Thanks in advance,
> Rajani Gali
>