encryption/src/main/java/org/apache/solr/encryption/crypto/DecryptingChannelInputStream.java [130:144]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        outPos += outRemaining;
        numDecrypted += outRemaining;
        offset += outRemaining;
        length -= outRemaining;
      }
      if (!readToFillBuffer(length)) {
        return numDecrypted == 0 ? -1 : numDecrypted;
      }
      decryptBuffer();
    }
    return numDecrypted;
  }

  private boolean readToFillBuffer(int length) throws IOException {
    assert length > 0;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



encryption/src/main/java/org/apache/solr/encryption/crypto/DecryptingInputStream.java [170:184]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        outPos += outRemaining;
        numDecrypted += outRemaining;
        offset += outRemaining;
        length -= outRemaining;
      }
      if (!readToFillBuffer(length)) {
        return numDecrypted == 0 ? -1 : numDecrypted;
      }
      decryptBuffer();
    }
    return numDecrypted;
  }

  private boolean readToFillBuffer(int length) throws IOException {
    assert length > 0;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



