Bug 1218258 - bouncycastle-1.50 org.bouncycastle.crypto.io.CipherInputStream broken, fixed in 1.51+
Summary: bouncycastle-1.50 org.bouncycastle.crypto.io.CipherInputStream broken, fixed ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bouncycastle
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: gil cattaneo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-04 12:27 UTC by Neal Gompa
Modified: 2015-05-17 06:38 UTC (History)
4 users (show)

Fixed In Version: bouncycastle-1.50-5.fc21
Clone Of:
Environment:
Last Closed: 2015-05-11 19:07:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Neal Gompa 2015-05-04 12:27:46 UTC
Description of problem:
org.bouncycastle.crypto.io.CipherInputStream in bouncycastle-1.50 is broken. When plaintext with >4079 bytes is encrypted, the decryption fails with an ArrayIndexOutOfBoundsException. A description of the problem[1] and test code[2] is available.

[1]: http://blog.philippheckel.com/2014/03/01/cipherinputstream-for-aead-modes-is-broken-in-jdk7-gcm/#Decrypting-with-org-bouncycastle-crypto-io-CipherInputStream-broken-in-1-50-fixed-in-future-versions 

[2]: https://github.com/binwiederhier/cipherinputstream-aes-gcm

Version-Release number of selected component (if applicable):
bouncycastle-1.50-6.fc22

How reproducible:
Always

Steps to Reproduce:
1. Install bouncycastle-1.50
2. Build and run test code

Actual results:
It fails to decrypt after encrypting with an ArrayIndexOutOfBoundsException error.

Expected results:
Encrypt and decrypt successfully

Additional info:
This issue is fixed in bouncycastle-1.51 and newer.

Comment 2 Fedora Update System 2015-05-04 18:07:50 UTC
bouncycastle-1.50-7.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/bouncycastle-1.50-7.fc22

Comment 3 Fedora Update System 2015-05-04 18:20:52 UTC
bouncycastle-1.50-5.fc21 has been submitted as an update for Fedora 21.
https://admin.fedoraproject.org/updates/bouncycastle-1.50-5.fc21

Comment 4 Fedora Update System 2015-05-08 07:35:29 UTC
Package bouncycastle-1.50-7.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing bouncycastle-1.50-7.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-7619/bouncycastle-1.50-7.fc22
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2015-05-11 19:07:29 UTC
bouncycastle-1.50-7.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2015-05-17 06:38:21 UTC
bouncycastle-1.50-5.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.