Lines Matching full:purpose
63 inline bool is_secret_key_operation(keymaster_algorithm_t algorithm, keymaster_purpose_t purpose) {
66 if (purpose == KM_PURPOSE_SIGN || purpose == KM_PURPOSE_DECRYPT)
72 keymaster_purpose_t purpose) {
75 return is_secret_key_operation(algorithm, purpose) && key_info.find(TAG_NO_AUTH_REQUIRED) == -1;
79 keymaster_purpose_t purpose) {
82 return is_secret_key_operation(algorithm, purpose) && key_info.find(TAG_AUTH_TIMEOUT) == -1;
86 keymaster_purpose_t purpose,
89 if (!KeyRequiresAuthentication(key_info, purpose))
98 if (KeyRequiresAuthPerOperation(key_info, purpose))