File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ else if (modeName.equalsIgnoreCase("OpenPGPCFB"))
249249 cipher = new BufferedGenericBlockCipher (
250250 new OpenPGPCFBBlockCipher (baseEngine ));
251251 }
252- else if (modeName .startsWith ("SIC" ))
252+ else if (modeName .startsWith ("SIC" ) || modeName . startsWith ( "CTR" ) )
253253 {
254254 ivLength = baseEngine .getBlockSize ();
255255 if (ivLength < 16 )
@@ -259,12 +259,6 @@ else if (modeName.startsWith("SIC"))
259259 cipher = new BufferedGenericBlockCipher (new BufferedBlockCipher (
260260 new SICBlockCipher (baseEngine )));
261261 }
262- else if (modeName .startsWith ("CTR" ))
263- {
264- ivLength = baseEngine .getBlockSize ();
265- cipher = new BufferedGenericBlockCipher (new BufferedBlockCipher (
266- new SICBlockCipher (baseEngine )));
267- }
268262 else if (modeName .startsWith ("GOFB" ))
269263 {
270264 ivLength = baseEngine .getBlockSize ();
You can’t perform that action at this time.
0 commit comments