| /NetX-Duo-v6.2.1/nx_secure/src/ |
| D | nx_secure_tls_session_packet_buffer_set.c | 72 UCHAR *buffer_ptr, ULONG buffer_size) in _nx_secure_tls_session_packet_buffer_set() argument 79 buffer_size -= (((ULONG)buffer_ptr) & 0x3); in _nx_secure_tls_session_packet_buffer_set() 83 if (buffer_size & 0x3) in _nx_secure_tls_session_packet_buffer_set() 85 buffer_size = buffer_size & 0xFFFFFFFC; in _nx_secure_tls_session_packet_buffer_set() 91 session_ptr -> nx_secure_tls_packet_buffer_size = buffer_size; in _nx_secure_tls_session_packet_buffer_set() 94 session_ptr -> nx_secure_tls_packet_buffer_original_size = buffer_size; in _nx_secure_tls_session_packet_buffer_set()
|
| D | nxe_secure_tls_session_x509_client_verify_configure.c | 80 …NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) in _nxe_secure_tls_session_x509_client_verify_configure() argument 100 if((certificate_buffer != NX_NULL && buffer_size == 0) || in _nxe_secure_tls_session_x509_client_verify_configure() 101 (certificate_buffer == NX_NULL && buffer_size != 0)) in _nxe_secure_tls_session_x509_client_verify_configure() 114 if(buffer_size < metadata_size || certs_number == 0) in _nxe_secure_tls_session_x509_client_verify_configure() 120 cert_buffer_size = (buffer_size - metadata_size) / certs_number; in _nxe_secure_tls_session_x509_client_verify_configure() 133 …s_session_x509_client_verify_configure(tls_session, certs_number, certificate_buffer, buffer_size); in _nxe_secure_tls_session_x509_client_verify_configure()
|
| D | nx_secure_tls_session_x509_client_verify_configure.c | 105 …NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) in _nx_secure_tls_session_x509_client_verify_configure() argument 114 if(certificate_buffer != NX_NULL && buffer_size != 0) in _nx_secure_tls_session_x509_client_verify_configure() 116 …tls_remote_certificate_buffer_allocate(tls_session, certs_number, certificate_buffer, buffer_size); in _nx_secure_tls_session_x509_client_verify_configure() 124 NX_PARAMETER_NOT_USED(buffer_size); in _nx_secure_tls_session_x509_client_verify_configure()
|
| D | nxe_secure_dtls_server_x509_client_verify_configure.c | 71 UCHAR *certs_buffer, ULONG buffer_size) in _nxe_secure_dtls_server_x509_client_verify_configure() argument 81 if(certs_per_session == 0 || buffer_size == 0) in _nxe_secure_dtls_server_x509_client_verify_configure() 87 …dtls_server_x509_client_verify_configure(server_ptr, certs_per_session, certs_buffer, buffer_size); in _nxe_secure_dtls_server_x509_client_verify_configure() 94 NX_PARAMETER_NOT_USED(buffer_size); in _nxe_secure_dtls_server_x509_client_verify_configure()
|
| D | nx_secure_tls_remote_certificate_buffer_allocate.c | 93 …NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) in _nx_secure_tls_remote_certificate_buffer_allocate() argument 107 if(buffer_size < metadata_size) in _nx_secure_tls_remote_certificate_buffer_allocate() 115 cert_buffer_size = (buffer_size - metadata_size) / certs_number; in _nx_secure_tls_remote_certificate_buffer_allocate() 151 NX_PARAMETER_NOT_USED(buffer_size); in _nx_secure_tls_remote_certificate_buffer_allocate()
|
| D | nxe_secure_tls_session_packet_buffer_set.c | 78 UCHAR *buffer_ptr, ULONG buffer_size) in _nxe_secure_tls_session_packet_buffer_set() argument 87 if (buffer_size < NX_SECURE_TLS_MINIMUM_MESSAGE_BUFFER_SIZE) in _nxe_secure_tls_session_packet_buffer_set() 101 status = _nx_secure_tls_session_packet_buffer_set(session_ptr, buffer_ptr, buffer_size); in _nxe_secure_tls_session_packet_buffer_set()
|
| D | nxe_secure_tls_remote_certificate_buffer_allocate.c | 76 …NX_SECURE_TLS_SESSION *tls_session, UINT certs_number, VOID *certificate_buffer, ULONG buffer_size) in _nxe_secure_tls_remote_certificate_buffer_allocate() argument 86 if(certs_number == 0 || buffer_size == 0) in _nxe_secure_tls_remote_certificate_buffer_allocate() 101 …tls_remote_certificate_buffer_allocate(tls_session, certs_number, certificate_buffer, buffer_size); in _nxe_secure_tls_remote_certificate_buffer_allocate()
|
| D | nxe_secure_tls_remote_certificate_allocate.c | 80 UCHAR *raw_certificate_buffer, UINT buffer_size) in _nxe_secure_tls_remote_certificate_allocate() argument 98 if (buffer_size == 0) in _nxe_secure_tls_remote_certificate_allocate() 106 …emote_certificate_allocate(tls_session, certificate, (UCHAR *)raw_certificate_buffer, buffer_size); in _nxe_secure_tls_remote_certificate_allocate()
|
| D | nx_secure_tls_remote_certificate_allocate.c | 93 UCHAR *raw_certificate_buffer, UINT buffer_size) in _nx_secure_tls_remote_certificate_allocate() argument 103 certificate -> nx_secure_x509_certificate_raw_buffer_size = buffer_size; in _nx_secure_tls_remote_certificate_allocate() 126 NX_PARAMETER_NOT_USED(buffer_size); in _nx_secure_tls_remote_certificate_allocate()
|
| D | nx_secure_dtls_server_x509_client_verify_configure.c | 83 UCHAR *certs_buffer, ULONG buffer_size) in _nx_secure_dtls_server_x509_client_verify_configure() argument 104 per_session_buffer_size = buffer_size / num_sessions; in _nx_secure_dtls_server_x509_client_verify_configure() 135 NX_PARAMETER_NOT_USED(buffer_size); in _nx_secure_dtls_server_x509_client_verify_configure()
|
| D | nx_secure_x509_certificate_initialize.c | 112 UCHAR *raw_data_buffer, USHORT buffer_size, in _nx_secure_x509_certificate_initialize() argument 136 if (length > buffer_size) in _nx_secure_x509_certificate_initialize() 141 certificate -> nx_secure_x509_certificate_raw_buffer_size = buffer_size; in _nx_secure_x509_certificate_initialize()
|
| D | nxe_secure_x509_certificate_initialize.c | 86 USHORT buffer_size, const UCHAR *private_key, in _nxe_secure_x509_certificate_initialize() argument 103 …ate_initialize(certificate, certificate_data, length, raw_data_buffer, buffer_size, private_key, p… in _nxe_secure_x509_certificate_initialize()
|
| /NetX-Duo-v6.2.1/crypto_libraries/src/ |
| D | nx_crypto_ecdsa.c | 88 UINT buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_ecdsa_sign() local 115 if (private_key_length > buffer_size) in _nx_crypto_ecdsa_sign() 120 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&privkey, scratch, buffer_size); in _nx_crypto_ecdsa_sign() 121 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&z, scratch, buffer_size); in _nx_crypto_ecdsa_sign() 123 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&k, scratch, buffer_size + 8); in _nx_crypto_ecdsa_sign() 124 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&ik, scratch, buffer_size); in _nx_crypto_ecdsa_sign() 125 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp, scratch, buffer_size * 2); in _nx_crypto_ecdsa_sign() 126 NX_CRYPTO_EC_POINT_INITIALIZE(&pt, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecdsa_sign() 136 if (hash_length > buffer_size) in _nx_crypto_ecdsa_sign() 138 hash_length = buffer_size; in _nx_crypto_ecdsa_sign() [all …]
|
| D | nx_crypto_method_self_test_ecdsa.c | 106 UINT buffer_size; in _nx_crypto_method_self_test_ecdsa() local 213 buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_method_self_test_ecdsa() 220 scratch = (HN_UBASE*)(&scratch_buffer[3 * buffer_size + 4]); in _nx_crypto_method_self_test_ecdsa() 222 pubkey = &scratch_buffer[buffer_size]; in _nx_crypto_method_self_test_ecdsa() 223 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_method_self_test_ecdsa() 224 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size + 8); in _nx_crypto_method_self_test_ecdsa() 236 status = _nx_crypto_huge_number_extract_fixed_size(&private_key, privkey, buffer_size); in _nx_crypto_method_self_test_ecdsa() 243 …_nx_crypto_ec_point_extract_uncompressed(curve, &public_key, pubkey, 4 + 2 * buffer_size, &pubkey_… in _nx_crypto_method_self_test_ecdsa() 253 buffer_size << 3, in _nx_crypto_method_self_test_ecdsa()
|
| D | nx_crypto_ecjpake.c | 79 UINT buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_ecjpake_init() local 95 NX_CRYPTO_EC_POINT_AFFINE, scratch_ptr, buffer_size); in _nx_crypto_ecjpake_init() 97 NX_CRYPTO_EC_POINT_AFFINE, scratch_ptr, buffer_size); in _nx_crypto_ecjpake_init() 99 NX_CRYPTO_EC_POINT_AFFINE, scratch_ptr, buffer_size); in _nx_crypto_ecjpake_init() 101 NX_CRYPTO_EC_POINT_AFFINE, scratch_ptr, buffer_size); in _nx_crypto_ecjpake_init() 103 …_CRYPTO_HUGE_NUMBER_INITIALIZE(&ecjpake -> nx_crypto_ecjpake_private_x2, scratch_ptr, buffer_size); in _nx_crypto_ecjpake_init() 172 UINT buffer_size = curve -> nx_crypto_ec_n.nx_crypto_huge_buffer_size; in _nx_crypto_ecjpake_hello_generate() local 179 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate() 180 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&r, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate() 181 NX_CRYPTO_EC_POINT_INITIALIZE(&v, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in _nx_crypto_ecjpake_hello_generate() [all …]
|
| D | nx_crypto_huge_number.c | 2165 UINT buffer_size; in _nx_crypto_huge_number_inverse_modulus_prime() local 2169 buffer_size = (p -> nx_crypto_huge_number_size + 1) << HN_SIZE_SHIFT; in _nx_crypto_huge_number_inverse_modulus_prime() 2173 buffer_size = (a -> nx_crypto_huge_number_size + 1) << HN_SIZE_SHIFT; in _nx_crypto_huge_number_inverse_modulus_prime() 2177 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&u, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime() 2178 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&v, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime() 2179 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&A, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime() 2180 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&C, scratch, buffer_size); in _nx_crypto_huge_number_inverse_modulus_prime() 2302 UINT buffer_size; in _nx_crypto_huge_number_inverse_modulus() local 2321 buffer_size = (m -> nx_crypto_huge_number_size + 1) << HN_SIZE_SHIFT; in _nx_crypto_huge_number_inverse_modulus() 2325 buffer_size = (a -> nx_crypto_huge_number_size + 1) << HN_SIZE_SHIFT; in _nx_crypto_huge_number_inverse_modulus() [all …]
|
| D | nx_crypto_ec.c | 1090 UINT buffer_size; in _nx_crypto_ec_point_fp_projective_to_affine() local 1101 buffer_size = point -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size; in _nx_crypto_ec_point_fp_projective_to_affine() 1102 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp1, scratch, buffer_size << 1); in _nx_crypto_ec_point_fp_projective_to_affine() 1103 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp2, scratch, buffer_size << 1); in _nx_crypto_ec_point_fp_projective_to_affine() 1104 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&zi, scratch, buffer_size); in _nx_crypto_ec_point_fp_projective_to_affine() 2259 UINT buffer_size; in _nx_crypto_ec_fp_projective_add() local 2287 buffer_size = projective_point -> nx_crypto_ec_point_x.nx_crypto_huge_buffer_size; in _nx_crypto_ec_fp_projective_add() 2288 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp1, scratch, buffer_size << 1); in _nx_crypto_ec_fp_projective_add() 2289 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp2, scratch, buffer_size << 1); in _nx_crypto_ec_fp_projective_add() 2290 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&temp3, scratch, buffer_size << 1); in _nx_crypto_ec_fp_projective_add() [all …]
|
| /NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
| D | nx_secure_ecdsa_test.c | 103 UINT buffer_size; in thread_0_entry() local 147 buffer_size = curve->nx_crypto_ec_n.nx_crypto_huge_buffer_size; in thread_0_entry() 148 scratch = (HN_UBASE*)(&scratch_buffer[3 * buffer_size + 4]); in thread_0_entry() 150 pubkey = &scratch_buffer[buffer_size]; in thread_0_entry() 151 NX_CRYPTO_EC_POINT_INITIALIZE(&public_key, NX_CRYPTO_EC_POINT_AFFINE, scratch, buffer_size); in thread_0_entry() 152 NX_CRYPTO_HUGE_NUMBER_INITIALIZE(&private_key, scratch, buffer_size + 8); in thread_0_entry() 161 status = _nx_crypto_huge_number_extract_fixed_size(&private_key, privkey, buffer_size); in thread_0_entry() 165 …_nx_crypto_ec_point_extract_uncompressed(curve, &public_key, pubkey, 4 + 2 * buffer_size, &pubkey_… in thread_0_entry() 171 …_nx_crypto_ecdsa_sign(curve, hash_data, sizeof(hash_data), privkey, buffer_size, signature, signat… in thread_0_entry()
|
| /NetX-Duo-v6.2.1/addons/dns/ |
| D | nxd_dns.h | 926 …name_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 929 …me_get (NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_opt… 930 …rver_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 931 …ext_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_opt… 932 …ange_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 933 …vice_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 934 …rt_get (NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, ULONG wait_opt… 938 …_name_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 965 …_name_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… 966 …_name_get(NX_DNS *dns_ptr, UCHAR *host_name, VOID *record_buffer, UINT buffer_size, UINT *record_c… [all …]
|
| D | nxd_dns.c | 50 … _nx_dns_name_string_unencode(NX_PACKET *packet_ptr, UCHAR *data, UCHAR *buffer, UINT buffer_size); 62 …source_data_by_name_get(NX_DNS *dns_ptr, UCHAR *host_name, UCHAR *record_buffer, UINT buffer_size, 65 …r, UCHAR *host_name, NX_PACKET *packet_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_c… 71 …tr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_c… 72 …tr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_c… 76 …tr, NX_PACKET *packet_ptr, UCHAR *data_ptr, UCHAR *record_buffer, UINT buffer_size, UINT *record_c… 82 … *cache_ptr, UCHAR *query_name, USHORT query_type, UCHAR *buffer, UINT buffer_size, UINT *record_c… 100 … UINT buffer_size, UINT *record_count, UINT dns_record_type, ULONG wait_option); 2725 UINT buffer_size, UINT *record_count, ULONG wait_option) in _nxe_dns_ipv4_address_by_name_get() argument 2750 …status = _nx_dns_ipv4_address_by_name_get(dns_ptr, host_name_ptr, record_buffer, buffer_size, rec… in _nxe_dns_ipv4_address_by_name_get() [all …]
|
| /NetX-Duo-v6.2.1/addons/azure_iot/ |
| D | nx_azure_iot_adu_agent.c | 65 UINT type, UCHAR *buffer_ptr, UINT buffer_size, 81 UCHAR *buffer_ptr, UINT buffer_size); 83 UCHAR *buffer_ptr, UINT buffer_size, 1191 UINT buffer_size; in nx_azure_iot_adu_agent_manifest_verify() local 1226 buffer_size = NX_AZURE_IOT_ADU_AGENT_BUFFER_SIZE; in nx_azure_iot_adu_agent_manifest_verify() 1240 buffer_ptr, buffer_size, &bytes_copied)) in nx_azure_iot_adu_agent_manifest_verify() 1251 buffer_size -= bytes_copied; in nx_azure_iot_adu_agent_manifest_verify() 1272 buffer_size, in nx_azure_iot_adu_agent_manifest_verify() 1279 buffer_size -= alg_size; in nx_azure_iot_adu_agent_manifest_verify() 1341 buffer_size = NX_AZURE_IOT_ADU_AGENT_BUFFER_SIZE; in nx_azure_iot_adu_agent_manifest_verify() [all …]
|
| D | nx_azure_iot_json_reader.c | 244 UCHAR *buffer_ptr, UINT buffer_size, in nx_azure_iot_json_reader_token_string_get() argument 251 (buffer_size == 0) || in nx_azure_iot_json_reader_token_string_get() 258 (CHAR *)buffer_ptr, (INT)buffer_size, in nx_azure_iot_json_reader_token_string_get()
|
| /NetX-Duo-v6.2.1/test/regression/dhcp_test/ |
| D | netx_dhcp_coverage_test.c | 229 UINT buffer_size = 4; in client_thread_entry() local 429 buffer_size = sizeof(buffer); in client_thread_entry() 430 nx_dhcp_user_option_retrieve(&dhcp_client, 0, buffer, &buffer_size); in client_thread_entry() 433 buffer_size = sizeof(buffer); in client_thread_entry() 434 nx_dhcp_interface_user_option_retrieve(&dhcp_client, 0, 0, buffer, &buffer_size); in client_thread_entry() 437 buffer_size = sizeof(buffer); in client_thread_entry() 438 nx_dhcp_interface_user_option_retrieve(&dhcp_client, 0, 0, buffer, &buffer_size); in client_thread_entry() 440 nx_dhcp_interface_user_option_retrieve(&dhcp_client, 0, 0, buffer, &buffer_size); in client_thread_entry() 441 buffer_size = 1; in client_thread_entry() 444 nx_dhcp_interface_user_option_retrieve(&dhcp_client, 0, 0, buffer, &buffer_size); in client_thread_entry() [all …]
|
| /NetX-Duo-v6.2.1/test/regression/mdns_test/ |
| D | netx_mdns_interface_test.c | 67 static void check_empty_buffer(UCHAR *buffer_ptr, ULONG buffer_size, UCHAR expect_empty); 220 static void check_empty_buffer(UCHAR *buffer_ptr, ULONG buffer_size, UCHAR expect_empty) in check_empty_buffer() argument 235 tail = (ULONG*)buffer_ptr + (buffer_size >> 2) - 1; in check_empty_buffer()
|
| /NetX-Duo-v6.2.1/nx_secure/inc/ |
| D | nx_secure_tls_api.h | 194 UCHAR *raw_certificate_buffer, UINT buffer_size); 196 … UINT certs_number, VOID *certificate_buffer, ULONG buffer_size); 215 … VOID *certificate_buffer, ULONG buffer_size); 224 UCHAR *buffer_ptr, ULONG buffer_size);
|