Home
last modified time | relevance | path

Searched refs:extended_output (Results 1 – 24 of 24) sorted by relevance

/NetX-Duo-v6.4.1/test/regression/nx_secure_test/
Dnx_secure_ecdh_self_test.c75 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in thread_0_entry() local
110 extended_output.nx_crypto_extended_output_data = pubkey_a; in thread_0_entry()
111 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(pubkey_a); in thread_0_entry()
115 … (UCHAR *)&extended_output, sizeof(extended_output), in thread_0_entry()
119 pubk_len = extended_output.nx_crypto_extended_output_actual_size; in thread_0_entry()
121 extended_output.nx_crypto_extended_output_data = pubkey_b; in thread_0_entry()
122 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(pubkey_b); in thread_0_entry()
126 … (UCHAR *)&extended_output, sizeof(extended_output), in thread_0_entry()
130 EXPECT_EQ(pubk_len, extended_output.nx_crypto_extended_output_actual_size); in thread_0_entry()
132 extended_output.nx_crypto_extended_output_data = shared_secret_b; in thread_0_entry()
[all …]
Dnx_secure_ecjpake_self_test.c110 NX_CRYPTO_EXTENDED_OUTPUT extended_output[2]; in thread_0_entry() local
206 extended_output[0].nx_crypto_extended_output_data = client_hello; in thread_0_entry()
207 extended_output[0].nx_crypto_extended_output_length_in_byte = sizeof(client_hello); in thread_0_entry()
208 extended_output[0].nx_crypto_extended_output_actual_size = 0; in thread_0_entry()
214 (UCHAR *)&extended_output[0], in thread_0_entry()
215 sizeof(extended_output[0]), in thread_0_entry()
221 extended_output[1].nx_crypto_extended_output_data = server_hello; in thread_0_entry()
222 extended_output[1].nx_crypto_extended_output_length_in_byte = sizeof(server_hello); in thread_0_entry()
223 extended_output[1].nx_crypto_extended_output_actual_size = 0; in thread_0_entry()
229 (UCHAR *)&extended_output[1], in thread_0_entry()
[all …]
Dnx_secure_ecdh_error_checking_test.c113 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in thread_0_entry() local
285 extended_output.nx_crypto_extended_output_data = pubkey_a; in thread_0_entry()
286 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(pubkey_a); in thread_0_entry()
290 … (UCHAR *)&extended_output, sizeof(extended_output), in thread_0_entry()
294 pubk_len = extended_output.nx_crypto_extended_output_actual_size; in thread_0_entry()
296 extended_output.nx_crypto_extended_output_data = pubkey_b; in thread_0_entry()
297 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(pubkey_b); in thread_0_entry()
301 … (UCHAR *)&extended_output, sizeof(extended_output), in thread_0_entry()
305 EXPECT_EQ(pubk_len, extended_output.nx_crypto_extended_output_actual_size); in thread_0_entry()
307 extended_output.nx_crypto_extended_output_data = shared_secret_b; in thread_0_entry()
[all …]
Dnx_secure_ecdh_test.c58 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in thread_0_entry() local
118 extended_output.nx_crypto_extended_output_data = shared_secret; in thread_0_entry()
119 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(shared_secret); in thread_0_entry()
125 … (UCHAR *)&extended_output, sizeof(extended_output), in thread_0_entry()
130 … EXPECT_EQ(ecdh_data[i].shared_secret_len, extended_output.nx_crypto_extended_output_actual_size); in thread_0_entry()
Dnx_secure_tls_ecc_point_format_test.c181 *extended_output; in _nx_crypto_method_ecdh_operation_test() local
189 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdh_operation_test()
192 extended_output -> nx_crypto_extended_output_data[0] = 0; in _nx_crypto_method_ecdh_operation_test()
Dnx_secure_tls_generate_premaster_secret_coverage_test.c103 * extended_output; in _nx_crypto_method_ecdh_operation_test() local
111 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT*)output; in _nx_crypto_method_ecdh_operation_test()
114 extended_output->nx_crypto_extended_output_data[0] = 0; in _nx_crypto_method_ecdh_operation_test()
Dnx_secure_aes_ccm_test.c75 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in thread_0_entry() local
Dnx_secure_tls_ecc_generate_keys_coverage_test.c103 * extended_output; in _nx_crypto_method_ecdh_operation_test() local
111 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT*)output; in _nx_crypto_method_ecdh_operation_test()
114 extended_output->nx_crypto_extended_output_data[0] = 0; in _nx_crypto_method_ecdh_operation_test()
/NetX-Duo-v6.4.1/crypto_libraries/src/
Dnx_crypto_method_self_test_ecdh.c107 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_crypto_method_self_test_ecdh() local
161 extended_output.nx_crypto_extended_output_data = local_public_key; in _nx_crypto_method_self_test_ecdh()
162 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(local_public_key); in _nx_crypto_method_self_test_ecdh()
171 (UCHAR *)&extended_output, in _nx_crypto_method_self_test_ecdh()
172 sizeof(extended_output), in _nx_crypto_method_self_test_ecdh()
180 local_public_key_len = extended_output.nx_crypto_extended_output_actual_size; in _nx_crypto_method_self_test_ecdh()
183 extended_output.nx_crypto_extended_output_data = shared_secret; in _nx_crypto_method_self_test_ecdh()
184 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(shared_secret); in _nx_crypto_method_self_test_ecdh()
193 (UCHAR *)&extended_output, in _nx_crypto_method_self_test_ecdh()
194 sizeof(extended_output), in _nx_crypto_method_self_test_ecdh()
[all …]
Dnx_crypto_ecdh.c651 *extended_output; in _nx_crypto_method_ecdh_operation() local
696 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdh_operation()
698extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecdh_operation()
699extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecdh_operation()
700 … &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecdh_operation()
706 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdh_operation()
712extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecdh_operation()
713extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecdh_operation()
714 … &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecdh_operation()
722 extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecdh_operation()
[all …]
Dnx_crypto_method_self_test_ecdsa.c113 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_crypto_method_self_test_ecdsa() local
246 extended_output.nx_crypto_extended_output_data = output; in _nx_crypto_method_self_test_ecdsa()
247 extended_output.nx_crypto_extended_output_length_in_byte = sizeof(output); in _nx_crypto_method_self_test_ecdsa()
257 (UCHAR *)&extended_output, in _nx_crypto_method_self_test_ecdsa()
258 sizeof(extended_output), in _nx_crypto_method_self_test_ecdsa()
268 sig_length = extended_output.nx_crypto_extended_output_actual_size; in _nx_crypto_method_self_test_ecdsa()
Dnx_crypto_ecdsa.c692 *extended_output; in _nx_crypto_method_ecdsa_operation() local
742 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdsa_operation()
749 extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecdsa_operation()
750 extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecdsa_operation()
751 &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecdsa_operation()
776 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdsa_operation()
778extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecdsa_operation()
779extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecdsa_operation()
780 … &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecdsa_operation()
869 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecdsa_operation()
[all …]
Dnx_crypto_ecjpake.c1822 NX_CRYPTO_EXTENDED_OUTPUT *extended_output; in _nx_crypto_method_ecjpake_operation() local
1912 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecjpake_operation()
1915 extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecjpake_operation()
1916extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecjpake_operation()
1917 &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecjpake_operation()
1931 extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output; in _nx_crypto_method_ecjpake_operation()
1936 extended_output -> nx_crypto_extended_output_data, in _nx_crypto_method_ecjpake_operation()
1937extended_output -> nx_crypto_extended_output_length_in_byte, in _nx_crypto_method_ecjpake_operation()
1938 … &extended_output -> nx_crypto_extended_output_actual_size, in _nx_crypto_method_ecjpake_operation()
/NetX-Duo-v6.4.1/nx_secure/src/
Dnx_secure_generate_premaster_secret.c99 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_generate_premaster_secret() local
179extended_output.nx_crypto_extended_output_data = &tls_key_material -> nx_secure_tls_new_key_materi… in _nx_secure_generate_premaster_secret()
180extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_key_material -> nx_secure_tl… in _nx_secure_generate_premaster_secret()
181 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_generate_premaster_secret()
185 (UCHAR *)&extended_output, in _nx_secure_generate_premaster_secret()
186 sizeof(extended_output), in _nx_secure_generate_premaster_secret()
195 …tls_key_material -> nx_secure_tls_new_key_material_data[0] = (UCHAR)extended_output.nx_crypto_exte… in _nx_secure_generate_premaster_secret()
197extended_output.nx_crypto_extended_output_data = tls_key_material -> nx_secure_tls_pre_master_secr… in _nx_secure_generate_premaster_secret()
198extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_key_material -> nx_secure_tl… in _nx_secure_generate_premaster_secret()
199 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_generate_premaster_secret()
[all …]
Dnx_secure_tls_ecc_generate_keys.c133 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_tls_ecc_generate_keys() local
251 extended_output.nx_crypto_extended_output_data = &public_key[length]; in _nx_secure_tls_ecc_generate_keys()
252 extended_output.nx_crypto_extended_output_length_in_byte = output_size - length; in _nx_secure_tls_ecc_generate_keys()
257 extended_output.nx_crypto_extended_output_data = &public_key[length + 1]; in _nx_secure_tls_ecc_generate_keys()
258 extended_output.nx_crypto_extended_output_length_in_byte = output_size - (length + 1); in _nx_secure_tls_ecc_generate_keys()
260 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_tls_ecc_generate_keys()
264 (UCHAR *)&extended_output, in _nx_secure_tls_ecc_generate_keys()
265 sizeof(extended_output), in _nx_secure_tls_ecc_generate_keys()
279 public_key[length] = (UCHAR)extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_tls_ecc_generate_keys()
284 length += (UINT)(extended_output.nx_crypto_extended_output_actual_size); in _nx_secure_tls_ecc_generate_keys()
[all …]
Dnx_secure_dtls_send_serverhello.c88 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_dtls_send_serverhello() local
219 extended_output.nx_crypto_extended_output_data = &packet_buffer[length]; in _nx_secure_dtls_send_serverhello()
220 extended_output.nx_crypto_extended_output_length_in_byte = in _nx_secure_dtls_send_serverhello()
222 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_dtls_send_serverhello()
228 (UCHAR *)&extended_output, in _nx_secure_dtls_send_serverhello()
229 sizeof(extended_output), in _nx_secure_dtls_send_serverhello()
239 extension_length = (USHORT)extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_dtls_send_serverhello()
244 extended_output.nx_crypto_extended_output_actual_size); in _nx_secure_dtls_send_serverhello()
245 length += extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_dtls_send_serverhello()
Dnx_secure_generate_server_key_exchange.c104 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_generate_server_key_exchange() local
194 extended_output.nx_crypto_extended_output_data = &data_buffer[length]; in _nx_secure_generate_server_key_exchange()
195 extended_output.nx_crypto_extended_output_length_in_byte = buffer_length - length; in _nx_secure_generate_server_key_exchange()
196 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_generate_server_key_exchange()
204 (UCHAR *)&extended_output, in _nx_secure_generate_server_key_exchange()
205 sizeof(extended_output), in _nx_secure_generate_server_key_exchange()
213 length += extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_generate_server_key_exchange()
Dnx_secure_generate_client_key_exchange.c107 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_generate_client_key_exchange() local
188 extended_output.nx_crypto_extended_output_data = data_buffer; in _nx_secure_generate_client_key_exchange()
189 extended_output.nx_crypto_extended_output_length_in_byte = buffer_length; in _nx_secure_generate_client_key_exchange()
190 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_generate_client_key_exchange()
196 (UCHAR *)&extended_output, in _nx_secure_generate_client_key_exchange()
197 sizeof(extended_output), in _nx_secure_generate_client_key_exchange()
206 data_size += extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_generate_client_key_exchange()
Dnx_secure_process_server_key_exchange.c123 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_process_server_key_exchange() local
910extended_output.nx_crypto_extended_output_data = &tls_key_material -> nx_secure_tls_new_key_materi… in _nx_secure_process_server_key_exchange()
911extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_key_material -> nx_secure_tl… in _nx_secure_process_server_key_exchange()
912 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_process_server_key_exchange()
916 (UCHAR *)&extended_output, in _nx_secure_process_server_key_exchange()
917 sizeof(extended_output), in _nx_secure_process_server_key_exchange()
927 …tls_key_material -> nx_secure_tls_new_key_material_data[0] = (UCHAR)extended_output.nx_crypto_exte… in _nx_secure_process_server_key_exchange()
929extended_output.nx_crypto_extended_output_data = tls_key_material -> nx_secure_tls_pre_master_secr… in _nx_secure_process_server_key_exchange()
930extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_key_material -> nx_secure_tl… in _nx_secure_process_server_key_exchange()
931 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_process_server_key_exchange()
[all …]
Dnx_secure_dtls_send_clienthello.c102 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_dtls_send_clienthello() local
399 extended_output.nx_crypto_extended_output_data = &packet_buffer[length]; in _nx_secure_dtls_send_clienthello()
400 extended_output.nx_crypto_extended_output_length_in_byte = in _nx_secure_dtls_send_clienthello()
402 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_dtls_send_clienthello()
408 (UCHAR *)&extended_output, in _nx_secure_dtls_send_clienthello()
409 sizeof(extended_output), in _nx_secure_dtls_send_clienthello()
419 extension_length = (USHORT)extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_dtls_send_clienthello()
424 extended_output.nx_crypto_extended_output_actual_size); in _nx_secure_dtls_send_clienthello()
425 length += extended_output.nx_crypto_extended_output_actual_size; in _nx_secure_dtls_send_clienthello()
Dnx_secure_process_client_key_exchange.c122 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_process_client_key_exchange() local
319extended_output.nx_crypto_extended_output_data = tls_key_material -> nx_secure_tls_pre_master_secr… in _nx_secure_process_client_key_exchange()
320extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_key_material -> nx_secure_tl… in _nx_secure_process_client_key_exchange()
321 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_process_client_key_exchange()
326 (UCHAR *)&extended_output, in _nx_secure_process_client_key_exchange()
327 sizeof(extended_output), in _nx_secure_process_client_key_exchange()
336 …tls_key_material -> nx_secure_tls_pre_master_secret_size = extended_output.nx_crypto_extended_outp… in _nx_secure_process_client_key_exchange()
Dnx_secure_tls_send_certificate_verify.c144 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_tls_send_certificate_verify() local
868 extended_output.nx_crypto_extended_output_data = &current_buffer[length + 2]; in _nx_secure_tls_send_certificate_verify()
869 extended_output.nx_crypto_extended_output_length_in_byte = in _nx_secure_tls_send_certificate_verify()
871 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_tls_send_certificate_verify()
878 (UCHAR *)&extended_output, in _nx_secure_tls_send_certificate_verify()
879 sizeof(extended_output), in _nx_secure_tls_send_certificate_verify()
908 …current_buffer[length] = (UCHAR)((extended_output.nx_crypto_extended_output_actual_size & 0xFF00) … in _nx_secure_tls_send_certificate_verify()
909 …current_buffer[length + 1] = (UCHAR)(extended_output.nx_crypto_extended_output_actual_size & 0x00F… in _nx_secure_tls_send_certificate_verify()
910 length += extended_output.nx_crypto_extended_output_actual_size + 2; in _nx_secure_tls_send_certificate_verify()
Dnx_secure_tls_process_serverhello_extensions.c826 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_tls_proc_serverhello_keyshare_extension() local
967extended_output.nx_crypto_extended_output_data = tls_session -> nx_secure_tls_key_material.nx_secu… in _nx_secure_tls_proc_serverhello_keyshare_extension()
968extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_session -> nx_secure_tls_key… in _nx_secure_tls_proc_serverhello_keyshare_extension()
969 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_tls_proc_serverhello_keyshare_extension()
973 (UCHAR *)&extended_output, in _nx_secure_tls_proc_serverhello_keyshare_extension()
974 sizeof(extended_output), in _nx_secure_tls_proc_serverhello_keyshare_extension()
983 …-> nx_secure_tls_key_material.nx_secure_tls_pre_master_secret_size = extended_output.nx_crypto_ext… in _nx_secure_tls_proc_serverhello_keyshare_extension()
Dnx_secure_tls_process_clienthello_extensions.c793 NX_CRYPTO_EXTENDED_OUTPUT extended_output; in _nx_secure_tls_proc_clienthello_keyshare_extension() local
960extended_output.nx_crypto_extended_output_data = tls_session -> nx_secure_tls_key_material.nx_secu… in _nx_secure_tls_proc_clienthello_keyshare_extension()
961extended_output.nx_crypto_extended_output_length_in_byte = sizeof(tls_session -> nx_secure_tls_key… in _nx_secure_tls_proc_clienthello_keyshare_extension()
962 extended_output.nx_crypto_extended_output_actual_size = 0; in _nx_secure_tls_proc_clienthello_keyshare_extension()
966 (UCHAR *)&extended_output, in _nx_secure_tls_proc_clienthello_keyshare_extension()
967 sizeof(extended_output), in _nx_secure_tls_proc_clienthello_keyshare_extension()
976 …-> nx_secure_tls_key_material.nx_secure_tls_pre_master_secret_size = extended_output.nx_crypto_ext… in _nx_secure_tls_proc_clienthello_keyshare_extension()