Skip to content

Commit bda52d5

Browse files
committed
corrected bit block size.
1 parent 7e6e864 commit bda52d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/java/org/bouncycastle/crypto/test/GOST3412Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void performTest()
9797
private void ctrTest()
9898
throws Exception
9999
{
100-
StreamBlockCipher sb = new G3413CTRBlockCipher(new GOST3412_2015Engine(), 128);
100+
StreamBlockCipher sb = new G3413CTRBlockCipher(new GOST3412_2015Engine(), 8);
101101

102102
sb.init(true, new ParametersWithIV(new KeyParameter(Hex.decode("8899aabbccddeeff0011223344556677fedcba98765432100123456789abcdef")),
103103
Hex.decode("0001020304050607")));
@@ -123,7 +123,7 @@ private void ctrTest()
123123
fail("cipher text repeats 2");
124124
}
125125

126-
sb = new G3413CTRBlockCipher(new GOST3412_2015Engine(), 128);
126+
sb = new G3413CTRBlockCipher(new GOST3412_2015Engine(), 8);
127127

128128
sb.init(true, new ParametersWithIV(new KeyParameter(Hex.decode("8899aabbccddeeff0011223344556677fedcba98765432100123456789abcdef")),
129129
Hex.decode("0001020304050607")));

0 commit comments

Comments
 (0)