@Override public int update(ByteBuffer inBuffer,ByteBuffer outBuffer) throws ShortBufferException {
  int[] outlen=new int[1];
  int retVal=OpenSslNativeJna.EVP_CipherUpdate(context,outBuffer,outlen,inBuffer,inBuffer.remaining());
  throwOnError(retVal);
  int len=outlen[0];
  inBuffer.position(inBuffer.limit());
  outBuffer.position(outBuffer.position() + len);
  return len;
}

@ Override public int update ( ByteBuffer inBuffer , ByteBuffer outBuffer ) throws ShortBufferException { int [ ] outlen = new int [ 1 ] ; int retVal = OpenSslNativeJna . EVP_CipherUpdate ( context , outBuffer , outlen , inBuffer , inBuffer . remaining ( ) ) ; throwOnError ( retVal ) ; int len = outlen [ 0 ] ; inBuffer . position ( inBuffer . limit ( ) ) ; outBuffer . position ( outBuffer . position ( ) + len ) ; return len ; }
continues a multiple - part encryption / decryption operation . the data is encrypted or decrypted , depending on how this cipher was initialized .
