Merge "fix is_secret_key_operation check" am: 7f35beb6cb am: 216b33f09c am: 4623971442

am: a3097ff932

Change-Id: If93e31e54333abbe1d8f8844f87c177ce2845473
This commit is contained in:
Janis Danisevskis 2017-01-04 16:52:33 +00:00 committed by android-build-merger
commit 668cd308b7

View file

@ -61,7 +61,7 @@ void AuthTokenTable::AddAuthenticationToken(const hw_auth_token_t* auth_token) {
}
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;