decrypt(); buf.position(offset + n); buf.limit(limit);
decrypt(); padding = postDecryption(streamOffset);
/** * Decrypts more data by reading the under layer stream. The decrypted data * will be put in the output buffer. * * @return The number of decrypted data. -1 if end of the decrypted stream. * @throws IOException if an I/O error occurs. */ @Override protected int decryptMore() throws IOException { int n = input.read(inBuffer); if (n <= 0) { return n; } streamOffset += n; // Read n bytes decrypt(); padding = postDecryption(streamOffset); return outBuffer.remaining(); }