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

Commit 832c0d57 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: a533ef35

Change-Id: I9f157bddeea5bb9f4cf4da7ebce7effb21407b20
parents 4b239467 a533ef35
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;