/system/keymaster/ |
H A D | operation_table.cpp | 35 keymaster_operation_handle_t* op_handle) { 43 if (RAND_bytes(reinterpret_cast<uint8_t*>(op_handle), sizeof(*op_handle)) != 1) 45 if (*op_handle == 0) { 54 table_[i].handle = *op_handle; 61 Operation* OperationTable::Find(keymaster_operation_handle_t op_handle) { argument 62 if (op_handle == 0) 69 if (table_[i].handle == op_handle) 75 bool OperationTable::Delete(keymaster_operation_handle_t op_handle) { argument 80 if (table_[i].handle == op_handle) { 34 Add(Operation* operation, keymaster_operation_handle_t* op_handle) argument [all...] |
H A D | keymaster1_engine.h | 60 : op_handle(0), begin_params(params), key_material(blob), error(KM_ERROR_OK), 63 keymaster_operation_handle_t op_handle; member in struct:keymaster::Keymaster1Engine::KeyData
|
H A D | keymaster_enforcement.cpp | 122 keymaster_operation_handle_t op_handle, 141 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 149 keymaster_operation_handle_t op_handle) { 181 auth_timeout_index, op_handle, false /* is_begin_operation */)) 273 auth_type_index, auth_timeout_index, 0 /* op_handle */, 444 const keymaster_operation_handle_t op_handle, 474 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) { 475 LOG_E("Auth token has the challenge %llu, need %llu", auth_token.challenge, op_handle); 118 AuthorizeOperation(const keymaster_purpose_t purpose, const km_id_t keyid, const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle, bool is_begin_operation) argument 147 AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument 440 AuthTokenMatches(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, const uint64_t user_secure_id, const int auth_type_index, const int auth_timeout_index, const keymaster_operation_handle_t op_handle, bool is_begin_operation) const argument
|
/system/keymaster/include/keymaster/ |
H A D | keymaster_enforcement.h | 55 keymaster_operation_handle_t op_handle, 74 keymaster_operation_handle_t op_handle) { 75 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 85 keymaster_operation_handle_t op_handle) { 86 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 149 keymaster_operation_handle_t op_handle); 156 const keymaster_operation_handle_t op_handle, 72 AuthorizeUpdate(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument 83 AuthorizeFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, keymaster_operation_handle_t op_handle) argument
|
H A D | android_keymaster_messages.h | 348 keymaster_operation_handle_t op_handle; member in struct:keymaster::BeginOperationResponse 359 keymaster_operation_handle_t op_handle; member in struct:keymaster::UpdateOperationRequest 384 keymaster_operation_handle_t op_handle; member in struct:keymaster::FinishOperationRequest 406 return append_uint64_to_buf(buf, end, op_handle); 409 return copy_uint64_from_buf(buf_ptr, end, &op_handle); 412 keymaster_operation_handle_t op_handle; member in struct:keymaster::AbortOperationRequest
|
/system/security/keystore/ |
H A D | keymaster_enforcement.h | 54 const AuthorizationSet& operation_params, uint64_t op_handle, 72 const AuthorizationSet& operation_params, uint64_t op_handle) { 73 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 82 const AuthorizationSet& operation_params, uint64_t op_handle) { 83 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 145 const AuthorizationSet& operation_params, uint64_t op_handle); 152 const uint64_t op_handle, bool is_begin_operation) const; 71 AuthorizeUpdate(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument 81 AuthorizeFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument
|
H A D | auth_token_table.cpp | 109 KeyPurpose purpose, uint64_t op_handle, 120 return FindAuthPerOpAuthorization(key_sids, auth_type, op_handle, found); 127 HardwareAuthenticatorType auth_type, uint64_t op_handle, 129 if (op_handle == 0) return OP_HANDLE_REQUIRED; 132 entries_, [&](Entry& e) { return e.token()->challenge == op_handle && !e.completed(); }); 196 void AuthTokenTable::MarkCompleted(const uint64_t op_handle) { argument 197 auto found = find_if(entries_, [&](Entry& e) { return e.token()->challenge == op_handle; }); 108 FindAuthorization(const AuthorizationSet& key_info, KeyPurpose purpose, uint64_t op_handle, const HardwareAuthToken** found) argument 126 FindAuthPerOpAuthorization(const std::vector<uint64_t>& sids, HardwareAuthenticatorType auth_type, uint64_t op_handle, const HardwareAuthToken** found) argument
|
H A D | keymaster_enforcement.cpp | 118 uint64_t op_handle, bool is_begin_operation) { 138 return AuthorizeUpdateOrFinish(auth_set, operation_params, op_handle); 145 uint64_t op_handle) { 178 auth_type_index, auth_timeout_index, op_handle, 275 auth_timeout_index, 0 /* op_handle */, 469 const uint64_t op_handle, 499 if (auth_timeout_index == -1 && op_handle && op_handle != auth_token.challenge) { 501 op_handle); 115 AuthorizeOperation(const KeyPurpose purpose, const km_id_t keyid, const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle, bool is_begin_operation) argument 143 AuthorizeUpdateOrFinish(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, uint64_t op_handle) argument 465 AuthTokenMatches(const AuthorizationSet& auth_set, const AuthorizationSet& operation_params, const uint64_t user_secure_id, const int auth_type_index, const int auth_timeout_index, const uint64_t op_handle, bool is_begin_operation) const argument
|