Lines Matching refs:length

115      * Returns the length in bytes that an output buffer would need to be
116 * given the input length <code>inputLen</code> (in bytes).
118 * <p>The actual output length of the next <code>update</code> or
119 * <code>doFinal</code> call may be smaller than the length returned
122 * @param inputLen the input length (in bytes)
248 * @param inLen the input length.
267 * @param inLen the input length.
291 * @param inLen the input length.
312 * @param inLen the input length.
349 if (!AESCrypt.isKeySizeValid(encoded.length)) {
350 throw new InvalidKeyException("Invalid key length: " +
351 encoded.length + " bytes");
353 return encoded.length * 8;
364 * cipher, no padding has been requested, and the length of the
375 if ((keyVal == null) || (keyVal.length == 0)) {
379 byte[] out = new byte[keyVal.length + 8];
381 if (keyVal.length == 8) {
382 System.arraycopy(IV, 0, out, 0, IV.length);
383 System.arraycopy(keyVal, 0, out, IV.length, 8);
386 if (keyVal.length % 8 != 0) {
387 throw new IllegalBlockSizeException("length of the " +
390 System.arraycopy(IV, 0, out, 0, IV.length);
391 System.arraycopy(keyVal, 0, out, IV.length, keyVal.length);
392 int N = keyVal.length/8;
397 System.arraycopy(out, 0, buffer, 0, IV.length);
398 System.arraycopy(out, i*8, buffer, IV.length, 8);
402 buffer[IV.length - k] ^= v;
405 System.arraycopy(buffer, 0, out, 0, IV.length);
438 int wrappedKeyLen = wrappedKey.length;
439 // ensure the wrappedKey length is multiples of 8 bytes and non-zero
445 ("The wrapped key has invalid key length");
451 for (int i = 0; i < IV.length; i++) {
456 System.arraycopy(buffer, IV.length, out, 0, out.length);
458 System.arraycopy(wrappedKey, 0, buffer, 0, IV.length);
459 System.arraycopy(wrappedKey, IV.length, out, 0, out.length);
460 int N = out.length/8;
464 System.arraycopy(out, 8*(i-1), buffer, IV.length, 8);
467 buffer[IV.length - k] ^= v;
471 System.arraycopy(buffer, IV.length, out, 8*(i-1), 8);
474 for (int i = 0; i < IV.length; i++) {