Forum: help-en

Monitor Forum | Start New Thread Start New Thread
RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-28 15:06
[forum:7153]
thank you, appreciate it.

RE: zlib inflate problem: invalid block typ [ Reply ]
By: Bernhard Reiter on 2020-04-27 15:32
[forum:7152]
Hi Ryu,

on bouncy castle I cannot really help. My main interest is to know if other implementation
are not interoperable with GnuPG or create bad OpenPGP packages.

Usually Bouncy Castle devs would know something about this faster.

Thanks again for giving the version number,
Bernhard

RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-27 14:14
[forum:7151]
Im searching for the support page for that.
The BC version is 1.8.6.

It appears to be happening on all decryption and encryption is working.
I wanted to see if anything is causing issue during encryption.
Can you shed some info on the encryption and decryption part?

RE: zlib inflate problem: invalid block typ [ Reply ]
By: Bernhard Reiter on 2020-04-27 09:34
[forum:7150]
Ryu,
thanks for the example code.

As for if the passphrase has to be left blank: I don't know enough about Bouncy castle to say if it works with it or not.

With which version of Bouncy Castle did you produce the problematic
file? Did you already contact them about this?
(I don't know much about how they take problem reports, very cool would be a
link to their public tracker with the report, if they have a public tracker).

Best Regards and thanks,
Bernhard

RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-23 16:45
[forum:7149]

pgptest.cs (3) downloads
Hi Bernhard, please see attached.

RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-22 23:12
[forum:7148]
For the sample keys, is it okay to leave the password blank in the pgp code?

example:
worker.EncryptionPrivateKeyFile = @"C:\....";
worker.EncryptionPassPhrase = " ";

RE: zlib inflate problem: invalid block typ [ Reply ]
By: Bernhard Reiter on 2020-04-22 15:50
[forum:7147]
Share the link to the bouncecastle example here for reference.

RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-22 14:52
[forum:7146]
Thank you, I will share with the developer. Let you know the results with these keys.

RE: zlib inflate problem: invalid block typ [ Reply ]
By: Bernhard Reiter on 2020-04-22 09:28
[forum:7145]
Hi Ryu,
best would be probably if you have a small example,
so that developers can create a problematic encrypted results
for test keys, e.g. encrypt to https://wiki.gnupg.org/SampleKeys.

If the creating code is from bouncyCastle, this maybe a defect with their code.

Best,
Bernhard

RE: zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-21 18:36
[forum:7144]
I have tried creating the keys using Kleopatra and tested using other online tools for key creation.
That is right, the keys were just recently created.

it is using a pgp code built in bouncyCastle.



The highlighted line of code below is returning a null in the "message" object: That then causes the process to return "False"

Stream clear = pbe.GetDataStream(sKey);

PgpObjectFactory plainFact = new PgpObjectFactory(clear);

PgpObject message = plainFact.NextPgpObject();

if (message is PgpCompressedData)
{
PgpCompressedData cData = (PgpCompressedData)message;
PgpObjectFactory pgpFact = new PgpObjectFactory(cData.GetDataStream());

message = pgpFact.NextPgpObject();
}

RE: zlib inflate problem: invalid block typ [ Reply ]
By: Bernhard Reiter on 2020-04-18 15:30
[forum:7143]
Hi Ryu,

possibly something is wrong about the encrypted file.
Deflation should happen after decryption, so the problem
was probably created when the file was encrypted.

The key seems to be generated quite recently. Do you know
how the file was created? (with which software which options?)
Maybe the problem can be reproduced?

If you are technically inclined: try activating more diagnostic options,
and try the operation on the command line https://wiki.gnupg.org/TroubleShooting#Command_line_operations

Best Regards,
Bernhard

zlib inflate problem: invalid block typ [ Reply ]
By: ryu morrison on 2020-04-17 19:17
[forum:7142]
Looking for info about this error? This happens during decryption using Kleopatra.

gpg: WARNING: cipher algorithm CAST5 not found in recipient preferences
gpg: encrypted with 4096-bit RSA key, ID FDC2754C19EE416F, created 2020-04-16
gpg: Fatal: zlib inflate problem: invalid block type


Thank you