Closed geNAZt closed 6 years ago
Are you absolutely sure the cipher object is not being used by more than one thread? Ciphers have to carry internal state as they are operating, they cannot be shared between threads.
Closed as likely to be a usage error.
Exception in thread "ProxProx Thread #4154" java.lang.ArrayIndexOutOfBoundsException: 16 at org.bouncycastle.crypto.modes.CFBBlockCipher.encryptByte(Unknown Source) at org.bouncycastle.crypto.modes.CFBBlockCipher.calculateByte(Unknown Source) at org.bouncycastle.crypto.StreamBlockCipher.processBytes(Unknown Source) at org.bouncycastle.crypto.modes.CFBBlockCipher.processBlock(Unknown Source) at org.bouncycastle.crypto.BufferedBlockCipher.processBytes(Unknown Source) at io.gomint.proxprox.network.EncryptionHandler.processCipher(EncryptionHandler.java:321)
We use this
to generate the cipher. We use SHA256 hashes as keys, and use the first 16 bytes as IV. This does not happen all the time but users reported it to us and we think its a issue in bouncycastle since we saw this in 1.54 and in latest release 1.59