bcgit/bc-java — pull request #58 by gnu-user (2014-01-29 05:59:52+00:00)
Title: Support for IVs with Block Ciphers in IESEngine and a Bug Fix

I have been in contact with @rtyley regarding the support for IVs in IESEngine and he recommend that I submit a pull request directly to the Bouncy Castle project.

The following pull request contains the following changes.
* Added support for using ParametersWithIV when using a Block Cipher with IESEngine
* RandomGenerator interface is used for defining a nonceGenerator which generates a new IV each time processBlock is executed.
* Fixed a NegativeArrayIndex bug by checking that the size of the input is larger than the MAC.

If you have any questions please let me know, I would really like support for IVs when using IESEngine added to Bouncy Castle. We have been using IVs with IESEngine now for months with ~1000+ users using the software https://github.com/tinfoilhat/tinfoil-sms and would love for it to be part of Bouncy Castle.

If you would like me to add a unit test for this let me know, I already have tests done using JUnit, but could just create new IESEngine tests for Bouncy Castle.