Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 47) sorted by relevance

12

/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/src/collectors/
Dcollector_network_activity.c229 asc_result_t result = ASC_RESULT_OK; in _collector_network_activity_serialize_events() local
244 result = ASC_RESULT_BAD_ARGUMENT; in _collector_network_activity_serialize_events()
262result = serializer_event_add_network_activity(serializer, current_time, collector_internal_ptr->i… in _collector_network_activity_serialize_events()
283 if (result != ASC_RESULT_OK) in _collector_network_activity_serialize_events()
288 return result; in _collector_network_activity_serialize_events()
293 asc_result_t result = ASC_RESULT_OK; in _collector_network_activity_port_init() local
301 result = ASC_RESULT_EXCEPTION; in _collector_network_activity_port_init()
333 return result; in _collector_network_activity_port_init()
443 network_activity_ipv4_t *result = network_activity_ipv4_init(); in _ipv4_callback() local
444 if (result == NULL) in _ipv4_callback()
[all …]
Dcollector_system_information.c47 asc_result_t result = ASC_RESULT_OK; in _collector_system_information_serialize_events() local
55 result = _collect_operation_system_information(collector_internal_ptr, &system_information); in _collector_system_information_serialize_events()
56 if (result != ASC_RESULT_OK) in _collector_system_information_serialize_events()
58 log_error("Failed to collect Operation System information, result=[%d]", result); in _collector_system_information_serialize_events()
63result = serializer_event_add_system_information(serializer, current_time, collector_internal_ptr-… in _collector_system_information_serialize_events()
66 if (result != ASC_RESULT_OK) in _collector_system_information_serialize_events()
71 log_debug("Done _collector_system_information_serialize_events, result=[%d]", result); in _collector_system_information_serialize_events()
72 return result; in _collector_system_information_serialize_events()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/utils/
Dnotifier.c66 asc_result_t result = ASC_RESULT_OK; in notifier_subscribe() local
72 result = ASC_RESULT_BAD_ARGUMENT; in notifier_subscribe()
78 result = ASC_RESULT_MEMORY_EXCEPTION; in notifier_subscribe()
89 return result; in notifier_subscribe()
94 asc_result_t result = ASC_RESULT_OK; in notifier_unsubscribe() local
100 result = ASC_RESULT_BAD_ARGUMENT; in notifier_unsubscribe()
108 result = ASC_RESULT_BAD_ARGUMENT; in notifier_unsubscribe()
115 return result; in notifier_unsubscribe()
120 asc_result_t result = ASC_RESULT_OK; in notifier_deinit() local
125 result = ASC_RESULT_BAD_ARGUMENT; in notifier_deinit()
[all …]
Duuid.c38 } result; in uuid_generate() local
40 result.word[0] = ++_uuid[0]; in uuid_generate()
41 result.word[1] = ++_uuid[1]; in uuid_generate()
43 memmove(buf_out, result.b, 16); in uuid_generate()
/NetX-Duo-v6.3.0/crypto_libraries/src/
Dnx_crypto_ctr.c139 USHORT result; in _nx_crypto_ctr_add_one() local
142 result = (USHORT)(control_block[15] + 1); in _nx_crypto_ctr_add_one()
143 control_block[15] = (UCHAR)(result & 0xFF); in _nx_crypto_ctr_add_one()
146 result = (USHORT)((result >> 8) + control_block[14]); in _nx_crypto_ctr_add_one()
147 control_block[14] = (UCHAR)(result & 0xFF); in _nx_crypto_ctr_add_one()
148 result = (USHORT)((result >> 8) + control_block[13]); in _nx_crypto_ctr_add_one()
149 control_block[13] = (UCHAR)(result & 0xFF); in _nx_crypto_ctr_add_one()
150 result = (USHORT)((result >> 8) + control_block[12]); in _nx_crypto_ctr_add_one()
151 control_block[12] = (UCHAR)(result & 0xFF); in _nx_crypto_ctr_add_one()
Dnx_crypto_huge_number.c457 NX_CRYPTO_HUGE_NUMBER *result) in _nx_crypto_huge_number_subtract_unsigned() argument
463 HN_UBASE *result_buffer = result -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_subtract_unsigned()
485 result -> nx_crypto_huge_number_size = left -> nx_crypto_huge_number_size; in _nx_crypto_huge_number_subtract_unsigned()
486 _nx_crypto_huge_number_adjust_size(result); in _nx_crypto_huge_number_subtract_unsigned()
1088 NX_CRYPTO_HUGE_NUMBER *result) in _nx_crypto_huge_number_multiply() argument
1107 result_buffer = result -> nx_crypto_huge_number_data; in _nx_crypto_huge_number_multiply()
1108 result -> nx_crypto_huge_number_size = (left_size + right_size); in _nx_crypto_huge_number_multiply()
1142 result -> nx_crypto_huge_number_is_negative = NX_CRYPTO_FALSE; in _nx_crypto_huge_number_multiply()
1146 result -> nx_crypto_huge_number_is_negative = NX_CRYPTO_TRUE; in _nx_crypto_huge_number_multiply()
1149 _nx_crypto_huge_number_adjust_size(result); in _nx_crypto_huge_number_multiply()
[all …]
Dnx_crypto_huge_number_extended.c252 NX_CRYPTO_HUGE_NUMBER *result, in _nx_crypto_huge_number_power_modulus() argument
265 NX_CRYPTO_HUGE_NUMBER_SET_DIGIT(result, 1); in _nx_crypto_huge_number_power_modulus()
282 _nx_crypto_huge_number_multiply(result, number, &temp); in _nx_crypto_huge_number_power_modulus()
283 NX_CRYPTO_HUGE_NUMBER_COPY(result, &temp); in _nx_crypto_huge_number_power_modulus()
287 _nx_crypto_huge_number_modulus(result, modulus); in _nx_crypto_huge_number_power_modulus()
Dnx_crypto_method_self_test_prf.c160 UCHAR *result; in _nx_crypto_method_self_test_prf() local
183 result = result_sha1; in _nx_crypto_method_self_test_prf()
193 result = result_sha256; in _nx_crypto_method_self_test_prf()
203 result = result_sha384; in _nx_crypto_method_self_test_prf()
213 result = result_sha512; in _nx_crypto_method_self_test_prf()
266 if(NX_CRYPTO_MEMCMP(output, result, result_length) != 0) in _nx_crypto_method_self_test_prf()
Dnx_crypto_gcm.c145 USHORT result; in _nx_crypto_gcm_inc32() local
148 result = (USHORT)(counter_block[15] + 1); in _nx_crypto_gcm_inc32()
149 counter_block[15] = (UCHAR)(result & 0xFF); in _nx_crypto_gcm_inc32()
152 result = (USHORT)((result >> 8) + counter_block[14]); in _nx_crypto_gcm_inc32()
153 counter_block[14] = (UCHAR)(result & 0xFF); in _nx_crypto_gcm_inc32()
154 result = (USHORT)((result >> 8) + counter_block[13]); in _nx_crypto_gcm_inc32()
155 counter_block[13] = (UCHAR)(result & 0xFF); in _nx_crypto_gcm_inc32()
156 result = (USHORT)((result >> 8) + counter_block[12]); in _nx_crypto_gcm_inc32()
157 counter_block[12] = (UCHAR)(result & 0xFF); in _nx_crypto_gcm_inc32()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/src/model/objects/
Dobject_network_activity_ext.c63 unsigned int result = data_ptr->local_address; in hashset_network_activity_ipv4_t_hash() local
64 result ^= data_ptr->remote_address; in hashset_network_activity_ipv4_t_hash()
65 result ^= (unsigned int)(((data_ptr->common.local_port << 16) | data_ptr->common.remote_port)); in hashset_network_activity_ipv4_t_hash()
66 result ^= data_ptr->common.transport_protocol; in hashset_network_activity_ipv4_t_hash()
68 return result; in hashset_network_activity_ipv4_t_hash()
121 unsigned int result = IPV6_ADDRESS_HASH(data_ptr->local_address); in hashset_network_activity_ipv6_t_hash() local
122 result ^= IPV6_ADDRESS_HASH(data_ptr->remote_address); in hashset_network_activity_ipv6_t_hash()
123 result ^= (unsigned int)(((data_ptr->common.local_port << 16) | data_ptr->common.remote_port)); in hashset_network_activity_ipv6_t_hash()
124 result ^= data_ptr->common.transport_protocol; in hashset_network_activity_ipv6_t_hash()
126 return result; in hashset_network_activity_ipv6_t_hash()
/NetX-Duo-v6.3.0/common/src/
Dnxd_ipv6_address_delete.c79 UINT result; in _nxd_ipv6_address_delete() local
90 result = NX_NO_INTERFACE_ADDRESS; in _nxd_ipv6_address_delete()
112 result = NX_SUCCESS; in _nxd_ipv6_address_delete()
128 result = NX_SUCCESS; in _nxd_ipv6_address_delete()
132 if (result == NX_SUCCESS) in _nxd_ipv6_address_delete()
167 if (address_change_notify && (result == NX_SUCCESS)) in _nxd_ipv6_address_delete()
177 return(result); in _nxd_ipv6_address_delete()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/
Dcore.c129 asc_result_t result = ASC_RESULT_OK; in core_init() local
135 result = ASC_RESULT_MEMORY_EXCEPTION; in core_init()
144 result = ASC_RESULT_EXCEPTION; in core_init()
153 result = ASC_RESULT_MEMORY_EXCEPTION; in core_init()
160 result = ASC_RESULT_MEMORY_EXCEPTION; in core_init()
164result = serializer_message_begin(core_ptr->serializer, core_ptr->security_module_id, core_ptr->se… in core_init()
173result = notifier_subscribe(NOTIFY_TOPIC_SECURITY_MODULE_STATE, &core_ptr->security_module_state_n… in core_init()
176 if (result != ASC_RESULT_OK) { in core_init()
316 asc_result_t result = ASC_RESULT_OK; in core_collect() local
352 result = collector_serialize_events(current_collector, core_ptr->serializer); in core_collect()
[all …]
Dcomponents_manager.c31 asc_result_t result = ASC_RESULT_OK; in components_manager_init() local
55 result = ret; in components_manager_init()
64 result = result_dyn; in components_manager_init()
72 return result; in components_manager_init()
221 asc_result_t result = ASC_RESULT_OK; in components_manager_start() local
239 result = ASC_RESULT_IMPOSSIBLE; in components_manager_start()
252 result = func ? func(id) : ASC_RESULT_OK; in components_manager_start()
253 if (result == ASC_RESULT_OK) { in components_manager_start()
260 if (result != ASC_RESULT_OK) { in components_manager_start()
264 return result; in components_manager_start()
[all …]
Dcollector_collection.c49 asc_result_t result = ASC_RESULT_OK; in collector_collection_init() local
55 result = ASC_RESULT_MEMORY_EXCEPTION; in collector_collection_init()
64 if (result != ASC_RESULT_OK) { in collector_collection_init()
65 log_error("Failed to initialize collector collection, result=[%d]", result); in collector_collection_init()
217 asc_result_t result = ASC_RESULT_OK; in collector_collection_register() local
224 result = ASC_RESULT_EXCEPTION; in collector_collection_register()
231 return result; in collector_collection_register()
/NetX-Duo-v6.3.0/crypto_libraries/inc/
Dnx_crypto_huge_number.h174 UINT _nx_crypto_huge_number_rbg(UINT bits, UCHAR *result);
184 NX_CRYPTO_HUGE_NUMBER *result);
191 NX_CRYPTO_HUGE_NUMBER *result);
194 NX_CRYPTO_HUGE_NUMBER *result);
195 VOID _nx_crypto_huge_number_square(NX_CRYPTO_HUGE_NUMBER *value, NX_CRYPTO_HUGE_NUMBER *result);
210 NX_CRYPTO_HUGE_NUMBER *result);
214 NX_CRYPTO_HUGE_NUMBER *result,
219 NX_CRYPTO_HUGE_NUMBER *result,
226 NX_CRYPTO_HUGE_NUMBER *result,
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/model/schema/
Dheartbeat_json_parser.h9 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
17 …on_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_Heartbeat_parse_json_table() argument
21 *result = 0; in AzureIoTSecurity_Heartbeat_parse_json_table()
31 if (!(*result = flatcc_builder_end_table(ctx->ctx))) goto failed; in AzureIoTSecurity_Heartbeat_parse_json_table()
Dlistening_ports_json_parser.h13 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
15 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
17 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
18 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
91 …n_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_ListeningPortsCommon_parse_json_struct() argument
95 *result = 0; in AzureIoTSecurity_ListeningPortsCommon_parse_json_struct()
98 if (buf == end || !(*result = flatcc_builder_end_struct(ctx->ctx))) goto failed; in AzureIoTSecurity_ListeningPortsCommon_parse_json_struct()
169 …n_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_ListeningPortsV4_parse_json_struct() argument
173 *result = 0; in AzureIoTSecurity_ListeningPortsV4_parse_json_struct()
176 if (buf == end || !(*result = flatcc_builder_end_struct(ctx->ctx))) goto failed; in AzureIoTSecurity_ListeningPortsV4_parse_json_struct()
[all …]
Dpayload_json_parser.h41 …c_json_parser_t *ctx, const char *buf, const char *end, uint8_t type, flatcc_builder_ref_t *result) in AzureIoTSecurity_Payload_parse_json_union() argument
44 *result = 0; in AzureIoTSecurity_Payload_parse_json_union()
49 buf = AzureIoTSecurity_NetworkActivity_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
52 buf = AzureIoTSecurity_SystemInformation_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
55 buf = AzureIoTSecurity_ListeningPorts_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
58 buf = AzureIoTSecurity_Heartbeat_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
61 buf = AzureIoTSecurity_Baseline_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
64 buf = AzureIoTSecurity_Process_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
67 buf = AzureIoTSecurity_Log_parse_json_table(ctx, buf, end, result); in AzureIoTSecurity_Payload_parse_json_union()
77 if (!*result) { in AzureIoTSecurity_Payload_parse_json_union()
Dnetwork_activity_json_parser.h13 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
15 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
16 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
17 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
18 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
19 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
97 …n_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_IPv4Addresses_parse_json_struct() argument
101 *result = 0; in AzureIoTSecurity_IPv4Addresses_parse_json_struct()
104 if (buf == end || !(*result = flatcc_builder_end_struct(ctx->ctx))) goto failed; in AzureIoTSecurity_IPv4Addresses_parse_json_struct()
219 …n_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_IPv6Addresses_parse_json_struct() argument
[all …]
Dsystem_information_json_parser.h9 …n_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
17 …on_table(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_SystemInformation_parse_json_table() argument
25 *result = 0; in AzureIoTSecurity_SystemInformation_parse_json_table()
78 if (!(*result = flatcc_builder_end_table(ctx->ctx))) goto failed; in AzureIoTSecurity_SystemInformation_parse_json_table()
Duuid_json_parser.h10 …_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result);
74 …n_struct(flatcc_json_parser_t *ctx, const char *buf, const char *end, flatcc_builder_ref_t *result) in AzureIoTSecurity_UUID_parse_json_struct() argument
78 *result = 0; in AzureIoTSecurity_UUID_parse_json_struct()
81 if (buf == end || !(*result = flatcc_builder_end_struct(ctx->ctx))) goto failed; in AzureIoTSecurity_UUID_parse_json_struct()
/NetX-Duo-v6.3.0/nx_secure/src/
Dnx_secure_crypto_method_self_test_prf.c108 UCHAR *result; in _nx_secure_crypto_method_self_test_prf() local
131 result = result_sha1; in _nx_secure_crypto_method_self_test_prf()
141 result = result_sha256; in _nx_secure_crypto_method_self_test_prf()
194 if(NX_SECURE_MEMCMP(output, result, result_length) != 0) in _nx_secure_crypto_method_self_test_prf()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/
Dnx_azure_iot_security_module.c88 asc_result_t result = ASC_RESULT_OK; in _cm_init() local
114 result = notifier_subscribe(NOTIFY_TOPIC_COLLECT, &_security_module.message_ready); in _cm_init()
129 return result; in _cm_init()
168 asc_result_t result = ASC_RESULT_OK; in nx_azure_iot_security_module_enable() local
224 result = components_manager_init(); in nx_azure_iot_security_module_enable()
225 switch (result) in nx_azure_iot_security_module_enable()
343 asc_result_t result = ASC_RESULT_OK; in _security_module_get_nx_status() local
349 result = components_manager_get_last_result(components_manager_get_self_id()); in _security_module_get_nx_status()
350 if (result != ASC_RESULT_OK) in _security_module_get_nx_status()
532 asc_result_t result = ASC_RESULT_OK; in _security_module_event_process_state_active() local
[all …]
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/src/model/
Dcollector.c60 asc_result_t result = ASC_RESULT_OK; in collector_default_create() local
65 result = ASC_RESULT_MEMORY_EXCEPTION; in collector_default_create()
68result = collector_init_with_params(&collector_ptr->internal, type, priority, collect_function, in… in collector_default_create()
69 if (result != ASC_RESULT_OK) { in collector_default_create()
78 return result; in collector_default_create()
/NetX-Duo-v6.3.0/addons/azure_iot/azure_iot_security_module/iot-security-module-core/inc/asc_security_core/
Dcomponents_factory.h37 asc_result_t result = components_factory_set(#_component, _component, _ops, false); \
39 return result; \

12