Commit Graph

6 Commits (ec00936463f754bbf4622179743b973f1236e5e8)

Author SHA1 Message Date
cfig b7784719a4 staging
*   commit 23e859dfd2e095bd71be0290b7c99f0016c6bf4e (HEAD, tag: android-o-mr1-iot-preview-8, m/master, aosp/o-mr1-iot-preview-8, aosp/master)
|\  Merge: 70d9b6a 9432381
| | Author: Treehugger Robot <treehugger-gerrit@google.com>
| | Date:   Wed Mar 28 13:02:01 2018 +0000
| |
| |     Merge "Throw ShortBufferException in RSA CipherSpi."
| |
| * commit 943238191685c85367fb0c51fb0a5f124b361876
|/  Author: Adam Vartanian <flooey@google.com>
|   Date:   Tue Mar 27 14:16:53 2018 +0100
|
|       Throw ShortBufferException in RSA CipherSpi.
|
|       The Javadoc for javax.crypto.Cipher.doFinal() and friends states that
|       Ciphers should throw ShortBufferException when given an output buffer
|       that's too small to hold the output.  BC does this in its other
|       classes, but the RSA implementation doesn't check the output buffer
|       size and just throws ArrayIndexOutOfBoundsException when it tries to
|       fill the output buffer.
|
|       This is bad not only because it's the wrong exception, but because it
|       modifies the Cipher object's internal buffers when it does it, which
|       means that passing a too-short buffer and then calling doFinal() again
|       with a properly-sized buffer will result in incorrect output.
|
|       This fixes tests that have been added for this case in Conscrypt
|       upstream.
|
|       Test: cts -m CtsLibcoreTestCases -t com.android.org.conscrypt.javax.crypto
|       Change-Id: Ieac98be5b9574006f1409911103487b8b55bb94e
7 years ago
cfig 29041710ec
update base code to android-8.1.0_r2
update bouncycastle to android-8.1.0_r2
update mkbootfs to android-8.1.0_r2
boot_signer is not updated in AOSP upstream
move mkbootfs to sub-project
8 years ago
cfig 7d23e6bdaf sync with android-7.1.1_r6 (#8)
* bouncycastle: sync with android-7.1.1_r6

* mkbootfs: sync with android-7.1.1_r6

* unpack: use hex value for bootimg json
9 years ago
cfig 56dacf31bd update to android master on May.30.2016, not tested 9 years ago
cfig d7ce4d65aa clean up and refine README 9 years ago
cfig 1d85ff4c60 add missing bouncycastle from Android AOSP 9 years ago