Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3af57cab authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Keystore 2.0 SPI: Fix bug in chunked streamer."

parents 2ccc6dfb adeebe5e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -139,7 +139,9 @@ class KeyStoreCryptoOperationChunkedStreamer implements KeyStoreCryptoOperationS
            int inputConsumed = ArrayUtils.copy(input, inputOffset, mChunk, mChunkLength,
                    inputLength);
            inputLength -= inputConsumed;
            inputOffset += inputOffset;
            inputOffset += inputConsumed;
            mChunkLength += inputConsumed;
            if (mChunkLength < mChunkSizeMax) return output;
            byte[] o = mKeyStoreStream.update(mChunk);
            if (o != null) {
                output = ArrayUtils.concat(output, o);