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

Commit 3074669a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix encryption/decryption of large blocks." into qt-dev

parents 1c66d4c7 d8283a81
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;