Home
last modified time | relevance | path

Searched refs:user_type (Results 1 – 19 of 19) sorted by relevance

/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/auth_info/
H A Dremove_auth_info.c31 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 Dauth_info.c156 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 Dremove_auth_info_client.c79 …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 Dhuks_adapter.h60 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 Dhuks_adapter_test.h64 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 Dauth_info_test.h35 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 Dhuks_adapter_test.cpp1421 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 Dhuks_adapter_mock.c926 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 Dhuks_adapter_mock_for_pake.c997 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 Dadd_auth_info.h24 int32_t user_type; member
37 int32_t user_type; member
H A Dauth_info.h31 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 Dremove_auth_info.h24 int32_t user_type; member
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/huks_adapter/
H A Dhuks_adapter.c1075 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 Dhichain.c66 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 Drmv_auth_info_data.c45 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 Dadd_auth_info_data.c45 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 Dhichain.h208 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 Distrustpeer_fuzzer.cpp74 user_info.user_type = type % 2; /* 2 : total branch */ in IsTrustPeerFuzz()
/ohos5.0/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/
H A Dbuild_object.c217 hichain->auth_info = build_auth_client_info(para->auth_id, para->user_type); in build_auth_info_client_object()