• Home
  • Raw
  • Download

Lines Matching refs:keyid

38     bool LastKeyAccessTime(km_id_t keyid, uint32_t* last_access_time) const;
42 bool UpdateKeyAccessTime(km_id_t keyid, uint32_t current_time, uint32_t timeout);
46 km_id_t keyid; member
60 bool KeyAccessCount(km_id_t keyid, uint32_t* count) const;
64 bool IncrementKeyAccessCount(km_id_t keyid);
68 km_id_t keyid; member
117 const km_id_t keyid, in AuthorizeOperation() argument
140 return AuthorizeBegin(purpose, keyid, auth_set, operation_params); in AuthorizeOperation()
201 const km_id_t keyid, in AuthorizeBegin() argument
259 if (!MinTimeBetweenOpsPassed(min_ops_timeout, keyid)) in AuthorizeBegin()
265 if (!MaxUsesPerBootNotExceeded(keyid, param.integer)) in AuthorizeBegin()
412 if (!access_time_map_->UpdateKeyAccessTime(keyid, get_current_time(), min_ops_timeout)) { in AuthorizeBegin()
424 if (!access_count_map_->IncrementKeyAccessCount(keyid)) { in AuthorizeBegin()
433 bool KeymasterEnforcement::MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid) { in MinTimeBetweenOpsPassed() argument
437 if (!access_time_map_->LastKeyAccessTime(keyid, &last_access_time)) return true; in MinTimeBetweenOpsPassed()
441 bool KeymasterEnforcement::MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses) { in MaxUsesPerBootNotExceeded() argument
445 if (!access_count_map_->KeyAccessCount(keyid, &key_access_count)) return true; in MaxUsesPerBootNotExceeded()
538 bool AccessTimeMap::LastKeyAccessTime(km_id_t keyid, uint32_t* last_access_time) const { in LastKeyAccessTime() argument
540 if (entry.keyid == keyid) { in LastKeyAccessTime()
547 bool AccessTimeMap::UpdateKeyAccessTime(km_id_t keyid, uint32_t current_time, uint32_t timeout) { in UpdateKeyAccessTime() argument
550 if (iter->keyid == keyid) { in UpdateKeyAccessTime()
566 new_entry.keyid = keyid; in UpdateKeyAccessTime()
573 bool AccessCountMap::KeyAccessCount(km_id_t keyid, uint32_t* count) const { in KeyAccessCount() argument
575 if (entry.keyid == keyid) { in KeyAccessCount()
582 bool AccessCountMap::IncrementKeyAccessCount(km_id_t keyid) { in IncrementKeyAccessCount() argument
584 if (entry.keyid == keyid) { in IncrementKeyAccessCount()
597 new_entry.keyid = keyid; in IncrementKeyAccessCount()