freenet/fred-staging — pull request #242 by unixninja92 (2014-06-25 07:37:21+00:00)
Title: Allow upgrade from Bouncy Castle 149 to 150

This fixes our dependency on BC 149's outdated OCB implementation. I copied the OCBBlockCipher class from BC149 so that we can can still support the old nonce length as long as we need to. This also makes it trivially easy to update to the new nonce length for OCB.