Lines Matching refs:iv

39      * RC2ParameterSpec(int effectiveKeyBits, byte[] iv) method testing.
41 * inappropriate constructor parameters and that input iv array is
46 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
51 + "in the case of null iv.");
58 + "in the case of short iv.");
62 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
63 iv[0] ++;
64 assertFalse("The change of iv specified in the constructor "
66 iv[0] == ps.getIV()[0]);
70 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) method
72 * inappropriate constructor parameters and that input iv array is
77 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
83 + "in the case of null iv.");
88 new RC2ParameterSpec(effectiveKeyBits, iv, 4);
90 + "in the case of short iv.");
94 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv, offset);
95 iv[offset] ++;
96 assertFalse("The change of iv specified in the constructor "
98 iv[offset] == ps.getIV()[0]);
107 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
109 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
119 * that getIV() method returns null if iv is not specified.
123 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
125 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
127 if (! Arrays.equals(iv, result)) {
128 fail("The returned iv is not equal to the specified "
132 assertFalse("The change of returned by getIV() method iv "
137 + "set does not contain iv.", ps.getIV());
147 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
149 RC2ParameterSpec ps1 = new RC2ParameterSpec(effectiveKeyBits, iv);
150 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv);
174 ps2 = new RC2ParameterSpec(11, iv);
187 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
189 RC2ParameterSpec ps1 = new RC2ParameterSpec(effectiveKeyBits, iv);
190 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv);