Add CtsVerifier tests for setUserAuthenticationParameters
This change adds an abstract base class to be shared for all
setUserAuthenticationParameters(int, int) tests. Currently it
is generic enough to be extended for various CryptoObject
types (Cipher, MAC, Signature, IC). This change only implements
the Cipher test (UserAuthenticationCredentialCipherTest).
Follow up CLs will be created for
1) MAC, Signature, IC tests similar to the Cipher test
2) Biometric-only tests e.g.
UserAuthenticationBiometricCipherTest
UserAuthenticationBiometricSignatureTest
etc
3) Biometric|Credential tests e.g.
UserAuthenticationBiometricOrCredentialCipherTest
UserAuthenticationBiometricOrCredentialSignatureTest
4) Checking that devices without strong biometrics cannot
generate biometric-only keys
Bug: 148425329
Test: CtsVerifier
Change-Id: I775558708cfac7bd03949fc538ee3de708d8d6e5
7 files changed