bc-java icon indicating copy to clipboard operation
bc-java copied to clipboard

RecordStream.java: Implementation of Decompression functions is missing in decodeAndVerify method

Open Gokul-Chavan opened this issue 3 years ago • 0 comments

In bouncy-castle 1.64 , we have decompression method in RecordStream.java class, we are using that to support GZIP decompression.

Now we are trying update the bouncy castle version to 1.71 , here In RecordStream.java the code block for decompression is missing in decodeAndVerify method.

Could you please point out the way to introduce this functionality in version 1.71 ?

Below is the code block for decompression which is missing in version 1.71 .

OutputStream cOut = readCompression.decompress(buffer); if (cOut != buffer) { cOut.write(decoded, 0, decoded.length); cOut.flush(); decoded = getBufferContents(); }

github reference:- https://github.com/bcgit/bc-java/commit/3b182cabfa8447c52327c9c93f9490a6643678ee#diff-4cc6a83276b86db957421a99b5a2a7dba860575d4edcb15f6106fb94819436a2

Gokul-Chavan avatar Jun 29 '22 11:06 Gokul-Chavan