return new SimpleTestResult(false, getName() + ": failed to decrypt - i = " + data.length + ", padding = " + padding.getPaddingName());
fail("failed to decrypt - i = " + data.length + ", padding = " + padding.getPaddingName());
    private TestResult blockCheck(        PaddedBufferedBlockCipher   cipher,        BlockCipherPadding          padding,        KeyParameter                key,        byte[]                      data)    {        byte[]  out = new byte[data.length + 8];        byte[]  dec = new byte[data.length];                try        {                            cipher.init(true, key);                        int    len = cipher.processBytes(data, 0, data.length, out, 0);                        len += cipher.doFinal(out, len);                        cipher.init(false, key);                        int    decLen = cipher.processBytes(out, 0, len, dec, 0);                        decLen += cipher.doFinal(dec, decLen);                        if (!isEqualTo(data, dec))            {                return new SimpleTestResult(false, getName() + ": failed to decrypt - i = " + data.length + ", padding = " + padding.getPaddingName());            }        }        catch (Exception e)        {            return new SimpleTestResult(false, getName() + ": Exception - " + e.toString(), e);        }                return new SimpleTestResult(true, getName() + ": Okay");    }