Lines Matching defs:iv
47 private byte[] iv = null;
65 * <code>iv[0]</code> and <code>iv[7]</code> inclusive.
68 * @param iv the buffer with the 8-byte IV. The first 8 bytes of
70 * @exception IllegalArgumentException if <code>iv</code> is null.
72 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv) {
73 this(effectiveKeyBits, iv, 0);
80 * <p> The IV is taken from <code>iv</code>, starting at
83 * <code>iv[offset]</code> and <code>iv[offset+7]</code> inclusive.
86 * @param iv the buffer with the IV. The first 8 bytes
89 * @param offset the offset in <code>iv</code> where the 8-byte IV
91 * @exception IllegalArgumentException if <code>iv</code> is null.
93 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) {
95 if (iv == null) throw new IllegalArgumentException("IV missing");
97 if (iv.length - offset < blockSize) {
100 this.iv = new byte[blockSize];
101 System.arraycopy(iv, offset, this.iv, 0, blockSize);
120 return (iv == null? null:iv.clone());
144 java.util.Arrays.equals(iv, other.iv));
153 if (iv != null) {
154 for (int i = 1; i < iv.length; i++) {
155 retval += iv[i] * i;