History log of /libcore/luni/src/test/java/libcore/javax/crypto/CipherInputStreamTest.java
Revision Date Author Comments
29d763959dd79e8aeacf2674c074d708d596477a 15-Jan-2014 Kenny Root <kroot@google.com> CipherInputStream: increase buffers for speed

This increases speed of CipherInputStreamBenchmark from 606ms to 28.5ms.

Bug: 12246774
Change-Id: If61c0a055fe1b8e87909711b15d0441fcdbe46c7
be43e6b8fa5623790492f317a056d738c5306232 13-Sep-2013 Kenny Root <kroot@google.com> Update CipherInputStream to use AES instead

The RI won't use DES cipher anymore, so update to use AES so we can
continue to test.

Change-Id: Ib39b0c0653911ed675dc8b5b0120c66714d0f1fa
f9fbb9da62283dfc5d23b7e8f0a1746c89ee2c5e 12-Sep-2013 Kenny Root <kroot@google.com> Add specific exception for wrong final block length

EVP_DecryptFinal_ex can have an error on the wrong block length at the
end of a decrypted block, so throw IllegalBlockSizeException when that
happens instead of a RuntimeException.

(cherry picked from commit 9a4eb515a0b50c9ff5c57127a0ddcbd07dbcc312)

Bug: 10610957
Bug: https://code.google.com/p/android/issues/detail?id=58396
Change-Id: I4a4ee85f57e1507bb645b2177cfdf44e5e274b49
9a4eb515a0b50c9ff5c57127a0ddcbd07dbcc312 12-Sep-2013 Kenny Root <kroot@google.com> Add specific exception for wrong final block length

EVP_DecryptFinal_ex can have an error on the wrong block length at the
end of a decrypted block, so throw IllegalBlockSizeException when that
happens instead of a RuntimeException.

Bug: 10610957
Bug: https://code.google.com/p/android/issues/detail?id=58396
Change-Id: I70ea040c3b52fc30591963270850871a8cc581d3
80b486724ca19b3c1c3c36334d06856330362f83 01-Oct-2010 Jesse Wilson <jessewilson@google.com> Simplify skip() to use skipByReading or the superclass where possible.

Several classes were overriding InputStream.skip() but not doing
anything better than the base class. These were deleted.

Others were allocating skip buffers which was correct, but duplicated
code with our Streams utility class.

The CipherInputStream class had a skip method that always skipped
0 bytes. This has been fixed and tested.

Change-Id: Ic96c600e111c11cf7364b4e0a721791d7e3c2ae1