Skip to content

Commit 9412f85

Browse files
author
gefeili
committed
Modify the comments.
1 parent e6fc301 commit 9412f85

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/org/bouncycastle/crypto/modes/GCFBBlockCipher.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class GCFBBlockCipher
3434
public GCFBBlockCipher(BlockCipher engine)
3535
{
3636
super(engine);
37-
37+
//TODO: Ensure the key size of the engine is 32 bits
3838
this.cfbEngine = new CFBBlockCipher(engine, engine.getBlockSize() * 8);
3939
}
4040

@@ -113,8 +113,7 @@ protected byte calculateByte(byte b)
113113

114114
byte[] nextKey = new byte[32];
115115
int blockSize = base.getBlockSize();
116-
//TODO: The for-loop will not function correctly if 32 is not evenly divisible by blocksize
117-
// (i.e., 32 % blocksize != 0), So it's not working for DSTU7624Engine(512), RijndaelEngine(except 256), etc.
116+
118117
for (int i = 0; i < nextKey.length; i += blockSize)
119118
{
120119
base.processBlock(C, i, nextKey, i);

0 commit comments

Comments
 (0)