private DecryptingIndexInput()

in encryption/src/main/java/org/apache/solr/encryption/crypto/DecryptingIndexInput.java [97:118]


  private DecryptingIndexInput(String resourceDescription,
                               long delegateOffset,
                               long sliceOffset,
                               long sliceLength,
                               boolean isClone,
                               IndexInput indexInput,
                               AesCtrEncrypter encrypter,
                               int bufferCapacity) {
    super(resourceDescription);
    assert delegateOffset >= 0 && sliceOffset >= 0 && sliceLength >= 0;
    this.delegateOffset = delegateOffset;
    this.sliceOffset = sliceOffset;
    this.sliceEnd = sliceOffset + sliceLength;
    this.isClone = isClone;
    this.indexInput = indexInput;
    this.encrypter = encrypter;
    encrypter.init(0);
    assert bufferCapacity % AES_BLOCK_SIZE == 0;
    inBuffer = new byte[bufferCapacity];
    outBuffer = new byte[bufferCapacity + AES_BLOCK_SIZE];
    oneByteBuf = new byte[1];
  }