return "PKCS5S2";
}
public TestResult perform()
{
BufferedBlockCipher cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(new DESEngine()));
Test test = new PBETest(0, cipher, sample1, 64);
TestResult result = test.perform();
if (!result.isSuccessful())
{
return new SimpleTestResult(false, getName() + ": " + result.toString());
}
cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(new DESedeEngine()));
test = new PBETest(1, cipher, sample2, 192);
result = test.perform();
if (!result.isSuccessful())
{
return new SimpleTestResult(false, getName() + ": " + result.toString());
}
cipher = new PaddedBufferedBlockCipher(new CBCBlockCipher(new RC2Engine()));
test = new PBETest(2, cipher, sample3, 0);
result = test.perform();
if (!result.isSuccessful())
{