Home
last modified time | relevance | path

Searched refs:km_id_t (Results 1 – 8 of 8) sorted by relevance

/system/security/keystore/
Dkeymaster_enforcement.h30 typedef uint64_t km_id_t; typedef
46 bool LastKeyAccessTime(km_id_t keyid, uint32_t* last_access_time) const;
50 bool UpdateKeyAccessTime(km_id_t keyid, uint32_t current_time, uint32_t timeout);
55 km_id_t keyid;
69 bool KeyAccessCount(km_id_t keyid, uint32_t* count) const;
73 bool IncrementKeyAccessCount(km_id_t keyid);
78 km_id_t keyid;
98 ErrorCode AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid,
109 ErrorCode AuthorizeBegin(const KeyPurpose purpose, const km_id_t keyid,
141 static std::optional<km_id_t> CreateKeyId(const hidl_vec<uint8_t>& key_blob);
[all …]
Dkeymaster_enforcement.cpp72 ErrorCode KeymasterEnforcement::AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeOperation()
147 ErrorCode KeymasterEnforcement::AuthorizeBegin(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeBegin()
375 std::optional<km_id_t> KeymasterEnforcement::CreateKeyId(const hidl_vec<uint8_t>& key_blob) { in CreateKeyId()
377 km_id_t keyid; in CreateKeyId()
392 bool KeymasterEnforcement::MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid) { in MinTimeBetweenOpsPassed()
398 bool KeymasterEnforcement::MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses) { in MaxUsesPerBootNotExceeded()
488 bool AccessTimeMap::LastKeyAccessTime(km_id_t keyid, uint32_t* last_access_time) const { in LastKeyAccessTime()
498 bool AccessTimeMap::UpdateKeyAccessTime(km_id_t keyid, uint32_t current_time, uint32_t timeout) { in UpdateKeyAccessTime()
524 bool AccessCountMap::KeyAccessCount(km_id_t keyid, uint32_t* count) const { in KeyAccessCount()
534 bool AccessCountMap::IncrementKeyAccessCount(km_id_t keyid) { in IncrementKeyAccessCount()
/system/keymaster/include/keymaster/
Dkeymaster_enforcement.h27 typedef uint64_t km_id_t; typedef
55 keymaster_error_t AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid,
66 keymaster_error_t AuthorizeBegin(const keymaster_purpose_t purpose, const km_id_t keyid,
185 virtual bool CreateKeyId(const keymaster_key_blob_t& key_blob, km_id_t* keyid) const = 0;
208 bool MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid);
209 bool MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses);
/system/keymaster/android_keymaster/
Dkeymaster_enforcement.cpp38 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;
60 bool KeyAccessCount(km_id_t keyid, uint32_t* count) const;
64 bool IncrementKeyAccessCount(km_id_t keyid);
68 km_id_t keyid;
117 const km_id_t keyid, in AuthorizeOperation()
209 const km_id_t keyid, in AuthorizeBegin()
432 bool KeymasterEnforcement::MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid) { in MinTimeBetweenOpsPassed()
442 bool KeymasterEnforcement::MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses) { in MaxUsesPerBootNotExceeded()
[all …]
Dandroid_keymaster.cpp287 km_id_t key_id; in BeginOperation()
/system/keymaster/include/keymaster/km_openssl/
Dsoft_keymaster_enforcement.h40 bool CreateKeyId(const keymaster_key_blob_t& key_blob, km_id_t* keyid) const override;
/system/keymaster/km_openssl/
Dsoft_keymaster_enforcement.cpp63 km_id_t* keyid) const { in CreateKeyId()
/system/keymaster/tests/
Dkeymaster_enforcement_test.cpp35 keymaster_error_t AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid, in AuthorizeOperation()
91 static const km_id_t key_id = 0xa;
923 km_id_t key_id = 0; in TEST_F()