Handle RSA_R_DATA_TOO_LARGE
BoringSSL has stopped returning RSA_R_DATA_TOO_LARGE_FOR_MODULUS and
started returning this new error code. Add support for it in software
keymaster. Note that this creates a problem because the new code is
also used for cases that uses to return
RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE. Returning the same code for both of
those reasons means that we can't distinguish between them, and we have
been relying on that distinction. Some adjustment at higher layers is
also going to be required.
Bug: 65214323
Test: runtest --path cts/tests/tests/keystore/src/android/keystore/cts
Change-Id: Ic6244000cbba9d6004e039893e9f32f9f3340f48
1 file changed