Lines Matching refs:iv

46      * RC2ParameterSpec(int effectiveKeyBits, byte[] iv) method testing.
48 * inappropriate constructor parameters and that input iv array is
59 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
64 + "in the case of null iv.");
71 + "in the case of short iv.");
75 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
76 iv[0] ++;
77 assertFalse("The change of iv specified in the constructor "
79 iv[0] == ps.getIV()[0]);
83 * RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) method
85 * inappropriate constructor parameters and that input iv array is
96 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
102 + "in the case of null iv.");
107 new RC2ParameterSpec(effectiveKeyBits, iv, 4);
109 + "in the case of short iv.");
113 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv, offset);
114 iv[offset] ++;
115 assertFalse("The change of iv specified in the constructor "
117 iv[offset] == ps.getIV()[0]);
132 byte[] iv = {1, 2, 3, 4, 5, 6, 7, 8};
134 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
144 * that getIV() method returns null if iv is not specified.
154 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
156 RC2ParameterSpec ps = new RC2ParameterSpec(effectiveKeyBits, iv);
158 if (! Arrays.equals(iv, result)) {
159 fail("The returned iv is not equal to the specified "
163 assertFalse("The change of returned by getIV() method iv "
168 + "set does not contain iv.", ps.getIV());
184 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
186 RC2ParameterSpec ps1 = new RC2ParameterSpec(effectiveKeyBits, iv);
187 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv);
211 ps2 = new RC2ParameterSpec(11, iv);
230 byte[] iv = new byte[] {1, 2, 3, 4, 5, 6, 7, 8};
232 RC2ParameterSpec ps1 = new RC2ParameterSpec(effectiveKeyBits, iv);
233 RC2ParameterSpec ps2 = new RC2ParameterSpec(effectiveKeyBits, iv);