Code example for RC5ParameterSpec

Methods: getIV

0
                    + "in the case of null iv."); 
        } catch (IllegalArgumentException e) {
        } 
 
        try { 
            new RC5ParameterSpec(version, rounds, wordSize+8, iv);
            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});
            fail("An IllegalArgumentException should be thrown "
                    + "in the case of short iv."); 
        } catch (IllegalArgumentException e) {
        } 
 
        RC5ParameterSpec ps = new RC5ParameterSpec(version, rounds,
                                                                wordSize, iv);
        iv[0] ++;