Пример #1
0
 int implUpdate(byte[] in, int inOff, int inLen, byte[] out, int outOff)
     throws ShortBufferException {
   return cipher.update(in, inOff, inLen, out, outOff);
 }
Пример #2
0
 /**
  * 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);
 }
Пример #3
0
 byte[] implUpdate(byte[] in, int inOff, int inLen) {
   return cipher.update(in, inOff, inLen);
 }
Пример #4
0
 /**
  * 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
  * @exception IllegalStateException if this cipher is in a wrong state (e.g., has not been
  *     initialized)
  */
 protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) {
   return core.update(input, inputOffset, inputLen);
 }