Lines Matching refs:offset
111 * specified key data starting at <code>offset</code>.
115 * @param offset
116 * the offset to start at.
118 * if the length of the specified key data starting at offset is
121 public DESKeySpec(byte[] key, int offset)
126 if (key.length - offset < DES_KEY_LEN) {
131 System.arraycopy(key, offset, this.key, 0, DES_KEY_LEN);
146 * Returns whether the specified key data starting at <code>offset</code> is
151 * @param offset
152 * the offset to start checking at.
156 * if the length of the key data starting at offset is less than
159 public static boolean isParityAdjusted(byte[] key, int offset)
164 if (key.length - offset < DES_KEY_LEN) {
171 for (int i = offset; i < DES_KEY_LEN; i++) {
186 * Returns whether the specified key data starting at <code>offset</code> is
191 * @param offset
192 * the offset to start checking at.
195 * if the length of the key data starting at offset is less than
198 public static boolean isWeak(byte[] key, int offset)
203 if (key.length - offset < DES_KEY_LEN) {
210 if (SEMIWEAKS[i][j] != key[offset+j]) {