/** * Continues a multiple-part encryption or decryption operation (depending on how this cipher was * initialized), processing another data part. * * <p>The first <code>inputLen</code> bytes in the <code>input</code> buffer, starting at <code> * inputOffset</code>, are processed, and the result is stored in the <code>output</code> buffer, * starting at <code>outputOffset</code>. * * @param input the input buffer * @param inputOffset the offset in <code>input</code> where the input starts * @param inputLen the input length * @param output the buffer for the result * @param outputOffset the offset in <code>output</code> where the result is stored * @return the number of bytes stored in <code>output</code> * @exception ShortBufferException if the given output buffer is too small to hold the result */ protected int engineUpdate( byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException { return core.update(input, inputOffset, inputLen, output, outputOffset); }
/** * Continues a multiple-part encryption or decryption operation (depending on how this cipher was * initialized), processing another data part. * * <p>The first <code>inputLen</code> bytes in the <code>input</code> buffer, starting at <code> * inputOffset</code>, are processed, and the result is stored in a new buffer. * * @param input the input buffer * @param inputOffset the offset in <code>input</code> where the input starts * @param inputLen the input length * @return the new buffer with the result */ protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) { return core.update(input, inputOffset, inputLen); }