Android 6.0.1 Release 56 (MMB30R)
Return correct error from keymaster0engine for large RSA input
Also, ensure that we always put some error on the OpenSSL error queue
whenever a wrapped keymaster0 operation fails. Higher layers will look
a the last entry on the queue and use it to determine what error code to
return. Not putting any error on the queue means that those higher
layers will get whatever error was last enqueued, making the result
effectively random. Non-determinism bad.
(cherry-picked from commit 22d2355b7edc470949c163e47ba8e837a1a87f47)
Bug: 25337630
Change-Id: I701ab735dd089f5258b2252f543906d9f3baa7a2
3 files changed