Merge "fix is_secret_key_operation check"
diff --git a/keystore/auth_token_table.cpp b/keystore/auth_token_table.cpp
index 76e757b..f0f4981 100644
--- a/keystore/auth_token_table.cpp
+++ b/keystore/auth_token_table.cpp
@@ -61,7 +61,7 @@
 }
 
 inline bool is_secret_key_operation(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose) {
-    if ((algorithm != KM_ALGORITHM_RSA || algorithm != KM_ALGORITHM_EC))
+    if ((algorithm != KM_ALGORITHM_RSA && algorithm != KM_ALGORITHM_EC))
         return true;
     if (purpose == KM_PURPOSE_SIGN || purpose == KM_PURPOSE_DECRYPT)
         return true;