Merge "Ignore INVALID tags in generated key characteristics." into main
diff --git a/keystore2/test_utils/key_generations.rs b/keystore2/test_utils/key_generations.rs
index fdb2afb..c4161c0 100644
--- a/keystore2/test_utils/key_generations.rs
+++ b/keystore2/test_utils/key_generations.rs
@@ -401,9 +401,8 @@
) {
// Make sure key authorizations contains only `ALLOWED_TAGS_IN_KEY_AUTHS`
authorizations.iter().all(|auth| {
- // Ignore `INVALID` tag if the backend is Keymaster and not KeyMint.
- // Keymaster allows INVALID tag for unsupported key parameters.
- if sl.is_keymaster() && auth.keyParameter.tag == Tag::INVALID {
+ // Ignore `INVALID` tag
+ if auth.keyParameter.tag == Tag::INVALID {
return true;
}
assert!(