/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/ |
H A D | remove_auth_info.c | 31 static int32_t delete_auth_info(const struct hichain *hichain, int32_t user_type, struct hc_auth_id… 51 ret = delete_auth_info(hichain, cache.user_type, &cache.auth_id); in send_remove_response() 68 static int32_t get_field_from_request_payload(struct uint8_buff *payload, int32_t *user_type, 85 ret = get_field_from_request_payload(&plain, &cache->user_type, &cache->auth_id); in parse_remove_request_data() 118 static int32_t delete_auth_info(const struct hichain *hichain, int32_t user_type, struct hc_auth_id… in delete_auth_info() argument 125 enum huks_key_alias_type alias_type = (user_type == HC_USER_TYPE_ACCESSORY) ? in delete_auth_info() 141 (void)user_type; in delete_auth_info() 145 static int32_t get_field_from_request_payload(struct uint8_buff *payload, int32_t *user_type, in get_field_from_request_payload() argument 153 *user_type = rmv_auth_data->user_type; in get_field_from_request_payload()
|
H A D | auth_info.c | 156 enum huks_key_alias_type alias_type = (cache->user_type == HC_USER_TYPE_ACCESSORY) ? in save_auth_info() 163 …int32_t ret = import_lt_public_key(&alias, &cache->ltpk, cache->user_type, pair_type, &cache->auth… in save_auth_info() 177 struct auth_info_cache *build_auth_client_info(struct hc_auth_id auth_id, int32_t user_type) in build_auth_client_info() argument 185 auth_info->user_type = user_type; in build_auth_client_info()
|
H A D | remove_auth_info_client.c | 79 …enum huks_key_alias_type alias_type = (auth_info_client->auth_info->user_type == HC_USER_TYPE_ACCE… in build_remove_request_data() 91 authData.user_type = HC_USER_TYPE_ACCESSORY; in build_remove_request_data()
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/inc/huks_adapter/ |
H A D | huks_adapter.h | 60 uint8_t user_type; member 125 const int32_t user_type, const int32_t pair_type, struct hc_auth_id *auth_id); 194 int32_t verify(struct hc_key_alias *key_alias, const int32_t user_type, const struct uint8_buff *me… 208 int32_t verify_with_public_key(const int32_t user_type, const struct uint8_buff *message,
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/ |
H A D | huks_adapter_test.h | 64 uint8_t user_type; member 129 const int32_t user_type, const int32_t pair_type, struct hc_auth_id *auth_id); 198 int32_t verify(struct hc_key_alias *key_alias, const int32_t user_type, const struct uint8_buff *me… 212 int32_t verify_with_public_key(const int32_t user_type, const struct uint8_buff *message,
|
H A D | auth_info_test.h | 35 int32_t user_type; member 70 struct auth_info_cache *build_auth_client_info(struct hc_auth_id auth_id, int32_t user_type);
|
H A D | huks_adapter_test.cpp | 1421 cache.user_type = HC_USER_TYPE_ACCESSORY; 1436 cache.user_type = HC_USER_TYPE_CONTROLLER;
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/unittest/unittest_mock/ |
H A D | huks_adapter_mock.c | 926 huks_key_type.type_struct.user_type = (uint8_t)user_type; in init_import_lt_public_key_param_set() 959 .uint32Param = user_type in init_import_lt_public_key_param_set() 981 if ((user_type < 0) || (user_type >= HC_MAX_KEY_TYPE_NUM)) { in import_lt_public_key() 1082 out_key_type->user_type = key_type_union.type_struct.user_type; in inner_get_lt_info_by_key_info() 1136 out_key_type->user_type = key_type_union.type_struct.user_type; in inner_get_lt_info_by_key_alias() 1190 if (key_type.user_type != (uint8_t)HC_USER_TYPE_CONTROLLER) { in check_key_alias_is_owner() 1204 uint8_t user_type = (uint8_t)trust_user_type; in load_lt_public_key_list() local 1227 if (key_type.user_type != user_type) { in load_lt_public_key_list() 1230 if (user_type == (uint8_t)HC_USER_TYPE_CONTROLLER) { in load_lt_public_key_list() 1355 const int32_t user_type, struct HksParamSet **param_set) in gen_verify_key_param_set() argument [all …]
|
H A D | huks_adapter_mock_for_pake.c | 997 huks_key_type.type_struct.user_type = (uint8_t)user_type; in init_import_lt_public_key_param_set() 1030 .uint32Param = user_type in init_import_lt_public_key_param_set() 1052 if ((user_type < 0) || (user_type >= HC_MAX_KEY_TYPE_NUM)) { in import_lt_public_key() 1153 out_key_type->user_type = key_type_union.type_struct.user_type; in inner_get_lt_info_by_key_info() 1207 out_key_type->user_type = key_type_union.type_struct.user_type; in inner_get_lt_info_by_key_alias() 1261 if (key_type.user_type != (uint8_t)HC_USER_TYPE_CONTROLLER) { in check_key_alias_is_owner() 1275 uint8_t user_type = (uint8_t)trust_user_type; in load_lt_public_key_list() local 1298 if (key_type.user_type != user_type) { in load_lt_public_key_list() 1301 if (user_type == (uint8_t)HC_USER_TYPE_CONTROLLER) { in load_lt_public_key_list() 1426 const int32_t user_type, struct HksParamSet **param_set) in gen_verify_key_param_set() argument [all …]
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/inc/auth_info/ |
H A D | add_auth_info.h | 24 int32_t user_type; member 37 int32_t user_type; member
|
H A D | auth_info.h | 31 int32_t user_type; member 66 struct auth_info_cache *build_auth_client_info(struct hc_auth_id auth_id, int32_t user_type);
|
H A D | remove_auth_info.h | 24 int32_t user_type; member
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/ |
H A D | huks_adapter.c | 1075 huks_key_type.type_struct.user_type = (uint8_t)user_type; in init_import_lt_public_key_param_set() 1099 { .tag = HKS_TAG_KEY_ROLE, .uint32Param = user_type } in init_import_lt_public_key_param_set() 1115 if ((user_type < 0) || (user_type >= HC_MAX_KEY_TYPE_NUM)) { in import_lt_public_key() 1235 out_key_type->user_type = key_type_union.type_struct.user_type; in inner_get_lt_info_by_key_info() 1259 outKeyType->user_type = keyTypeUnion.type_struct.user_type; in SetKeyType() 1352 if (key_type.user_type != (uint8_t)HC_USER_TYPE_CONTROLLER) { in check_key_alias_is_owner() 1366 uint8_t user_type = (uint8_t)trust_user_type; in load_lt_public_key_list() local 1389 if (key_type.user_type != user_type) { in load_lt_public_key_list() 1392 if (user_type == (uint8_t)HC_USER_TYPE_CONTROLLER) { in load_lt_public_key_list() 1529 const int32_t user_type, struct HksParamSet **param_set) in gen_verify_key_param_set() argument [all …]
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/ |
H A D | hichain.c | 66 static int32_t delete_public_key(hc_handle handle, struct service_id service_id, int32_t user_type); 203 const struct hc_auth_id *auth_id, int32_t user_type) in remove_auth_info() argument 219 .user_type = user_type, in remove_auth_info() 239 (void)user_type; 319 enum huks_key_alias_type alias_type = (user_info->user_type == HC_USER_TYPE_ACCESSORY ? in delete_local_auth_info() 355 enum huks_key_alias_type alias_type = (user_info->user_type == HC_USER_TYPE_ACCESSORY ? in is_trust_peer() 377 if (key_type.user_type == (uint8_t)HC_USER_TYPE_ACCESSORY) { in is_trust_peer() 845 …if ((user_info->user_type != HC_USER_TYPE_CONTROLLER) && (user_info->user_type != HC_USER_TYPE_ACC… in check_auth_info() 846 LOGE("User type %d is not controller or accessory", user_info->user_type); in check_auth_info() 896 static int32_t delete_public_key(hc_handle handle, struct service_id service_id, int32_t user_type) in delete_public_key() argument [all …]
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/struct/ |
H A D | rmv_auth_info_data.c | 45 rmv_auth_data->user_type = type; in parse_rmv_auth_info_data() 84 rmv_auth_data->user_type, FIELD_RMV_ID, tmp_rmv_id_data_hex) < 0) { in make_rmv_auth_info_data()
|
H A D | add_auth_info_data.c | 45 add_auth_data->user_type = type; in parse_add_auth_info_data() 105 … "{\"%s\":%d,\"%s\":\"%s\",\"%s\":\"%s\",\"%s\":%s}", FIELD_ADD_TYPE, add_auth_data->user_type, in make_add_auth_info_data()
|
/ohos5.0/base/security/device_auth/interfaces/inner_api/deviceauth_lite/ |
H A D | hichain.h | 208 int32_t user_type; member 352 const struct hc_auth_id *auth_id, int32_t user_type); 364 const struct hc_auth_id *auth_id, int32_t user_type);
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/test/fuzztest/istrustpeer_fuzzer/ |
H A D | istrustpeer_fuzzer.cpp | 74 user_info.user_type = type % 2; /* 2 : total branch */ in IsTrustPeerFuzz()
|
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/ |
H A D | build_object.c | 217 hichain->auth_info = build_auth_client_info(para->auth_id, para->user_type); in build_auth_info_client_object()
|