Code example for RC2ParameterSpec

Methods: getIV

0
RC2ParameterSpec    rc2Param = (RC2ParameterSpec)params;
 
            param = new RC2Parameters(key.getEncoded(), ((RC2ParameterSpec)params).getEffectiveKeyBits());
 
            if (rc2Param.getIV() != null && ivLength != 0)
            { 
                param = new ParametersWithIV(param, rc2Param.getIV());
                ivParam = (ParametersWithIV)param;
            } 
        } 
        else if (params instanceof RC5ParameterSpec)
        { 
            RC5ParameterSpec    rc5Param = (RC5ParameterSpec)params;
 
            param = new RC5Parameters(key.getEncoded(), ((RC5ParameterSpec)params).getRounds());
            if (baseEngine.getAlgorithmName().startsWith("RC5"))
            { 
                if (baseEngine.getAlgorithmName().equals("RC5-32"))
                { 
                    if (rc5Param.getWordSize() != 32)