jruby-openssl icon indicating copy to clipboard operation
jruby-openssl copied to clipboard

CFB1 block mode does not work

Open kares opened this issue 10 years ago • 0 comments

... due BC not really supporting CFB-1 : http://www.bouncycastle.org/jira/browse/BJA-530

attempts to use such JCE Cipher instance will end as java.lang.ArithmeticException: / by zero

java.lang.ArithmeticException: / by zero
    at org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher.getUpdateOutputSize(Unknown Source)
    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher$BufferedGenericBlockCipher.getUpdateOutputSize(Unknown Source)
    at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineUpdate(Unknown Source)
    at javax.crypto.Cipher.update(Cipher.java:1714)
    at org.jruby.ext.openssl.Cipher.update(Cipher.java:1092)

originally reported as #31

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/9433593-cfb1-block-mode-does-not-work?utm_campaign=plugin&utm_content=tracker%2F136995&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136995&utm_medium=issues&utm_source=github).

kares avatar Mar 11 '15 10:03 kares