Home
last modified time | relevance | path

Searched refs:keyid (Results 1 – 25 of 77) sorted by relevance

1234

/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; 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
138 return AuthorizeBegin(purpose, keyid, auth_set, operation_params); in AuthorizeOperation()
209 const km_id_t keyid, in AuthorizeBegin() argument
270 if (!MinTimeBetweenOpsPassed(min_ops_timeout, keyid)) in AuthorizeBegin()
[all …]
/system/security/keystore/
Dkeymaster_enforcement.cpp72 ErrorCode KeymasterEnforcement::AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeOperation() argument
94 return AuthorizeBegin(purpose, keyid, auth_set, operation_params, auth_token); in AuthorizeOperation()
147 ErrorCode KeymasterEnforcement::AuthorizeBegin(const KeyPurpose purpose, const km_id_t keyid, in AuthorizeBegin() argument
214 if (min_ops_timeout.isOk() && !MinTimeBetweenOpsPassed(min_ops_timeout.value(), keyid)) in AuthorizeBegin()
221 if (max_users.isOk() && !MaxUsesPerBootNotExceeded(keyid, max_users.value())) in AuthorizeBegin()
347 if (!access_time_map_.UpdateKeyAccessTime(keyid, get_current_time(), min_ops_timeout)) { in AuthorizeBegin()
354 if (!access_count_map_.IncrementKeyAccessCount(keyid)) { in AuthorizeBegin()
377 km_id_t keyid; in CreateKeyId() local
384 assert(hash_len >= sizeof(keyid)); in CreateKeyId()
385 memcpy(&keyid, hash, sizeof(keyid)); in CreateKeyId()
[all …]
Dkeymaster_enforcement.h46 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; member
69 bool KeyAccessCount(km_id_t keyid, uint32_t* count) const;
73 bool IncrementKeyAccessCount(km_id_t keyid);
78 km_id_t keyid; member
98 ErrorCode AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid,
109 ErrorCode AuthorizeBegin(const KeyPurpose purpose, const km_id_t keyid,
200 bool MinTimeBetweenOpsPassed(uint32_t min_time_between, const km_id_t keyid);
201 bool MaxUsesPerBootNotExceeded(const km_id_t keyid, uint32_t max_uses);
Doperation_struct.h42 : handle(handle_), keyid(keyid_), purpose(purpose_), device(device_), in Operation()
51 uint64_t keyid; member
Doperation.cpp29 sp<IBinder> OperationMap::addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose, in addOperation() argument
34 mMap.emplace(token, std::make_shared<Operation>(handle, keyid, purpose, dev, in addOperation()
Doperation.h55 sp<IBinder> addOperation(uint64_t handle, uint64_t keyid, KeyPurpose purpose,
Dkeymaster_worker.cpp428 auto keyid = KeymasterEnforcement::CreateKeyId(blob2hidlVec(keyBlob)); in begin() local
429 if (!keyid) { in begin()
440 purpose, *keyid, key_auths, opParams, authToken, 0 /* op_handle */, in begin()
504 operationMap_.addOperation(result.handle, *keyid, purpose, dev, appToken, in begin()
614 rc = keyStore_->getEnforcementPolicy().AuthorizeOperation(op->purpose, op->keyid, key_auths, in update()
708 rc = keyStore_->getEnforcementPolicy().AuthorizeOperation(op->purpose, op->keyid, key_auths, in finish()
/system/keymaster/include/keymaster/
Dkeymaster_enforcement.h55 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/km_openssl/
Dsoft_keymaster_enforcement.cpp63 km_id_t* keyid) const { in CreateKeyId()
71 assert(hash_len >= sizeof(*keyid)); in CreateKeyId()
72 memcpy(keyid, hash, sizeof(*keyid)); in CreateKeyId()
/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/bt/stack/smp/
Dcrypto_toolbox.h35 extern Octet16 smp_calculate_h6(const Octet16& w, std::array<uint8_t, 4> keyid);
/system/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc29 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6() argument
30 return aes_cmac(w, keyid.data(), keyid.size()); in h6()
Dcrypto_toolbox.h32 extern Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid);
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc30 Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid) { in h6() argument
31 return aes_cmac(w, keyid.data(), keyid.size()); in h6()
Dcrypto_toolbox.h45 extern Octet16 h6(const Octet16& w, std::array<uint8_t, 4> keyid);
/system/core/fs_mgr/libdm/include/libdm/
Ddm_target.h144 const std::string& keyid) in DmTargetAndroidVerity() argument
145 : DmTarget(start, length), keyid_(keyid), block_device_(block_device) {} in DmTargetAndroidVerity()
/system/ca-certificates/files/
D559f7c71.047 keyid:47:77:C3:14:8B:62:39:0C:C9:6F:E1:50:4D:D0:10:58:DC:95:88:6D
D88950faa.046 keyid:82:D1:85:73:30:E7:35:04:D3:8E:02:92:FB:E5:A4:D1:C4:21:E8:CD
Dd8317ada.047 keyid:DA:83:63:02:79:8E:DA:4C:C6:3C:23:14:D8:8F:C3:20:AB:28:60:59
D7892ad52.046 keyid:5B:CA:5E:E5:DE:D2:81:AA:CD:A8:2D:64:51:B6:D9:72:9B:97:E6:4F
D7999be0d.060 keyid:C0:7A:98:68:8D:89:FB:AB:05:64:0C:11:7D:AA:7D:65:B8:CA:CC:4E
/system/ca-certificates/google/files/
D594f1775.055 keyid:48:E6:68:F9:2B:D2:B2:95:D7:47:D8:23:20:10:4F:33:98:90:9F:D4
D57692373.061 keyid:71:38:36:F2:02:31:53:47:2B:6E:BA:65:46:A9:10:15:58:20:05:09
D7999be0d.060 keyid:C0:7A:98:68:8D:89:FB:AB:05:64:0C:11:7D:AA:7D:65:B8:CA:CC:4E
/system/core/fs_mgr/tools/
Ddmctl.cpp110 std::string keyid = NextArg(); in Next() local
112 return std::make_unique<DmTargetAndroidVerity>(start_sector, num_sectors, keyid, in Next()

1234