Code example for RC5ParameterSpec

Methods: getIV

0
        } 
 
        try { 
            new RC5ParameterSpec(version, rounds, wordSize+8, iv, offset);
            fail("An IllegalArgumentException should be thrown "
                    + "in the case of short iv."); 
        } catch (IllegalArgumentException e) {
        } 
 
        try { 
            new RC5ParameterSpec(version, rounds, wordSize, iv, offset+1);
            fail("An IllegalArgumentException should be thrown "
                    + "in the case of short iv."); 
        } catch (IllegalArgumentException e) {
        } 
 
        try { 
            new RC5ParameterSpec(version, rounds, wordSize, new byte[] { 1, 2,
                    3, 4 }, offset);
            fail("An IllegalArgumentException should be thrown "
                    + "in the case of short iv.");