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

Commit 74d3ff81 authored by Shawn Willden's avatar Shawn Willden Committed by android-build-merger
Browse files

Merge "Fix encryption/decryption of large blocks." into qt-dev am: 3074669a am: eb65abcf

am: b671f05d

Change-Id: I2cf8d9abca7921698e89df8e8b6d19cd96601bdf
parents 1c3a4e63 b671f05d
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -162,16 +162,16 @@ class KeyStoreCryptoOperationChunkedStreamer implements KeyStoreCryptoOperationS
            }

            if ((opResult.output != null) && (opResult.output.length > 0)) {
                if (inputLength > 0) {
                if (inputLength + mBufferedLength > 0) {
                    // More output might be produced in this loop -- buffer the current output
                    if (bufferedOutput == null) {
                        bufferedOutput = new ByteArrayOutputStream();
                    }
                    try {
                        bufferedOutput.write(opResult.output);
                    } catch (IOException e) {
                        throw new ProviderException("Failed to buffer output", e);
                    }
                    }
                } else {
                    // No more output will be produced in this loop
                    byte[] result;