Code example for RC5ParameterSpec

Methods: getIV

0
        int rounds = 5;
        int wordSize = 16;
 
        RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds, wordSize);
        assertTrue("The returned rounds value should be equal to the "
                + "value specified in the constructor.", 
                ps.getRounds() == rounds);
    } 
 
    /** 
     * getWordSize() method testing. Tests that returned value is 
     * equal to the value specified in the constructor. 
     */ 
    @TestTargetNew( 
        level = TestLevel.COMPLETE, 
        notes = "", 
        method = "getWordSize", 
        args = {} 
    ) 
    public void testGetWordSize() { 
        int version = 1;