AndroidKeymasterTest relax Encrypting_RSA_NONE_NOPADDING

Context:
KM_ERROR_INVALID_ARGUMENT translates to BadPaddingException
KM_ERROR_INVALID_INPUT_LENGTH traslates to IllegalBlockSizeException
KM3.0 VTS tests requires KM_ERROR_INVALID_INPUT_LENGTH for the tested
error condition.
KM4.0 VTS test allows both.
This test expects BadPaddingException which is inconsistent.

This patch relaxes the test to allow both BadPadding and
IllegalBlockSizeException.

Bug: 77222541
Test: atest android.keystore.cts.AndroidKeyStoreTest#testKeyStore_Encrypting_RSA_NONE_NOPADDING
Change-Id: I073235f0813dd125b3fd1e6cf8709c3068e16cc3
Merged-In: I073235f0813dd125b3fd1e6cf8709c3068e16cc3
1 file changed