NativeCrypto: throw BadPaddingException if EVP_CipherFinal_ex fails

Since nothing was being pushed onto the stack, no exception was thrown
in throwExceptionIfNecessary with the constant time fix present in
1.0.1j. The fix is to throw our own error if nothing was thrown.

(cherry picked from commit e74933ecfb7dc7d91ebe6620a91d86fdc735ed58)

Bug: 18621207
Change-Id: I25e653c493e162c5fda46f320117c013a2661aa4
1 file changed
tree: a021e064a3b07db885fc477a6b5d9dc78474301e
  1. src/
  2. Android.mk
  3. build.gradle
  4. jarjar-rules.txt
  5. update_prebuilts.sh