cipherMode = Cipher.DECRYPT_MODE;
}
// RC2 requires special params to inform engine of keysize.
if (cipherUpper.startsWith("RC2")) {
RC2ParameterSpec rcParams;
if (mode.startsWith("ECB") || ivParams == null) {
// ECB doesn't take an IV.
rcParams = new RC2ParameterSpec(keySize);
} else {
rcParams = new RC2ParameterSpec(keySize, ivParams.getIV());
}
c.init(cipherMode, secret, rcParams);
} else if (cipherUpper.startsWith("RC5")) {
RC5ParameterSpec rcParams;
if (mode.startsWith("ECB") || ivParams == null) {