4141import org .bouncycastle .crypto .BufferedBlockCipher ;
4242import org .bouncycastle .crypto .DefaultMultiBlockCipher ;
4343import org .bouncycastle .crypto .engines .AESEngine ;
44- import org .bouncycastle .crypto .engines .DESEngine ;
45- import org .bouncycastle .crypto .paddings .PKCS7Padding ;
46- import org .bouncycastle .crypto .paddings .PaddedBufferedBlockCipher ;
4744import org .bouncycastle .crypto .params .KeyParameter ;
4845import org .bouncycastle .jce .provider .BouncyCastleProvider ;
4946import org .bouncycastle .util .Arrays ;
5047import org .bouncycastle .util .encoders .Hex ;
5148import org .bouncycastle .util .test .SimpleTest ;
5249import org .bouncycastle .util .test .TestFailedException ;
53- import org . junit . Assert ;
50+
5451
5552/**
5653 * basic test class for a block cipher, basically this just exercises the provider, and makes sure we
@@ -868,12 +865,12 @@ else if (algorithm.startsWith("RC5"))
868865 }
869866 catch (Exception e )
870867 {
871- Assert . fail (e .toString ());
868+ fail (e .toString ());
872869 }
873870
874871 if (!Arrays .areEqual (data , 0 , len , output , 0 , output .length ))
875872 {
876- Assert . fail ("" + algorithm + " failed doFinal - expected " + new String (Hex .encode (output )) + " got " + new String (Hex .encode (data )));
873+ fail ("" + algorithm + " failed doFinal - expected " + new String (Hex .encode (output )) + " got " + new String (Hex .encode (data )));
877874 }
878875
879876 //
@@ -898,12 +895,12 @@ else if (algorithm.startsWith("RC5"))
898895 }
899896 catch (Exception e )
900897 {
901- Assert . fail (e .toString ());
898+ fail (e .toString ());
902899 }
903900
904901 if (!Arrays .areEqual (data , 1 , 1 + len , output , 0 , output .length ))
905902 {
906- Assert . fail ("" + algorithm + " failed doFinal - expected " + new String (Hex .encode (output )) + " got " + new String (Hex .encode (data )));
903+ fail ("" + algorithm + " failed doFinal - expected " + new String (Hex .encode (output )) + " got " + new String (Hex .encode (data )));
907904 }
908905
909906 //
0 commit comments