Merge "fix is_secret_key_operation check" am: 7f35beb6cb
am: 216b33f09c
am: 4623971442
am: a3097ff932
Change-Id: If93e31e54333abbe1d8f8844f87c177ce2845473
This commit is contained in:
commit
668cd308b7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue