Code example for RC2ParameterSpec

Methods: getIV

0
    /** 
     * getEffectiveKeyBits() method testing. Tests that returned value is 
     * equal to the value specified in the constructor. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getEffectiveKeyBits", 
        args = {} 
    ) 
    public void testGetEffectiveKeyBits() { 
        int effectiveKeyBits = 10;
        byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
 
        RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
        assertTrue("The returned effectiveKeyBits value is not equal to the "
                + "value specified in the constructor.", 
                effectiveKeyBits == ps.getEffectiveKeyBits());
    } 
 
    /**