Commit e115d420 authored by Shubham Ajmera's avatar Shubham Ajmera
Browse files

Revert "Revert "Cut down on object allocation in CipherInputStream""

As Cipher#getOutputSize can return different value in some cases for the
same cipher object and input buffer.
To accomodate the behavior, the size of the output buffer should be checked
every time when the CipherInputStream#getMoreData is called and whenever
the new size is greater than the current size, array must be reinitialized.

This reverts commit 298b528c.
Bug: 32643789
Test: CipherInputStreamTest in vogar

Change-Id: I6c9685a2a058eac6cfc4be9e0e81d397929baf58
parent 1f993339
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment