github - added argument check for bit block size.
@@ -36,6 +36,11 @@ public CFBBlockCipher(
{
super(cipher);
+ if (bitBlockSize < 8 || bitBlockSize % 8 != 0)
+ {
+ throw new IllegalArgumentException("CFB" + bitBlockSize + " not supported");
+ }
+
this.cipher = cipher;
this.blockSize = bitBlockSize / 8;
