summaryrefslogtreecommitdiff
path: root/test/regression/nx_secure_test
diff options
context:
space:
mode:
authorFrédéric Desbiens <[email protected]>2026-06-08 10:03:52 +0200
committerGitHub <[email protected]>2026-06-08 10:03:52 +0200
commit1a0e9e43a03e37ddecfb6b49e9b078d6e1803d05 (patch)
treec60ec41b4ff4fd2d7566c505cbdd423ceddd65f3 /test/regression/nx_secure_test
parent8b6e03ac30ab688bec02c69d42f2304b7f72a202 (diff)
parent4d88828b06d164a5b7e82152395a92254abcd6e4 (diff)
Merge pull request #391 from eclipse-threadx/devv6.5.1.202602_reldev
Merging changes for the v.6.5.1.202602 release
Diffstat (limited to 'test/regression/nx_secure_test')
-rw-r--r--test/regression/nx_secure_test/device.cert.c11
-rw-r--r--test/regression/nx_secure_test/ecc_certs.c11
-rw-r--r--test/regression/nx_secure_test/google_cert.c11
-rw-r--r--test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c11
-rw-r--r--test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.h11
-rw-r--r--test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c11
-rw-r--r--test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.h11
-rw-r--r--test/regression/nx_secure_test/hash_clone/nx_secure_user.h11
-rw-r--r--test/regression/nx_secure_test/ica.cert.c11
-rw-r--r--test/regression/nx_secure_test/key_usage_certs.c11
-rw-r--r--test/regression/nx_secure_test/netxtestcontrol.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_3des_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_3des_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_additional_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_additional_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_ccm_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_ccm_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_aes_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_crypto_cleanup_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_crypto_method_cleanup_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_crypto_self_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_des_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_des_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_distinguished_name_compare_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_drbg_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_abnormal_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_abort_waiting_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_basic_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ecc_basic_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ecc_curves_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_ecjpake_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_fragment_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_handshake_fail_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_nxe_api_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_out_of_order_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_retransmit_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_dtls_version_1_0_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ec_additional_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ec_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ec_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdh_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdh_self_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdh_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdh_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdsa_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdsa_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecdsa_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_ecjpake_self_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_expiration_time_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hkdf_test.c16
-rw-r--r--test/regression/nx_secure_test/nx_secure_hkdf_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_md5_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_md5_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_md5_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha1_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha1_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha224_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha224_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha256_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha256_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha384_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha384_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha512_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_hmac_sha512_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_huge_number_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_md5_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_phash_prf_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_pkcs1_v1_5_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_rsa_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_rsa_key_pairs.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_rsa_random_public_exponent_key_pairs.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_rsa_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_rsa_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha224_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha224_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha256_rfc_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha256_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha256_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha384_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha384_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha512_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha512_test_data.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_sha_additional_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_alert_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_branch_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c11
-rwxr-xr-xtest/regression/nx_secure_test/nx_secure_tls_cert_verify_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_certificate_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_certificate_verify_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_client_ca_select_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_clienthello_extension_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_coverage_3_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_coverage_test.c144
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_basic_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_crl_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_curves_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_point_format_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_error_checking_2_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c11
-rwxr-xr-xtest/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_handshake_header_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_hash_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_header_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_metadata_size_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_multithread_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_non_blocking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_packet_trim_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_payload_size_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_process_certificate_request_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_process_finished_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_process_record_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_psk_identity_test.c348
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_receive_alert_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_receive_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_record_layer_version_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_record_length_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_rsa_4096_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_send_certificate_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_send_clienthello_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_send_record_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_server_handshake_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_serverhello_extension_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_create_ext_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_delete_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_session_start_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_shutdown_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_test_init_functions.h11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_test_init_utility.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_two_way_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_user_defined_key_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c11
-rwxr-xr-xtest/regression/nx_secure_test/nx_secure_x509_certificate_initialize_test.c11
-rwxr-xr-xtest/regression/nx_secure_test/nx_secure_x509_certificate_verify_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_crl_test.c11
-rwxr-xr-xtest/regression/nx_secure_test/nx_secure_x509_crl_verify_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_error_checking_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_expiration_check_test.c265
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_key_usage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_list_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_name_check_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_parse_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c11
-rw-r--r--test/regression/nx_secure_test/nx_secure_x509_store_test.c11
-rw-r--r--test/regression/nx_secure_test/test_ca.crl.der.c11
-rw-r--r--test/regression/nx_secure_test/test_ca_cert.c11
-rw-r--r--test/regression/nx_secure_test/test_device_cert.c11
-rw-r--r--test/regression/nx_secure_test/tls_test_utility.h11
-rw-r--r--test/regression/nx_secure_test/tls_two_test_certs.c11
-rw-r--r--test/regression/nx_secure_test/x509_version_1_ca_cert.c11
226 files changed, 3022 insertions, 193 deletions
diff --git a/test/regression/nx_secure_test/device.cert.c b/test/regression/nx_secure_test/device.cert.c
index a6409f16..3ad65757 100644
--- a/test/regression/nx_secure_test/device.cert.c
+++ b/test/regression/nx_secure_test/device.cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
unsigned char device_cert_der[] = {
0x30, 0x82, 0x03, 0xdb, 0x30, 0x82, 0x02, 0xc3, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x02, 0x10, 0x00, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48,
diff --git a/test/regression/nx_secure_test/ecc_certs.c b/test/regression/nx_secure_test/ecc_certs.c
index d6fccb45..e1600479 100644
--- a/test/regression/nx_secure_test/ecc_certs.c
+++ b/test/regression/nx_secure_test/ecc_certs.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
static unsigned char globalsignrootca_cer[] = {
0x30, 0x82, 0x03, 0x5f, 0x30, 0x82, 0x02, 0x47, 0xa0, 0x03, 0x02, 0x01,
diff --git a/test/regression/nx_secure_test/google_cert.c b/test/regression/nx_secure_test/google_cert.c
index e5529519..e482b4c6 100644
--- a/test/regression/nx_secure_test/google_cert.c
+++ b/test/regression/nx_secure_test/google_cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
static unsigned char google_cert_der[] = {
0x30, 0x82, 0x04, 0x80, 0x30, 0x82, 0x03, 0x68, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x08, 0x0e, 0x3a, 0xa9, 0x10, 0x46, 0xfa, 0x76, 0x95, 0x30,
diff --git a/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c b/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c
index 0fef7488..482e1577 100644
--- a/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c
+++ b/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_crypto_clone_cleanup_test.h"
diff --git a/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.h b/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.h
index e046cbfb..890a1239 100644
--- a/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.h
+++ b/test/regression/nx_secure_test/hash_clone/nx_crypto_clone_cleanup_test.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
diff --git a/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c b/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c
index 591fd091..dd2ad961 100644
--- a/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c
+++ b/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_crypto_hash_clone_test.h"
diff --git a/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.h b/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.h
index b255dcb8..3cc6932c 100644
--- a/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.h
+++ b/test/regression/nx_secure_test/hash_clone/nx_crypto_hash_clone_test.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef SRC_NX_CRYPTO_HASH_CLONE_TEST_H_
diff --git a/test/regression/nx_secure_test/hash_clone/nx_secure_user.h b/test/regression/nx_secure_test/hash_clone/nx_secure_user.h
index cd6d3ae2..a2fb11f4 100644
--- a/test/regression/nx_secure_test/hash_clone/nx_secure_user.h
+++ b/test/regression/nx_secure_test/hash_clone/nx_secure_user.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef SRC_NX_SECURE_USER_H
diff --git a/test/regression/nx_secure_test/ica.cert.c b/test/regression/nx_secure_test/ica.cert.c
index 6f6b9c05..90145eb5 100644
--- a/test/regression/nx_secure_test/ica.cert.c
+++ b/test/regression/nx_secure_test/ica.cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
unsigned char ica_cert_der[] = {
0x30, 0x82, 0x03, 0xdf, 0x30, 0x82, 0x02, 0xc7, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x01, 0x02, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
diff --git a/test/regression/nx_secure_test/key_usage_certs.c b/test/regression/nx_secure_test/key_usage_certs.c
index 93b0eca6..6ea8d3ba 100644
--- a/test/regression/nx_secure_test/key_usage_certs.c
+++ b/test/regression/nx_secure_test/key_usage_certs.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/*
KeyUsage Test PKI
diff --git a/test/regression/nx_secure_test/netxtestcontrol.c b/test/regression/nx_secure_test/netxtestcontrol.c
index af116b4e..387fb161 100644
--- a/test/regression/nx_secure_test/netxtestcontrol.c
+++ b/test/regression/nx_secure_test/netxtestcontrol.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This is the test control routine the NetX TCP/IP stack. All tests are dispatched from this routine. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_3des_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_3des_error_checking_test.c
index c3a7729d..4c01e8b7 100644
--- a/test/regression/nx_secure_test/nx_secure_3des_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_3des_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_3des.h"
diff --git a/test/regression/nx_secure_test/nx_secure_3des_test.c b/test/regression/nx_secure_test/nx_secure_3des_test.c
index 78a2fe82..c76a4c32 100644
--- a/test/regression/nx_secure_test/nx_secure_3des_test.c
+++ b/test/regression/nx_secure_test/nx_secure_3des_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/regression/nx_secure_test/nx_secure_aes_additional_test.c b/test/regression/nx_secure_test/nx_secure_aes_additional_test.c
index 5865cfef..7fc421fc 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_additional_test.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_additional_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test for aes ctr encrypting the plain text which is not multiples of 16. */
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_aes_additional_test_data.c b/test/regression/nx_secure_test/nx_secure_aes_additional_test_data.c
index 24187be7..a44a0623 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_additional_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_additional_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_aes_ccm_test.c b/test/regression/nx_secure_test/nx_secure_aes_ccm_test.c
index fac2b974..266930c1 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_ccm_test.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_ccm_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <time.h>
diff --git a/test/regression/nx_secure_test/nx_secure_aes_ccm_test_data.c b/test/regression/nx_secure_test/nx_secure_aes_ccm_test_data.c
index e28688e0..4682f3f8 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_ccm_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_ccm_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_aes_test.c b/test/regression/nx_secure_test/nx_secure_aes_test.c
index f05235b1..1a6c23be 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_test.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/regression/nx_secure_test/nx_secure_aes_test_data.c b/test/regression/nx_secure_test/nx_secure_aes_test_data.c
index 1d3f22bf..8698768e 100644
--- a/test/regression/nx_secure_test/nx_secure_aes_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_aes_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_crypto_cleanup_test.c b/test/regression/nx_secure_test/nx_secure_crypto_cleanup_test.c
index a7877446..1d03f36a 100644
--- a/test/regression/nx_secure_test/nx_secure_crypto_cleanup_test.c
+++ b/test/regression/nx_secure_test/nx_secure_crypto_cleanup_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on nx_crypto_init and nx_crypto_cleanup are used. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_crypto_method_cleanup_test.c b/test/regression/nx_secure_test/nx_secure_crypto_method_cleanup_test.c
index fc1d2f62..1c215ee4 100644
--- a/test/regression/nx_secure_test/nx_secure_crypto_method_cleanup_test.c
+++ b/test/regression/nx_secure_test/nx_secure_crypto_method_cleanup_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_crypto_self_test.c b/test/regression/nx_secure_test/nx_secure_crypto_self_test.c
index 7a961cfb..3461b5f7 100644
--- a/test/regression/nx_secure_test/nx_secure_crypto_self_test.c
+++ b/test/regression/nx_secure_test/nx_secure_crypto_self_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls.h"
diff --git a/test/regression/nx_secure_test/nx_secure_des_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_des_error_checking_test.c
index 507cbf46..5419aff8 100644
--- a/test/regression/nx_secure_test/nx_secure_des_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_des_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_des.h"
diff --git a/test/regression/nx_secure_test/nx_secure_des_test.c b/test/regression/nx_secure_test/nx_secure_des_test.c
index 0a1299b4..6dec6db7 100644
--- a/test/regression/nx_secure_test/nx_secure_des_test.c
+++ b/test/regression/nx_secure_test/nx_secure_des_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/regression/nx_secure_test/nx_secure_distinguished_name_compare_test.c b/test/regression/nx_secure_test/nx_secure_distinguished_name_compare_test.c
index a64189b6..6c4e5fe9 100644
--- a/test/regression/nx_secure_test/nx_secure_distinguished_name_compare_test.c
+++ b/test/regression/nx_secure_test/nx_secure_distinguished_name_compare_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls.h"
diff --git a/test/regression/nx_secure_test/nx_secure_drbg_test.c b/test/regression/nx_secure_test/nx_secure_drbg_test.c
index c8ec3c9e..045a1873 100644
--- a/test/regression/nx_secure_test/nx_secure_drbg_test.c
+++ b/test/regression/nx_secure_test/nx_secure_drbg_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_drbg.h"
#include "nx_crypto_method_self_test.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_abnormal_test.c b/test/regression/nx_secure_test/nx_secure_dtls_abnormal_test.c
index 8ce725ff..292d9dc6 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_abnormal_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_abnormal_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_abort_waiting_test.c b/test/regression/nx_secure_test/nx_secure_dtls_abort_waiting_test.c
index 5d743606..8dd80ec5 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_abort_waiting_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_abort_waiting_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_basic_test.c b/test/regression/nx_secure_test/nx_secure_dtls_basic_test.c
index b013acd3..970ef8e7 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_basic_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ciphersuites_test.c
index d1b47478..bed2672d 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c b/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c
index ff95160a..79aca15f 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_retransmit_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c b/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c
index 6d3db630..31512e0c 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_concurrent_sessions_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ecc_basic_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ecc_basic_test.c
index 39cab7cd..6727c748 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ecc_basic_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ecc_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c
index 4c93195c..6514569c 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ecc_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c
index 8b84e478..23f37a87 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ecc_client_cert_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The client certificate is require. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ecc_curves_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ecc_curves_test.c
index 4d136f39..022663c2 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ecc_curves_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ecc_curves_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS ECC curve selection. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_ecjpake_test.c b/test/regression/nx_secure_test/nx_secure_dtls_ecjpake_test.c
index 35fe8211..87d37cf7 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_ecjpake_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_ecjpake_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS using ciphersuite ECJPAKE. The ECJPAKE key should not be initialized multiple times. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_dtls_error_checking_test.c
index 5d2873fa..b95af96f 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_fragment_test.c b/test/regression/nx_secure_test/nx_secure_dtls_fragment_test.c
index eec52db0..6ff41511 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_fragment_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_fragment_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_handshake_fail_test.c b/test/regression/nx_secure_test/nx_secure_dtls_handshake_fail_test.c
index f8455146..3c612303 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_handshake_fail_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_handshake_fail_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c
index dd3e0482..34509314 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_ip_address_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c
index b9b46c9a..593038b7 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_fail_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c
index eb7843f4..80b06ec3 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_connect_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c
index 93d35227..9b462519 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_ecjpake_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c
index 5c4e6747..4df7b476 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_receive_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c
index 725270d7..f1ba5802 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_retransmit_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c
index 0aa6d0d8..246ea6df 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_reuse_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c
index 66915b80..68805c14 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_multiple_sessions_send_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c b/test/regression/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c
index 87960fe7..1442128b 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_no_free_sessions_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_nxe_api_test.c b/test/regression/nx_secure_test/nx_secure_dtls_nxe_api_test.c
index 420817eb..f67a51e8 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_nxe_api_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_nxe_api_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test DTLS APIs */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_out_of_order_test.c b/test/regression/nx_secure_test/nx_secure_dtls_out_of_order_test.c
index 92de1ac0..94e81c12 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_out_of_order_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_out_of_order_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c
index a55a78aa..3a0083f0 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_change_cipher_spec_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS retransmit ChangeCipherSpec message. */
/* RFC 6347, section 4.2.5.
As with TLS, the ChangeCipherSpec message is not technically a
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c
index 9fb890fc..97608af3 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_interval_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_test.c b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_test.c
index e9231e79..81af2a9e 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_retransmit_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_retransmit_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c b/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c
index b63a9cd0..93f07477 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_sliding_window_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_dtls_version_1_0_test.c b/test/regression/nx_secure_test/nx_secure_dtls_version_1_0_test.c
index 5a6b8870..a85a6cbe 100644
--- a/test/regression/nx_secure_test/nx_secure_dtls_version_1_0_test.c
+++ b/test/regression/nx_secure_test/nx_secure_dtls_version_1_0_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on DTLS connections. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ec_additional_test.c b/test/regression/nx_secure_test/nx_secure_ec_additional_test.c
index db3528f3..2c3e799e 100644
--- a/test/regression/nx_secure_test/nx_secure_ec_additional_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ec_additional_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_ec.h"
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ec_test.c b/test/regression/nx_secure_test/nx_secure_ec_test.c
index eee1dda8..267bb96d 100644
--- a/test/regression/nx_secure_test/nx_secure_ec_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ec_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_ec.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ec_test_data.c b/test/regression/nx_secure_test/nx_secure_ec_test_data.c
index 19626fa4..ed0178f1 100644
--- a/test/regression/nx_secure_test/nx_secure_ec_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_ec_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_ecdh_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_ecdh_error_checking_test.c
index 07bd8e0d..c846eb08 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdh_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdh_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_ecdh.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ecdh_self_test.c b/test/regression/nx_secure_test/nx_secure_ecdh_self_test.c
index 0eabdd4c..49b33922 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdh_self_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdh_self_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <time.h>
diff --git a/test/regression/nx_secure_test/nx_secure_ecdh_test.c b/test/regression/nx_secure_test/nx_secure_ecdh_test.c
index 52697793..8eba2bd8 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdh_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdh_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_ecdh.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ecdh_test_data.c b/test/regression/nx_secure_test/nx_secure_ecdh_test_data.c
index ad615f98..5ba28e66 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdh_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdh_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_ecdsa_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_ecdsa_error_checking_test.c
index 0db9789b..247143cc 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdsa_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdsa_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_ecdsa.h"
diff --git a/test/regression/nx_secure_test/nx_secure_ecdsa_test.c b/test/regression/nx_secure_test/nx_secure_ecdsa_test.c
index 7a2b5151..27d91894 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdsa_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdsa_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <stdlib.h>
diff --git a/test/regression/nx_secure_test/nx_secure_ecdsa_test_data.c b/test/regression/nx_secure_test/nx_secure_ecdsa_test_data.c
index 51c29d7c..7cc1282e 100644
--- a/test/regression/nx_secure_test/nx_secure_ecdsa_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_ecdsa_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_ecjpake_self_test.c b/test/regression/nx_secure_test/nx_secure_ecjpake_self_test.c
index b8ec1144..0338f8fd 100644
--- a/test/regression/nx_secure_test/nx_secure_ecjpake_self_test.c
+++ b/test/regression/nx_secure_test/nx_secure_ecjpake_self_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <time.h>
diff --git a/test/regression/nx_secure_test/nx_secure_expiration_time_test.c b/test/regression/nx_secure_test/nx_secure_expiration_time_test.c
index 9ee8a310..a647d96b 100644
--- a/test/regression/nx_secure_test/nx_secure_expiration_time_test.c
+++ b/test/regression/nx_secure_test/nx_secure_expiration_time_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include <string.h>
diff --git a/test/regression/nx_secure_test/nx_secure_hkdf_test.c b/test/regression/nx_secure_test/nx_secure_hkdf_test.c
index 9133ecaf..866c1377 100644
--- a/test/regression/nx_secure_test/nx_secure_hkdf_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hkdf_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_sha1.h"
@@ -42,6 +53,7 @@ static VOID thread_0_entry(ULONG thread_input)
UINT i;
NX_CRYPTO_METHOD *method_hkdf;
NX_CRYPTO_METHOD *method_hash;
+NX_CRYPTO_HKDF *hkdf;
/* Print out test information banner. */
printf("NetX Secure Test: HKDF Test..........................................");
@@ -72,6 +84,10 @@ NX_CRYPTO_METHOD *method_hash;
method_hkdf->nx_crypto_init(method_hkdf, (UCHAR*)(hkdf_test_data[i].ikm), hkdf_test_data[i].ikm_len << 3,
NX_NULL, hkdf_metadata, sizeof(hkdf_metadata));
+ hkdf = (NX_CRYPTO_HKDF *)hkdf_metadata;
+ EXPECT_EQ((UCHAR *)hkdf_test_data[i].ikm, hkdf->nx_crypto_hkdf_ikm);
+ EXPECT_EQ(hkdf_test_data[i].ikm_len, hkdf->nx_crypto_hkdf_ikm_length);
+
method_hkdf->nx_crypto_operation(NX_CRYPTO_HKDF_SET_HMAC, NX_NULL, &crypto_method_hmac,
NX_NULL, 0,NX_NULL, 0, NX_NULL, NX_NULL, 0, &hkdf_metadata,
sizeof(hkdf_metadata),
diff --git a/test/regression/nx_secure_test/nx_secure_hkdf_test_data.c b/test/regression/nx_secure_test/nx_secure_hkdf_test_data.c
index 0a6f9ac2..82c89203 100644
--- a/test/regression/nx_secure_test/nx_secure_hkdf_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hkdf_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_md5_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_hmac_md5_error_checking_test.c
index 0cefcb5e..3ba5b0c9 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_md5_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_md5_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_md5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_md5_test.c b/test/regression/nx_secure_test/nx_secure_hmac_md5_test.c
index d50d1ea3..9c782da5 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_md5_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_md5_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_md5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_md5_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_md5_test_data.c
index 1176259a..12098ea1 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_md5_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_md5_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha1_test.c b/test/regression/nx_secure_test/nx_secure_hmac_sha1_test.c
index b820aad2..9405e756 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha1_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha1_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha1.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha1_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_sha1_test_data.c
index 416d8e97..84a30515 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha1_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha1_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha224_test.c b/test/regression/nx_secure_test/nx_secure_hmac_sha224_test.c
index 4cd33ae5..6b54e541 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha224_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha224_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha2.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha224_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_sha224_test_data.c
index f7bb40de..b61e986e 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha224_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha224_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha256_test.c b/test/regression/nx_secure_test/nx_secure_hmac_sha256_test.c
index 0d5f02cf..24653d63 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha256_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha256_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha2.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha256_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_sha256_test_data.c
index a25de87a..dcbf04f8 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha256_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha256_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha384_test.c b/test/regression/nx_secure_test/nx_secure_hmac_sha384_test.c
index 5c8d538f..3031c3ad 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha384_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha384_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha384_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_sha384_test_data.c
index f5fde158..31b427ca 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha384_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha384_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha512_test.c b/test/regression/nx_secure_test/nx_secure_hmac_sha512_test.c
index d0af666e..15d0f911 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha512_test.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha512_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_hmac_sha512_test_data.c b/test/regression/nx_secure_test/nx_secure_hmac_sha512_test_data.c
index 7a32c0d0..3c6bfb69 100644
--- a/test/regression/nx_secure_test/nx_secure_hmac_sha512_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_hmac_sha512_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_huge_number_test.c b/test/regression/nx_secure_test/nx_secure_huge_number_test.c
index cd561056..94eb07cb 100644
--- a/test/regression/nx_secure_test/nx_secure_huge_number_test.c
+++ b/test/regression/nx_secure_test/nx_secure_huge_number_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test for aes ctr encrypting the plain text which is not multiples of 16. */
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_md5_test.c b/test/regression/nx_secure_test/nx_secure_md5_test.c
index 2055ca2a..4966866c 100644
--- a/test/regression/nx_secure_test/nx_secure_md5_test.c
+++ b/test/regression/nx_secure_test/nx_secure_md5_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_md5.h"
#include "nx_crypto_method_self_test.h"
diff --git a/test/regression/nx_secure_test/nx_secure_phash_prf_test.c b/test/regression/nx_secure_test/nx_secure_phash_prf_test.c
index 176e0f26..fcb299a1 100644
--- a/test/regression/nx_secure_test/nx_secure_phash_prf_test.c
+++ b/test/regression/nx_secure_test/nx_secure_phash_prf_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_pkcs1_v1_5_test.c b/test/regression/nx_secure_test/nx_secure_pkcs1_v1_5_test.c
index f0bc2dcb..31816273 100644
--- a/test/regression/nx_secure_test/nx_secure_pkcs1_v1_5_test.c
+++ b/test/regression/nx_secure_test/nx_secure_pkcs1_v1_5_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_rsa_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_rsa_error_checking_test.c
index a0449f4e..a104cf96 100644
--- a/test/regression/nx_secure_test/nx_secure_rsa_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_rsa_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_rsa.h"
diff --git a/test/regression/nx_secure_test/nx_secure_rsa_key_pairs.c b/test/regression/nx_secure_test/nx_secure_rsa_key_pairs.c
index 08a0b30f..f0ca7d1e 100644
--- a/test/regression/nx_secure_test/nx_secure_rsa_key_pairs.c
+++ b/test/regression/nx_secure_test/nx_secure_rsa_key_pairs.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_rsa_random_public_exponent_key_pairs.c b/test/regression/nx_secure_test/nx_secure_rsa_random_public_exponent_key_pairs.c
index a833324d..e250de88 100644
--- a/test/regression/nx_secure_test/nx_secure_rsa_random_public_exponent_key_pairs.c
+++ b/test/regression/nx_secure_test/nx_secure_rsa_random_public_exponent_key_pairs.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_rsa_test.c b/test/regression/nx_secure_test/nx_secure_rsa_test.c
index e841cef5..70c5ad29 100644
--- a/test/regression/nx_secure_test/nx_secure_rsa_test.c
+++ b/test/regression/nx_secure_test/nx_secure_rsa_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_rsa.h"
diff --git a/test/regression/nx_secure_test/nx_secure_rsa_test_data.c b/test/regression/nx_secure_test/nx_secure_rsa_test_data.c
index a38a82d1..a72eaca2 100644
--- a/test/regression/nx_secure_test/nx_secure_rsa_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_rsa_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_sha224_test.c b/test/regression/nx_secure_test/nx_secure_sha224_test.c
index cd0871ec..12fb3ce1 100644
--- a/test/regression/nx_secure_test/nx_secure_sha224_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha224_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_sha2.h"
diff --git a/test/regression/nx_secure_test/nx_secure_sha224_test_data.c b/test/regression/nx_secure_test/nx_secure_sha224_test_data.c
index d8a483f4..9fd30e8a 100644
--- a/test/regression/nx_secure_test/nx_secure_sha224_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_sha224_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_sha256_rfc_test.c b/test/regression/nx_secure_test/nx_secure_sha256_rfc_test.c
index 7d2fc58b..27a3a009 100644
--- a/test/regression/nx_secure_test/nx_secure_sha256_rfc_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha256_rfc_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_hmac_sha2.h"
diff --git a/test/regression/nx_secure_test/nx_secure_sha256_test.c b/test/regression/nx_secure_test/nx_secure_sha256_test.c
index eefb8237..2e575ace 100644
--- a/test/regression/nx_secure_test/nx_secure_sha256_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha256_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_sha2.h"
diff --git a/test/regression/nx_secure_test/nx_secure_sha256_test_data.c b/test/regression/nx_secure_test/nx_secure_sha256_test_data.c
index 6cc112f6..e2084d78 100644
--- a/test/regression/nx_secure_test/nx_secure_sha256_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_sha256_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_sha384_test.c b/test/regression/nx_secure_test/nx_secure_sha384_test.c
index 8944c7bd..f0f29048 100644
--- a/test/regression/nx_secure_test/nx_secure_sha384_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha384_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_sha5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_sha384_test_data.c b/test/regression/nx_secure_test/nx_secure_sha384_test_data.c
index 77de1715..4a3fe773 100644
--- a/test/regression/nx_secure_test/nx_secure_sha384_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_sha384_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_sha512_test.c b/test/regression/nx_secure_test/nx_secure_sha512_test.c
index fa3c67a1..c1d09c15 100644
--- a/test/regression/nx_secure_test/nx_secure_sha512_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha512_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_crypto_sha5.h"
diff --git a/test/regression/nx_secure_test/nx_secure_sha512_test_data.c b/test/regression/nx_secure_test/nx_secure_sha512_test_data.c
index 81442543..48866d24 100644
--- a/test/regression/nx_secure_test/nx_secure_sha512_test_data.c
+++ b/test/regression/nx_secure_test/nx_secure_sha512_test_data.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef NX_CRYPTO_STANDALONE_ENABLE
#include "nx_api.h"
#else
diff --git a/test/regression/nx_secure_test/nx_secure_sha_additional_test.c b/test/regression/nx_secure_test/nx_secure_sha_additional_test.c
index d3948df1..bf236dab 100644
--- a/test/regression/nx_secure_test/nx_secure_sha_additional_test.c
+++ b/test/regression/nx_secure_test/nx_secure_sha_additional_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test for aes ctr encrypting the plain text which is not multiples of 16. */
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c
index 780b7639..f92cebfb 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_before_key_generation_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server process empty KeyShare and two KeyShares. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c
index 5ad3814d..320db98a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c
index 884c635d..13a696b7 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_clienthello_length_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly.
One idea: generate a number of valid TLS handshake messages but use random lengths for each length field.
Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions.
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c
index 4448025b..6387272b 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_handshake_fail_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 client with OpenSSL server. */
/* openssl s_server -key ECTestServer2.key -cert ECTestServer2.crt -tls1_3 -rev */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c
index 6081f683..80cc87c3 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_hello_retry_cookie_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server process empty KeyShare and two KeyShares. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c
index 585e405c..65e43718 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_invalid_client_state_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server process empty KeyShare and two KeyShares. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c
index 436c39c7..f30383a3 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_key_share_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server process empty KeyShare and two KeyShares. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c
index e6eac6b8..fc877512 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_provisioned_psk_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c
index 12ecc63d..c9bbf6ff 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_receive_invalid_server_handshake_message_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server process empty KeyShare and two KeyShares. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c
index d2278212..b75c2455 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_serverhello_length_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly.
One idea: generate a number of valid TLS handshake messages but use random lengths for each length field.
Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions.
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c
index 3e6e30f4..67601084 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_session_create_ext_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c b/test/regression/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c
index 6c443e30..da7ba9d6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_1_3_version_negotiation_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test TLS 1.3 server negotiate TLS 1.2. */
/*
rfc8446 p32
diff --git a/test/regression/nx_secure_test/nx_secure_tls_alert_test.c b/test/regression/nx_secure_test/nx_secure_tls_alert_test.c
index fa5fe398..7e891749 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_alert_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_alert_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_branch_test.c b/test/regression/nx_secure_test/nx_secure_tls_branch_test.c
index edec3e9f..419190c6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_branch_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_branch_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c b/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c
index 08618907..237a2fce 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_cert_callback_fail_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* TLS test - check appropriate behavior of TLS Client if no local certificate is assigned and the server requests a
* Client Certificate message. The Client should send a Certificate message with an empty data field (0 bytes length)
* and the Server then chooses what to do with the connection. Default for NetX Secure TLS Server is to reject
diff --git a/test/regression/nx_secure_test/nx_secure_tls_cert_verify_test.c b/test/regression/nx_secure_test/nx_secure_tls_cert_verify_test.c
index 3c02b86c..959d0e29 100755
--- a/test/regression/nx_secure_test/nx_secure_tls_cert_verify_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_cert_verify_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_certificate_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_certificate_coverage_test.c
index 44af6515..d0f755c3 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_certificate_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_certificate_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_process_remote_certificate.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_certificate_verify_test.c b/test/regression/nx_secure_test/nx_secure_tls_certificate_verify_test.c
index e47f66c1..83a72e2c 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_certificate_verify_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_certificate_verify_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS CertificateVerify message processing. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_tls_ciphersuites_test.c
index 9bed2a68..1847c71c 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_client_ca_select_test.c b/test/regression/nx_secure_test/nx_secure_tls_client_ca_select_test.c
index 941511bf..c83ece14 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_client_ca_select_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_client_ca_select_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test Client can select the corresponding CA from the lists. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c
index 5e0af6bd..711363b5 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c
index fd8d58de..3f2573bb 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_client_handshake_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_clienthello_extension_test.c b/test/regression/nx_secure_test/nx_secure_tls_clienthello_extension_test.c
index 567e0317..a047d071 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_clienthello_extension_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_clienthello_extension_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c b/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c
index 5d10d82e..ad607960 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_coverage_2_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_coverage_3_test.c b/test/regression/nx_secure_test/nx_secure_tls_coverage_3_test.c
index 74dcecd8..293c2d5a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_coverage_3_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_coverage_3_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_api.h"
#include "tls_test_utility.h"
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c
index d1da1a34..24e3467b 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
@@ -180,10 +191,10 @@ UINT status;
static UCHAR CertMsg[] = {
/* total length. */
- 0x00, 0x03, 0x27,
+ 0x00, 0x03, 0x29,
/* cert length */
- 0x00, 0x03, 0x24,
- 0x30, 0x82, 0x03, 0x20, 0x30, 0x82, 0x02, 0x08, 0x02, 0x09, 0x00, 0xc0,
+ 0x00, 0x03, 0x26,
+ 0x30, 0x82, 0x03, 0x22, 0x30, 0x82, 0x02, 0x0a, 0x02, 0x09, 0x00, 0xc0,
0xbe, 0x29, 0xae, 0x89, 0x1b, 0xc9, 0xe5, 0x30, 0x0d, 0x06, 0x09, 0x2a,
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x52,
0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
@@ -192,64 +203,65 @@ static UCHAR CertMsg[] = {
0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
- 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x1e,
- 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x32, 0x33, 0x33,
- 0x31, 0x39, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32, 0x39, 0x30,
- 0x32, 0x33, 0x33, 0x31, 0x39, 0x5a, 0x30, 0x52, 0x31, 0x0b, 0x30, 0x09,
- 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
- 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
- 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31,
- 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
- 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
- 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x06,
- 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d,
- 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05,
- 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82,
- 0x01, 0x01, 0x00, 0xc3, 0x79, 0x72, 0xa4, 0xe2, 0xc6, 0xb7, 0x5d, 0x0f,
- 0x41, 0x8c, 0x8e, 0xd1, 0x3c, 0xfd, 0x97, 0xf4, 0x8e, 0x82, 0x7e, 0x75,
- 0xac, 0x4d, 0x85, 0xbb, 0xba, 0xe3, 0xd6, 0x22, 0xad, 0xc5, 0xc2, 0xd5,
- 0x9d, 0x78, 0x1c, 0xab, 0x9c, 0x33, 0xb7, 0x95, 0x36, 0xcb, 0x63, 0x76,
- 0x88, 0xc7, 0x3c, 0xa7, 0xf7, 0xfb, 0x84, 0x1d, 0x7c, 0xc5, 0x17, 0x25,
- 0x5f, 0x1d, 0x41, 0xf3, 0x8c, 0xf9, 0x2f, 0x93, 0xab, 0xb2, 0x6b, 0x84,
- 0xa9, 0x07, 0x70, 0xa1, 0xa0, 0xb3, 0xe0, 0x86, 0x5b, 0x5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, 0x01, 0x00, 0x01,
+ 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x20,
+ 0x18, 0x0f, 0x32, 0x30, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x32,
+ 0x33, 0x33, 0x31, 0x39, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32,
+ 0x39, 0x30, 0x32, 0x33, 0x33, 0x31, 0x39, 0x5a, 0x30, 0x52, 0x31, 0x0b,
+ 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
+ 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48,
+ 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53,
+ 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02,
+ 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c,
+ 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55, 0x04, 0x03,
+ 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x82, 0x01, 0x22,
0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
- 0x0b, 0x05, 0x00, 0x03, 0x82, 0x01, 0x01, 0x00, 0x3d, 0xa4, 0x36, 0xc9,
- 0x9d, 0x91, 0xd1, 0x25, 0xe7, 0x41, 0x2c, 0x8d, 0xda, 0xcd, 0xb3, 0x8a,
- 0x53, 0xe4, 0xee, 0x4f, 0x94, 0xa4, 0x84, 0xee, 0xaf, 0x06, 0x85, 0x6a,
- 0xa6, 0x54, 0xe5, 0x8f, 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, 0x25, 0x64, 0xb6, 0xc5, 0x24,
+ 0x9c, 0xd8, 0xe4, 0xc9, 0xe6, 0xee, 0x23, 0xce, 0xa8, 0x1d, 0x46, 0xd0,
+ 0xc8, 0xd6, 0x8f, 0x27, 0xc1, 0x48, 0x66, 0x3d, 0x30, 0x7f, 0xf4, 0xf5,
+ 0xd7, 0x81, 0x3a, 0x62, 0x92, 0xbb, 0x9a, 0x66, 0x65, 0xaf, 0x27, 0x93,
+ 0xd8, 0x63, 0xfa, 0xa8, 0x3f, 0x14, 0x2e, 0xbd, 0xd2, 0x20, 0x30, 0x5b,
+ 0x41, 0x6d, 0x01, 0x07, 0x37, 0xe9, 0x9c, 0x8a, 0x07, 0xe3, 0x32, 0xb7,
+ 0x68, 0xae
};
/* -----===== SERVER =====----- */
@@ -1132,11 +1144,7 @@ UCHAR test_iv[16];
/* expiration_check failed. */
server_tls_session.nx_secure_tls_session_time_function = _session_time_function;
- cert_1.nx_secure_x509_validity_format = NX_SECURE_ASN_TAG_GENERALIZED_TIME;
- status = _nx_secure_tls_remote_certificate_verify(&server_tls_session);
- EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
-
- certificate.nx_secure_x509_validity_format = 0xff;
+ certificate.nx_secure_x509_not_before_validity_format = 0xff;
status = _nx_secure_tls_remote_certificate_verify(&server_tls_session);
EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
@@ -1747,11 +1755,7 @@ UCHAR test_iv[16];
/* expiration_check failed. */
server_tls_session.nx_secure_tls_session_time_function = _session_time_function;
- cert_1.nx_secure_x509_validity_format = NX_SECURE_ASN_TAG_GENERALIZED_TIME;
- status = _nx_secure_tls_remote_certificate_verify(&server_tls_session);
- EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
-
- certificate.nx_secure_x509_validity_format = 0xff;
+ certificate.nx_secure_x509_not_before_validity_format = 0xff;
status = _nx_secure_tls_remote_certificate_verify(&server_tls_session);
EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_basic_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_basic_test.c
index 2a63bb12..884adaa0 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_basic_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_basic_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c
index e6fe4e25..8ea0d243 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c
index e6759c7f..8b0003a6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_client_cert_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The client certificate is require. */
#include "nx_api.h"
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_crl_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_crl_test.c
index e5f2513f..ff4fef27 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_crl_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_crl_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_curves_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_curves_test.c
index 68069687..b7982296 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_curves_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_curves_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC curve selection. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c
index 3d0e4ce3..911ba3f9 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_generate_keys_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c
index 2d6e7ab8..7cb8a3e4 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_packet_chain_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_point_format_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_point_format_test.c
index 3264394c..a31302ad 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_point_format_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_point_format_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test simulate an unsupported ecc point format for the client. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c b/test/regression/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c
index be2e0586..8e18005b 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_ecc_protocol_version_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c b/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c
index 8ec27ed4..c7586d49 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_empty_clienthello_extension_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Length and bounds checking tests. Length fields are the most likely to be exploited by an attacker so we need to be sure all of our parsing is checking them correctly.
One idea: generate a number of valid TLS handshake messages but use random lengths for each length field.
Focus particularly on ClientHello and ServerHello extensions. Bugs like Heartbleed in OpenSSL occur in those extensions. Pay close attention to any length fields in the extensions.
diff --git a/test/regression/nx_secure_test/nx_secure_tls_error_checking_2_test.c b/test/regression/nx_secure_test/nx_secure_tls_error_checking_2_test.c
index 7a813d8d..920373b7 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_error_checking_2_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_error_checking_2_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c
index 3bae3ab9..6ff216fb 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c
index 2513fcf5..a0f87ed9 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_finished_hash_generate_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c
index d1fda012..ba2f53d0 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_generate_keys_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c
index f0cf1bac..7c0b1f44 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_generate_premaster_secret_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c
index 21db158f..c54c6065 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fail_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c
index 5f00b115..3b489626 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_ecc_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on fragmented TLS handshake message across multiple TLS records
(e.g. when a certificate message is splitted into multiple fragments).
The Cipher Suite used was TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (0xc024). */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c
index 051922c3..ec417cc4 100755
--- a/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_fragmentation_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on fragmented TLS handshake message across multiple TLS records
(e.g. when a certificate message is splitted into multiple fragments).
The Cipher Suite used was TLS_RSA_WITH_AES_128_GCM_SHA256 (0x009c). */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c
index 5d5bc297..ae6ac98a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_hash_init_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_handshake_header_test.c b/test/regression/nx_secure_test/nx_secure_tls_handshake_header_test.c
index 9972d20a..be873fca 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_handshake_header_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_handshake_header_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c b/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c
index c01114ae..7031d671 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_hash_clone_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_hash_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_hash_coverage_test.c
index c2c395bd..3f337d2c 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_hash_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_hash_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_record_hash_*.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c
index 3c5f5d22..57d6ad03 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_hash_record_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_header_test.c b/test/regression/nx_secure_test/nx_secure_tls_header_test.c
index eeff7f1e..1ab3d4a9 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_header_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_header_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_metadata_size_test.c b/test/regression/nx_secure_test/nx_secure_tls_metadata_size_test.c
index 46f278df..7dfc3d64 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_metadata_size_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_metadata_size_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* TLS metadata size test
Make sure the value calculated by nx_secure_tls_metadata_size_calculate is the minimal value
required by nx_secure_tls_session_create.
diff --git a/test/regression/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c b/test/regression/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c
index 5d648f1d..ddbe2104 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_multiple_handshake_msg_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS Certificate message processing with multiple
handshake messages combined in a single record - this tests the certificate
buffer allocation within the packet buffer. */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_multithread_test.c b/test/regression/nx_secure_test/nx_secure_tls_multithread_test.c
index 40628898..77be4842 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_multithread_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_multithread_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c
index 90eb99ad..14964404 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_newest_supported_version_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c b/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c
index 714688ec..22c7c25a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_no_client_cert_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* TLS test - check appropriate behavior of TLS Client if no local certificate is assigned and the server requests a
* Client Certificate message. The Client should send a Certificate message with an empty data field (0 bytes length)
* and the Server then chooses what to do with the connection. Default for NetX Secure TLS Server is to reject
diff --git a/test/regression/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c b/test/regression/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c
index 90e4d860..def8bd1f 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_no_remote_certs_allocated_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS CertificateVerify message processing,
but doesn't allocate certificates - this tests the internal certificate
in-place parsing and allocation within the CertificateVerify context. */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_non_blocking_test.c b/test/regression/nx_secure_test/nx_secure_tls_non_blocking_test.c
index 7ab06332..50dd6466 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_non_blocking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_non_blocking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c b/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c
index 56e1a6ad..97db398d 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_nxe_api_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c b/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c
index 3b72d26f..748edef1 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_packet_chain_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_packet_trim_test.c b/test/regression/nx_secure_test/nx_secure_tls_packet_trim_test.c
index 2cdf1ab9..6ae336e8 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_packet_trim_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_packet_trim_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c b/test/regression/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c
index 1a19c564..d41e4604 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_partial_remote_certs_allocated_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test automated certificate allocation optimization. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_payload_size_test.c b/test/regression/nx_secure_test/nx_secure_tls_payload_size_test.c
index 8fc3ecf1..ea4cce95 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_payload_size_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_payload_size_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on different payload size for TLS record. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_process_certificate_request_test.c b/test/regression/nx_secure_test/nx_secure_tls_process_certificate_request_test.c
index 0926150f..e359d8b8 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_process_certificate_request_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_process_certificate_request_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c b/test/regression/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c
index 91f09f2c..cb3dac5a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_process_certificate_verify_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c b/test/regression/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c
index f416475b..b0038f32 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_process_changecipherspec_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_process_finished_test.c b/test/regression/nx_secure_test/nx_secure_tls_process_finished_test.c
index 84b9e9f0..95317787 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_process_finished_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_process_finished_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on process Finished message. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_process_record_test.c b/test/regression/nx_secure_test/nx_secure_tls_process_record_test.c
index e44f7ab9..5ac49ef0 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_process_record_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_process_record_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_psk_identity_test.c b/test/regression/nx_secure_test/nx_secure_tls_psk_identity_test.c
new file mode 100644
index 00000000..6e297ec0
--- /dev/null
+++ b/test/regression/nx_secure_test/nx_secure_tls_psk_identity_test.c
@@ -0,0 +1,348 @@
+/***************************************************************************
+ * Copyright (C) 2026 Eclipse ThreadX contributors
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the MIT License which is available at
+ * https://opensource.org/licenses/MIT.
+ *
+ * AI Disclosure: This file was largely AI-generated by Codex gpt-5.5.
+ * The AI-generated portions may be considered public domain (CC0-1.0)
+ * and not subject to the project's licence. The human contributor has
+ * reviewed and verified that the code is correct.
+ *
+ * SPDX-License-Identifier: MIT and CC0-1.0
+ **************************************************************************/
+
+#include <stdio.h>
+#include <string.h>
+
+#include "nx_secure_tls.h"
+#include "nx_crypto.h"
+#include "tls_test_utility.h"
+
+extern void test_control_return(UINT status);
+
+#ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES
+static UCHAR psk_one[] = {0x11};
+static UCHAR psk_two[] = {0x22, 0x33, 0x44};
+static UCHAR psk_id_one[] = "first";
+static UCHAR psk_id_two[] = "second";
+static UCHAR psk_hint[] = "hint";
+static UCHAR ecdhe_public_key[] = {0xAA, 0xBB, 0xCC};
+static UCHAR ecdhe_shared_secret[] = {0x55, 0x66, 0x77, 0x88};
+
+static NX_CRYPTO_METHOD crypto_method_test_null =
+{
+ NX_CRYPTO_ENCRYPTION_NULL,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL
+};
+
+static NX_CRYPTO_METHOD crypto_method_test_psk =
+{
+ NX_CRYPTO_KEY_EXCHANGE_PSK,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL
+};
+
+static NX_SECURE_TLS_CIPHERSUITE_INFO psk_ciphersuite =
+{
+ TLS_PSK_WITH_AES_128_CBC_SHA256,
+ &crypto_method_test_null,
+ &crypto_method_test_psk,
+ &crypto_method_test_null,
+ 0,
+ 0,
+ &crypto_method_test_null,
+ 0,
+ &crypto_method_test_null
+};
+
+/* Store two PSKs so the tests can verify that the requested identity selects a non-zero store entry. */
+static VOID psk_credentials_setup(NX_SECURE_TLS_CREDENTIALS *credentials)
+{
+
+ memset(credentials, 0, sizeof(NX_SECURE_TLS_CREDENTIALS));
+
+ credentials -> nx_secure_tls_psk_count = 2;
+
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_data, psk_one, sizeof(psk_one));
+ credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_data_size = sizeof(psk_one);
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_id, psk_id_one, sizeof(psk_id_one) - 1u);
+ credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_id_size = sizeof(psk_id_one) - 1u;
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_id_hint, psk_hint, sizeof(psk_hint) - 1u);
+ credentials -> nx_secure_tls_psk_store[0].nx_secure_tls_psk_id_hint_size = sizeof(psk_hint) - 1u;
+
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_data, psk_two, sizeof(psk_two));
+ credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_data_size = sizeof(psk_two);
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_id, psk_id_two, sizeof(psk_id_two) - 1u);
+ credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_id_size = sizeof(psk_id_two) - 1u;
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_id_hint, psk_hint, sizeof(psk_hint) - 1u);
+ credentials -> nx_secure_tls_psk_store[1].nx_secure_tls_psk_id_hint_size = sizeof(psk_hint) - 1u;
+
+ NX_SECURE_MEMCPY(credentials -> nx_secure_tls_remote_psk_id, psk_id_two, sizeof(psk_id_two) - 1u);
+ credentials -> nx_secure_tls_remote_psk_id_size = sizeof(psk_id_two) - 1u;
+}
+
+/* Validate that a plain PSK premaster uses the client-requested PSK identity. */
+static VOID plain_psk_identity_test(VOID)
+{
+NX_SECURE_TLS_CREDENTIALS credentials;
+NX_SECURE_TLS_KEY_MATERIAL key_material;
+USHORT received_remote_credentials = NX_FALSE;
+UINT status;
+
+ psk_credentials_setup(&credentials);
+ memset(&key_material, 0, sizeof(key_material));
+
+ status = _nx_secure_generate_premaster_secret(&psk_ciphersuite, NX_SECURE_TLS_VERSION_TLS_1_2,
+ &key_material, &credentials,
+ NX_SECURE_TLS_SESSION_TYPE_SERVER,
+ &received_remote_credentials,
+ NX_NULL, 0, NX_NULL);
+ EXPECT_EQ(NX_SECURE_TLS_SUCCESS, status);
+ EXPECT_EQ(NX_TRUE, received_remote_credentials);
+ EXPECT_EQ((UINT)(2u + sizeof(psk_two) + 2u + sizeof(psk_two)), key_material.nx_secure_tls_pre_master_secret_size);
+ EXPECT_EQ(0, key_material.nx_secure_tls_pre_master_secret[0]);
+ EXPECT_EQ(sizeof(psk_two), key_material.nx_secure_tls_pre_master_secret[1]);
+ EXPECT_EQ(0, NX_SECURE_MEMCMP(&key_material.nx_secure_tls_pre_master_secret[2u + sizeof(psk_two) + 2u], psk_two, sizeof(psk_two)));
+
+ NX_SECURE_MEMCPY(credentials.nx_secure_tls_remote_psk_id, psk_hint, sizeof(psk_hint) - 1u);
+ credentials.nx_secure_tls_remote_psk_id_size = sizeof(psk_hint) - 1u;
+ status = _nx_secure_generate_premaster_secret(&psk_ciphersuite, NX_SECURE_TLS_VERSION_TLS_1_2,
+ &key_material, &credentials,
+ NX_SECURE_TLS_SESSION_TYPE_SERVER,
+ &received_remote_credentials,
+ NX_NULL, 0, NX_NULL);
+ EXPECT_EQ(NX_SECURE_TLS_NO_MATCHING_PSK, status);
+}
+
+/* Validate ClientKeyExchange PSK identity bounds checking for plain PSK. */
+static VOID plain_psk_client_key_exchange_length_test(VOID)
+{
+NX_SECURE_TLS_CREDENTIALS credentials;
+NX_SECURE_TLS_KEY_MATERIAL key_material;
+USHORT received_remote_credentials = NX_FALSE;
+UCHAR truncated_identity[] = {0x00, 0x06, 's', 'e'};
+UINT status;
+
+ psk_credentials_setup(&credentials);
+ memset(&key_material, 0, sizeof(key_material));
+
+ status = _nx_secure_process_client_key_exchange(&psk_ciphersuite, NX_SECURE_TLS_VERSION_TLS_1_2,
+ truncated_identity, sizeof(truncated_identity),
+ &received_remote_credentials, &key_material, &credentials,
+ NX_NULL, 0, NX_NULL, 0, NX_NULL);
+ EXPECT_EQ(NX_SECURE_TLS_INCORRECT_MESSAGE_LENGTH, status);
+}
+
+#ifdef NX_SECURE_ENABLE_ECC_CIPHERSUITE
+#ifndef NX_SECURE_DISABLE_X509
+static UINT test_ecdhe_operation(UINT op, VOID *handler, NX_CRYPTO_METHOD *method,
+ UCHAR *key, NX_CRYPTO_KEY_SIZE key_size_in_bits,
+ UCHAR *input, ULONG input_length_in_byte,
+ UCHAR *iv_ptr, UCHAR *output, ULONG output_length_in_byte,
+ VOID *crypto_metadata, ULONG crypto_metadata_size,
+ VOID *packet_ptr,
+ VOID (*nx_crypto_hw_process_callback)(VOID *packet_ptr, UINT status))
+{
+NX_CRYPTO_EXTENDED_OUTPUT *extended_output;
+
+ NX_PARAMETER_NOT_USED(handler);
+ NX_PARAMETER_NOT_USED(method);
+ NX_PARAMETER_NOT_USED(key);
+ NX_PARAMETER_NOT_USED(key_size_in_bits);
+ NX_PARAMETER_NOT_USED(iv_ptr);
+ NX_PARAMETER_NOT_USED(output_length_in_byte);
+ NX_PARAMETER_NOT_USED(crypto_metadata);
+ NX_PARAMETER_NOT_USED(crypto_metadata_size);
+ NX_PARAMETER_NOT_USED(packet_ptr);
+ NX_PARAMETER_NOT_USED(nx_crypto_hw_process_callback);
+
+ if ((op == NX_CRYPTO_EC_CURVE_SET) || (op == NX_CRYPTO_DH_KEY_PAIR_IMPORT))
+ {
+ return(NX_CRYPTO_SUCCESS);
+ }
+
+ if (op == NX_CRYPTO_DH_CALCULATE)
+ {
+ if ((input_length_in_byte != sizeof(ecdhe_public_key)) ||
+ (NX_SECURE_MEMCMP(input, ecdhe_public_key, sizeof(ecdhe_public_key)) != 0))
+ {
+ return(NX_CRYPTO_NOT_SUCCESSFUL);
+ }
+
+ extended_output = (NX_CRYPTO_EXTENDED_OUTPUT *)output;
+ if (extended_output -> nx_crypto_extended_output_length_in_byte < sizeof(ecdhe_shared_secret))
+ {
+ return(NX_CRYPTO_NOT_SUCCESSFUL);
+ }
+
+ NX_SECURE_MEMCPY(extended_output -> nx_crypto_extended_output_data, ecdhe_shared_secret, sizeof(ecdhe_shared_secret));
+ extended_output -> nx_crypto_extended_output_actual_size = sizeof(ecdhe_shared_secret);
+ return(NX_CRYPTO_SUCCESS);
+ }
+
+ return(NX_CRYPTO_NOT_SUCCESSFUL);
+}
+
+static NX_CRYPTO_METHOD crypto_method_test_ecdhe =
+{
+ NX_CRYPTO_KEY_EXCHANGE_ECDHE,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL,
+ test_ecdhe_operation
+};
+
+static NX_CRYPTO_METHOD crypto_method_test_curve =
+{
+ NX_CRYPTO_EC_SECP256R1,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL,
+ NX_CRYPTO_NULL
+};
+
+static NX_SECURE_TLS_CIPHERSUITE_INFO ecdhe_psk_ciphersuite =
+{
+ TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA,
+ &crypto_method_test_ecdhe,
+ &crypto_method_test_psk,
+ &crypto_method_test_null,
+ 0,
+ 0,
+ &crypto_method_test_null,
+ 0,
+ &crypto_method_test_null
+};
+
+/* Validate that ECDHE-PSK parses identity before public key and appends the selected PSK. */
+static VOID ecdhe_psk_client_key_exchange_test(VOID)
+{
+NX_SECURE_TLS_CREDENTIALS credentials;
+NX_SECURE_TLS_KEY_MATERIAL key_material;
+NX_SECURE_TLS_ECDHE_HANDSHAKE_DATA *ecdhe_data;
+NX_SECURE_TLS_ECC ecc;
+const NX_CRYPTO_METHOD *curves[1];
+USHORT groups[1];
+USHORT received_remote_credentials = NX_FALSE;
+UCHAR client_key_exchange[2u + sizeof(psk_id_two) - 1u + 1u + sizeof(ecdhe_public_key)];
+UINT offset;
+UINT status;
+
+ psk_credentials_setup(&credentials);
+ memset(&key_material, 0, sizeof(key_material));
+
+ ecdhe_data = (NX_SECURE_TLS_ECDHE_HANDSHAKE_DATA *)key_material.nx_secure_tls_new_key_material_data;
+ ecdhe_data -> nx_secure_tls_ecdhe_named_curve = NX_CRYPTO_EC_SECP256R1;
+ ecdhe_data -> nx_secure_tls_ecdhe_private_key[0] = 1;
+ ecdhe_data -> nx_secure_tls_ecdhe_private_key_length = 1;
+
+ groups[0] = (USHORT)NX_CRYPTO_EC_SECP256R1;
+ curves[0] = &crypto_method_test_curve;
+ ecc.nx_secure_tls_ecc_supported_groups = groups;
+ ecc.nx_secure_tls_ecc_supported_groups_count = 1;
+ ecc.nx_secure_tls_ecc_curves = curves;
+
+ offset = 0;
+ client_key_exchange[offset++] = 0;
+ client_key_exchange[offset++] = (UCHAR)(sizeof(psk_id_two) - 1u);
+ NX_SECURE_MEMCPY(&client_key_exchange[offset], psk_id_two, sizeof(psk_id_two) - 1u);
+ offset += sizeof(psk_id_two) - 1u;
+ client_key_exchange[offset++] = sizeof(ecdhe_public_key);
+ NX_SECURE_MEMCPY(&client_key_exchange[offset], ecdhe_public_key, sizeof(ecdhe_public_key));
+ offset += sizeof(ecdhe_public_key);
+
+ status = _nx_secure_process_client_key_exchange(&ecdhe_psk_ciphersuite, NX_SECURE_TLS_VERSION_TLS_1_2,
+ client_key_exchange, offset,
+ &received_remote_credentials, &key_material, &credentials,
+ NX_NULL, 0, NX_NULL, 0, &ecc);
+ EXPECT_EQ(NX_SECURE_TLS_SUCCESS, status);
+ EXPECT_EQ(NX_TRUE, received_remote_credentials);
+ EXPECT_EQ((UINT)(2u + sizeof(ecdhe_shared_secret) + 2u + sizeof(psk_two)), key_material.nx_secure_tls_pre_master_secret_size);
+ EXPECT_EQ(sizeof(ecdhe_shared_secret), key_material.nx_secure_tls_pre_master_secret[1]);
+ EXPECT_EQ(0, NX_SECURE_MEMCMP(&key_material.nx_secure_tls_pre_master_secret[2], ecdhe_shared_secret, sizeof(ecdhe_shared_secret)));
+ EXPECT_EQ(sizeof(psk_two), key_material.nx_secure_tls_pre_master_secret[2u + sizeof(ecdhe_shared_secret) + 1u]);
+ EXPECT_EQ(0, NX_SECURE_MEMCMP(&key_material.nx_secure_tls_pre_master_secret[2u + sizeof(ecdhe_shared_secret) + 2u], psk_two, sizeof(psk_two)));
+}
+
+/* Validate that ECDHE-PSK client messages include the PSK identity before the EC public key. */
+static VOID ecdhe_psk_client_key_exchange_generate_test(VOID)
+{
+NX_SECURE_TLS_CREDENTIALS credentials;
+NX_SECURE_TLS_KEY_MATERIAL key_material;
+UCHAR output[32];
+ULONG output_size = 0;
+UINT status;
+
+ memset(&credentials, 0, sizeof(credentials));
+ memset(&key_material, 0, sizeof(key_material));
+ NX_SECURE_MEMCPY(credentials.nx_secure_tls_client_psk.nx_secure_tls_psk_id, psk_id_two, sizeof(psk_id_two) - 1u);
+ credentials.nx_secure_tls_client_psk.nx_secure_tls_psk_id_size = sizeof(psk_id_two) - 1u;
+ key_material.nx_secure_tls_new_key_material_data[0] = sizeof(ecdhe_public_key);
+ NX_SECURE_MEMCPY(&key_material.nx_secure_tls_new_key_material_data[1], ecdhe_public_key, sizeof(ecdhe_public_key));
+
+ status = _nx_secure_generate_client_key_exchange(&ecdhe_psk_ciphersuite, &key_material, &credentials,
+ output, sizeof(output), &output_size,
+ NX_NULL, 0, NX_NULL, 0);
+ EXPECT_EQ(NX_SECURE_TLS_SUCCESS, status);
+ EXPECT_EQ((ULONG)(2u + sizeof(psk_id_two) - 1u + 1u + sizeof(ecdhe_public_key)), output_size);
+ EXPECT_EQ(0, output[0]);
+ EXPECT_EQ(sizeof(psk_id_two) - 1u, output[1]);
+ EXPECT_EQ(0, NX_SECURE_MEMCMP(&output[2], psk_id_two, sizeof(psk_id_two) - 1u));
+ EXPECT_EQ(sizeof(ecdhe_public_key), output[2u + sizeof(psk_id_two) - 1u]);
+ EXPECT_EQ(0, NX_SECURE_MEMCMP(&output[2u + sizeof(psk_id_two)], ecdhe_public_key, sizeof(ecdhe_public_key)));
+}
+#endif /* NX_SECURE_DISABLE_X509 */
+#endif /* NX_SECURE_ENABLE_ECC_CIPHERSUITE */
+#endif /* NX_SECURE_ENABLE_PSK_CIPHERSUITES */
+
+#ifdef CTEST
+void test_application_define(void *first_unused_memory);
+void test_application_define(void *first_unused_memory)
+#else
+void nx_secure_tls_psk_identity_test_application_define(void *first_unused_memory)
+#endif
+{
+
+ NX_PARAMETER_NOT_USED(first_unused_memory);
+
+ printf("NetX Secure Test: TLS PSK Identity Test...............................");
+
+#ifdef NX_SECURE_ENABLE_PSK_CIPHERSUITES
+ nx_system_initialize();
+ nx_secure_tls_initialize();
+ plain_psk_identity_test();
+ plain_psk_client_key_exchange_length_test();
+#if defined(NX_SECURE_ENABLE_ECC_CIPHERSUITE) && !defined(NX_SECURE_DISABLE_X509)
+ ecdhe_psk_client_key_exchange_test();
+ ecdhe_psk_client_key_exchange_generate_test();
+#endif
+ printf("SUCCESS!\n");
+#else
+ printf("N/A\n");
+#endif
+
+ test_control_return(0);
+}
diff --git a/test/regression/nx_secure_test/nx_secure_tls_receive_alert_test.c b/test/regression/nx_secure_test/nx_secure_tls_receive_alert_test.c
index 3e7f644b..825643a6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_receive_alert_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_receive_alert_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_receive_test.c b/test/regression/nx_secure_test/nx_secure_tls_receive_test.c
index bc112918..be682112 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_receive_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_receive_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c b/test/regression/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c
index 4f820a0d..0aca5ff3 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_receive_wrong_packet_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c
index 6d31c306..a655ebd1 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_record_decrypt_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_record_payload_decrypt.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c
index 0b183501..e69f518f 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_record_encrypt_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_record_payload_encrypt.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_record_layer_version_test.c b/test/regression/nx_secure_test/nx_secure_tls_record_layer_version_test.c
index c9023e99..88a1b9b7 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_record_layer_version_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_record_layer_version_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests if the TLS record layer version number in all unencrypted TLS records is ignored. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_record_length_test.c b/test/regression/nx_secure_test/nx_secure_tls_record_length_test.c
index b79f198e..57135a4a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_record_length_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_record_length_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_rsa_4096_test.c b/test/regression/nx_secure_test/nx_secure_tls_rsa_4096_test.c
index f87c74cc..7b61d1d6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_rsa_4096_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_rsa_4096_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c b/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c
index 22ed9a6e..4b9d20a2 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_rsa_private_key_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test removes p and q component in the private key and test if the server decrypts correctly. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c b/test/regression/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c
index 1dc19ccd..5d6e2781 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_send_and_receive_record_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_send_certificate_test.c b/test/regression/nx_secure_test/nx_secure_tls_send_certificate_test.c
index 5041e4c4..feaa3537 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_send_certificate_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_send_certificate_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests nx_secure_tls_send_certificate. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_send_clienthello_test.c b/test/regression/nx_secure_test/nx_secure_tls_send_clienthello_test.c
index 6aff8f0f..1eff75de 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_send_clienthello_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_send_clienthello_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This tests nx_secure_tls_send_certificate. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c b/test/regression/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c
index 2d83ab3b..9b20c4ed 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_send_plaintext_alert_after_key_generation_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Send plaintext TLS messages after keys are generated – this comes from a bug reported by Renesas where
* Chrome sends a plaintext alert to the device, but the device is already in the encrypted session (TLS 1.2).
* Due to a missing bounds check in the GCM/CCM nonce_explicit parsing, the plaintext alert causes a crash
diff --git a/test/regression/nx_secure_test/nx_secure_tls_send_record_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_send_record_coverage_test.c
index 172db999..46ce6316 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_send_record_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_send_record_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c b/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c
index ee8e5a6a..1a86db03 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_server_ciphersuite_priority_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test verifies that a TLS server will select the top-priority ciphersuite in the local ciphersuite table from the selection provided
by the remote client. The priority is determined by the order in the ciphersuite table, thus the highest priority ciphersuite has
the lowest-value index in the table. */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_server_handshake_test.c b/test/regression/nx_secure_test/nx_secure_tls_server_handshake_test.c
index 19da0d7a..3e536b51 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_server_handshake_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_server_handshake_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c
index e8394ce3..1d2827e6 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_server_key_exchange_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_process_remote_certificate.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c
index e9e5a575..8ba3d949 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_serverhello_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_tls_process_serverhello.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_serverhello_extension_test.c b/test/regression/nx_secure_test/nx_secure_tls_serverhello_extension_test.c
index 54054726..fb4cd2c3 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_serverhello_extension_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_serverhello_extension_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c b/test/regression/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c
index b8661963..693553dd 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_serverhello_session_id_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ciphersuite TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA. The curve used in this demo is P256. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_create_ext_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_create_ext_test.c
index ad5d5e12..c9034486 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_create_ext_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_create_ext_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_delete_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_delete_test.c
index 0f382b4b..279a6111 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_delete_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_delete_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c
index ca1cbc97..c906b248 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_keys_set_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c
index d88a2f8e..06ceac1a 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_receive_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c
index 3adbac15..99766060 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_renegotiate_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c
index d4760bb9..8622b088 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_sni_extension_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c b/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c
index 197cf890..5917cc64 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_session_start_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_shutdown_test.c b/test/regression/nx_secure_test/nx_secure_tls_shutdown_test.c
index 8defa1b5..1e5f97d8 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_shutdown_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_shutdown_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on TLS ECC ciphersuites negotiation. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c b/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c
index 12098a3c..9342f927 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_tcp_fragment_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "tx_api.h"
#include "nx_api.h"
#include "nx_tcp.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_test_init_functions.h b/test/regression/nx_secure_test/nx_secure_tls_test_init_functions.h
index ebc38960..411a0e92 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_test_init_functions.h
+++ b/test/regression/nx_secure_test/nx_secure_tls_test_init_functions.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef __NX_SECURE_TLS_TEST_INIT_FUNCTIONS_H
#define __NX_SECURE_TLS_TEST_INIT_FUNCTIONS_H
diff --git a/test/regression/nx_secure_test/nx_secure_tls_test_init_utility.c b/test/regression/nx_secure_test/nx_secure_tls_test_init_utility.c
index 32177c3f..c395c1db 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_test_init_utility.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_test_init_utility.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_secure_tls_api.h"
#include "nx_crypto.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c b/test/regression/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c
index 391ea614..827c0ccc 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_transmit_mutex_wait_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_api.h"
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c b/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c
index 3b85467a..3403fab9 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_two_way_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c b/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c
index b2f1b025..4760c4e2 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_two_way_test_version_1_1.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* 14.19 TCP MUST include an SWS avoidance algorithm in the receiver when effective send MSS < (1/ 2)*RCV_BUFF. */
/* Procedure
diff --git a/test/regression/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c
index d8a25036..f8efb015 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_unrecognized_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test concentrates on ClientHello message processing - this tests whether unrecognized
cipher suites and extensions are ignored properly. */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c b/test/regression/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c
index 4181126c..002e7239 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_unsupported_ciphersuites_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* The test of properly fail unsupported cipher suites. */
#include "nx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_tls_user_defined_key_test.c b/test/regression/nx_secure_test/nx_secure_tls_user_defined_key_test.c
index 5d67628d..7ab3f9ad 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_user_defined_key_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_user_defined_key_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* Test user-defined key path in processing ClientKeyExchange and sending CertificateVerify messages. */
diff --git a/test/regression/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c b/test/regression/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c
index e369259b..4ea8ecb7 100644
--- a/test/regression/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_tls_verify_mac_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_certificate_initialize_test.c b/test/regression/nx_secure_test/nx_secure_x509_certificate_initialize_test.c
index f0aa5567..bde0561f 100755
--- a/test/regression/nx_secure_test/nx_secure_x509_certificate_initialize_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_certificate_initialize_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_certificate_verify_test.c b/test/regression/nx_secure_test/nx_secure_x509_certificate_verify_test.c
index 8be047b4..ae80cc81 100755
--- a/test/regression/nx_secure_test/nx_secure_x509_certificate_verify_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_certificate_verify_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_crl_test.c b/test/regression/nx_secure_test/nx_secure_x509_crl_test.c
index adc15971..ed16f9fc 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_crl_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_crl_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_x509.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_crl_verify_test.c b/test/regression/nx_secure_test/nx_secure_x509_crl_verify_test.c
index c843c66c..ced4a934 100755
--- a/test/regression/nx_secure_test/nx_secure_x509_crl_verify_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_crl_verify_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_secure_tls_api.h"
#include "tls_test_utility.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_error_checking_test.c b/test/regression/nx_secure_test/nx_secure_x509_error_checking_test.c
index bedbae95..1b37e5a7 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_error_checking_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_error_checking_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include "nx_api.h"
#include "tls_test_utility.h"
#include "nx_secure_x509.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_expiration_check_test.c b/test/regression/nx_secure_test/nx_secure_x509_expiration_check_test.c
index 02a78413..029425d8 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_expiration_check_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_expiration_check_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
@@ -10,7 +21,7 @@
static const UCHAR example_com_der[] = {
- 0x30, 0x82, 0x03, 0x25, 0x30, 0x82, 0x02, 0x0d, 0x02, 0x09, 0x00, 0xe8,
+ 0x30, 0x82, 0x03, 0x27, 0x30, 0x82, 0x02, 0x0f, 0x02, 0x09, 0x00, 0xe8,
0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x54, 0x30, 0x0d, 0x06, 0x09, 0x2a,
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x52,
0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
@@ -19,69 +30,69 @@ static const UCHAR example_com_der[] = {
0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
- 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x1e,
- 0x17, 0x0d, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x37, 0x33, 0x37,
- 0x35, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32, 0x39, 0x30,
- 0x37, 0x33, 0x37, 0x35, 0x36, 0x5a, 0x30, 0x57, 0x31, 0x0b, 0x30, 0x09,
- 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30,
- 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b,
- 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31,
- 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c,
- 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45,
- 0x4c, 0x31, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0b,
- 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x30,
- 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7,
- 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30,
- 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00, 0xb5, 0xb8, 0x43, 0xe0,
- 0x33, 0x31, 0x80, 0x31, 0xe6, 0x0d, 0x65, 0x84, 0x40, 0x34, 0xe1, 0xfb,
- 0x69, 0xa6, 0x23, 0xbd, 0x35, 0xcd, 0xde, 0xbc, 0x0f, 0x1a, 0xd4, 0x27,
- 0x44, 0xee, 0x03, 0xdf, 0xc5, 0xcc, 0x2c, 0x22, 0xda, 0xe1, 0x67, 0x3b,
- 0x6b, 0xa1, 0xa9, 0x97, 0x93, 0xa1, 0x58, 0x1c, 0x23, 0x1b, 0x2c, 0xf0,
- 0xd0, 0xee, 0x3f, 0x32, 0xbf, 0x23, 0x23, 0xf9, 0x22, 0x56, 0xa2, 0x1e,
- 0x31, 0xfd, 0x22, 0x02, 0x9a, 0x12, 0x83, 0x2c, 0x34, 0xf4, 0x32, 0xf2,
- 0xb4, 0x5f, 0x13, 0x77, 0x71, 0x49, 0x8f, 0xcb, 0x52, 0xb4, 0xf5, 0xd6,
- 0xb2, 0xd5, 0xd6, 0x05, 0x92, 0x3d, 0x53, 0x85, 0x7d, 0x36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 0x38, 0xfe, 0x73,
- 0x26, 0xf9, 0xec, 0x72, 0x5c, 0x14, 0xe3, 0xd7, 0x55, 0x5b, 0x6c, 0xf5,
- 0x16, 0xb2, 0x15, 0xe7, 0x35, 0x54, 0x45, 0xbb, 0x8a, 0x75, 0xeb, 0x84,
- 0xd5, 0xb7, 0xdd, 0xab, 0x65, 0xe9, 0x82, 0x6f, 0x4e, 0xd7, 0x11, 0x99,
- 0x09, 0x83, 0x4c, 0x40, 0xd8, 0xde, 0x8e, 0x6f, 0xfe, 0xd2, 0x78, 0x70,
- 0x17, 0x9d, 0x41, 0x0d, 0x50, 0xa2, 0x6a, 0xe4, 0xcc, 0xb3, 0xf9, 0x34,
- 0x4a, 0x7f, 0x43, 0x2a, 0x48, 0x79, 0x74, 0xbc, 0xe9, 0x3d, 0x48, 0x37,
- 0x76, 0xed, 0xd9, 0x7b, 0x80
+ 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x20,
+ 0x18, 0x0f, 0x32, 0x30, 0x31, 0x37, 0x31, 0x31, 0x30, 0x39, 0x30, 0x37,
+ 0x33, 0x37, 0x35, 0x36, 0x5a, 0x17, 0x0d, 0x32, 0x30, 0x30, 0x38, 0x32,
+ 0x39, 0x30, 0x37, 0x33, 0x37, 0x35, 0x36, 0x5a, 0x30, 0x57, 0x31, 0x0b,
+ 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43, 0x4e, 0x31,
+ 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02, 0x53, 0x48,
+ 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c, 0x02, 0x53,
+ 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a, 0x0c, 0x02,
+ 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 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0xb2, 0x15, 0xe7, 0x35, 0x54, 0x45, 0xbb, 0x8a, 0x75,
+ 0xeb, 0x84, 0xd5, 0xb7, 0xdd, 0xab, 0x65, 0xe9, 0x82, 0x6f, 0x4e, 0xd7,
+ 0x11, 0x99, 0x09, 0x83, 0x4c, 0x40, 0xd8, 0xde, 0x8e, 0x6f, 0xfe, 0xd2,
+ 0x78, 0x70, 0x17, 0x9d, 0x41, 0x0d, 0x50, 0xa2, 0x6a, 0xe4, 0xcc, 0xb3,
+ 0xf9, 0x34, 0x4a, 0x7f, 0x43, 0x2a, 0x48, 0x79, 0x74, 0xbc, 0xe9, 0x3d,
+ 0x48, 0x37, 0x76, 0xed, 0xd9, 0x7b, 0x80
};
static const UCHAR example_com_localtime_der[] = {
- 0x30, 0x82, 0x03, 0x29, 0x30, 0x82, 0x02, 0x11, 0x02, 0x09, 0x00, 0xe8,
+ 0x30, 0x82, 0x03, 0x2b, 0x30, 0x82, 0x02, 0x13, 0x02, 0x09, 0x00, 0xe8,
0xc2, 0xa4, 0x9c, 0x7c, 0x44, 0xb8, 0x54, 0x30, 0x0d, 0x06, 0x09, 0x2a,
0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05, 0x00, 0x30, 0x52,
0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
@@ -90,65 +101,65 @@ static const UCHAR example_com_localtime_der[] = {
0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0f, 0x30, 0x0d, 0x06, 0x03, 0x55,
- 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x22,
+ 0x04, 0x03, 0x0c, 0x06, 0x54, 0x65, 0x73, 0x74, 0x43, 0x41, 0x30, 0x24,
0x17, 0x0f, 0x39, 0x39, 0x31, 0x32, 0x31, 0x31, 0x31, 0x30, 0x30, 0x39,
- 0x2b, 0x30, 0x38, 0x30, 0x30, 0x17, 0x0f, 0x30, 0x34, 0x30, 0x32, 0x30,
- 0x33, 0x30, 0x34, 0x30, 0x35, 0x2d, 0x30, 0x31, 0x33, 0x30, 0x30, 0x57,
- 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x06, 0x13, 0x02, 0x43,
- 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08, 0x0c, 0x02,
- 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x07, 0x0c,
- 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x0a,
- 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
- 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x14, 0x30, 0x12, 0x06, 0x03, 0x55,
- 0x04, 0x03, 0x0c, 0x0b, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e,
- 0x63, 0x6f, 0x6d, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09, 0x2a,
- 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00, 0x03, 0x82,
- 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01, 0x00,
- 0xb5, 0xb8, 0x43, 0xe0, 0x33, 0x31, 0x80, 0x31, 0xe6, 0x0d, 0x65, 0x84,
- 0x40, 0x34, 0xe1, 0xfb, 0x69, 0xa6, 0x23, 0xbd, 0x35, 0xcd, 0xde, 0xbc,
- 0x0f, 0x1a, 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0x06, 0x03, 0x55, 0x04, 0x06, 0x13,
+ 0x02, 0x43, 0x4e, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04, 0x08,
+ 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55, 0x04,
+ 0x07, 0x0c, 0x02, 0x53, 0x48, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03, 0x55,
+ 0x04, 0x0a, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x0b, 0x30, 0x09, 0x06, 0x03,
+ 0x55, 0x04, 0x0b, 0x0c, 0x02, 0x45, 0x4c, 0x31, 0x14, 0x30, 0x12, 0x06,
+ 0x03, 0x55, 0x04, 0x03, 0x0c, 0x0b, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c,
+ 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06,
+ 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00,
+ 0x03, 0x82, 0x01, 0x0f, 0x00, 0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01,
+ 0x01, 0x00, 0xb5, 0xb8, 0x43, 0xe0, 0x33, 0x31, 0x80, 0x31, 0xe6, 0x0d,
+ 0x65, 0x84, 0x40, 0x34, 0xe1, 0xfb, 0x69, 0xa6, 0x23, 0xbd, 0x35, 0xcd,
+ 0xde, 0xbc, 0x0f, 0x1a, 0xd4, 0x27, 0x44, 0xee, 0x03, 0xdf, 0xc5, 0xcc,
+ 0x2c, 0x22, 0xda, 0xe1, 0x67, 0x3b, 0x6b, 0xa1, 0xa9, 0x97, 0x93, 0xa1,
+ 0x58, 0x1c, 0x23, 0x1b, 0x2c, 0xf0, 0xd0, 0xee, 0x3f, 0x32, 0xbf, 0x23,
+ 0x23, 0xf9, 0x22, 0x56, 0xa2, 0x1e, 0x31, 0xfd, 0x22, 0x02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e2, 0x3a, 0xa8, 0x6b, 0x92, 0x41, 0xaa, 0xa1, 0xb6,
+ 0xe1, 0x23, 0x44, 0xca, 0xcc, 0xa2, 0x43, 0x5a, 0xc1, 0xae, 0x62, 0x32,
+ 0x8d, 0x85, 0x64, 0xc3, 0x0c, 0x0c, 0x38, 0x97, 0x47, 0x08, 0xbb, 0x25,
+ 0x78, 0xc3, 0x8f, 0x38, 0xfe, 0x73, 0x26, 0xf9, 0xec, 0x72, 0x5c, 0x14,
+ 0xe3, 0xd7, 0x55, 0x5b, 0x6c, 0xf5, 0x16, 0xb2, 0x15, 0xe7, 0x35, 0x54,
+ 0x45, 0xbb, 0x8a, 0x75, 0xeb, 0x84, 0xd5, 0xb7, 0xdd, 0xab, 0x65, 0xe9,
+ 0x82, 0x6f, 0x4e, 0xd7, 0x11, 0x99, 0x09, 0x83, 0x4c, 0x40, 0xd8, 0xde,
+ 0x8e, 0x6f, 0xfe, 0xd2, 0x78, 0x70, 0x17, 0x9d, 0x41, 0x0d, 0x50, 0xa2,
+ 0x6a, 0xe4, 0xcc, 0xb3, 0xf9, 0x34, 0x4a, 0x7f, 0x43, 0x2a, 0x48, 0x79,
+ 0x74, 0xbc, 0xe9, 0x3d, 0x48, 0x37, 0x76, 0xed, 0xd9, 0x7b, 0x80
};
static const UCHAR example_com_bad_not_before_der[] = {
@@ -373,13 +384,21 @@ USHORT backup;
EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
- /* Invalid time format. */
- backup = localtime_certificate.nx_secure_x509_validity_format;
- localtime_certificate.nx_secure_x509_validity_format = 0xff;
+ /* Invalid 'not before' time format. */
+ backup = localtime_certificate.nx_secure_x509_not_before_validity_format;
+ localtime_certificate.nx_secure_x509_not_before_validity_format = 0xff;
status = _nx_secure_x509_expiration_check(&localtime_certificate, 944878140);
- localtime_certificate.nx_secure_x509_validity_format = backup;
+ localtime_certificate.nx_secure_x509_not_before_validity_format = backup;
EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
+ /* Invalid 'not after' time format. */
+ backup = localtime_certificate.nx_secure_x509_not_after_validity_format;
+ localtime_certificate.nx_secure_x509_not_after_validity_format = 0xff;
+ status = _nx_secure_x509_expiration_check(&localtime_certificate, 944878140);
+ localtime_certificate.nx_secure_x509_not_after_validity_format = backup;
+ EXPECT_EQ(NX_SECURE_X509_INVALID_DATE_FORMAT, status);
+
+
printf("SUCCESS!\n");
test_control_return(0);
diff --git a/test/regression/nx_secure_test/nx_secure_x509_key_usage_test.c b/test/regression/nx_secure_test/nx_secure_x509_key_usage_test.c
index 712951c3..b7979a1a 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_key_usage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_key_usage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "nx_secure_tls_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_list_test.c b/test/regression/nx_secure_test/nx_secure_x509_list_test.c
index 26c3397f..2497a164 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_list_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_list_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_x509_name_check_test.c b/test/regression/nx_secure_test/nx_secure_x509_name_check_test.c
index 138e1578..42bfea30 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_name_check_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_name_check_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_parse_test.c b/test/regression/nx_secure_test/nx_secure_x509_parse_test.c
index 2b25a260..39070918 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_parse_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_parse_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c b/test/regression/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c
index 5a9827b6..c4c33f7c 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_pkcs7_decode_coverage_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
/* This test is to cover nx_secure_x509_pkcs7_decode.c. */
#include "tx_api.h"
diff --git a/test/regression/nx_secure_test/nx_secure_x509_store_test.c b/test/regression/nx_secure_test/nx_secure_x509_store_test.c
index fb1da2fe..a0b46e93 100644
--- a/test/regression/nx_secure_test/nx_secure_x509_store_test.c
+++ b/test/regression/nx_secure_test/nx_secure_x509_store_test.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#include <stdio.h>
diff --git a/test/regression/nx_secure_test/test_ca.crl.der.c b/test/regression/nx_secure_test/test_ca.crl.der.c
index 11bf8849..45cbd9e6 100644
--- a/test/regression/nx_secure_test/test_ca.crl.der.c
+++ b/test/regression/nx_secure_test/test_ca.crl.der.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
static unsigned char test_ca_crl_der[] = {
0x30, 0x82, 0x01, 0xdf, 0x30, 0x81, 0xc8, 0x02, 0x01, 0x01, 0x30, 0x0d,
0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x0b, 0x05,
diff --git a/test/regression/nx_secure_test/test_ca_cert.c b/test/regression/nx_secure_test/test_ca_cert.c
index 02ed1b48..d207af59 100644
--- a/test/regression/nx_secure_test/test_ca_cert.c
+++ b/test/regression/nx_secure_test/test_ca_cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
static unsigned char test_ca_cert_der[] = {
0x30, 0x82, 0x03, 0xc7, 0x30, 0x82, 0x02, 0xaf, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x09, 0x00, 0xa1, 0x79, 0xb0, 0x6a, 0x32, 0xbc, 0x48, 0x67,
diff --git a/test/regression/nx_secure_test/test_device_cert.c b/test/regression/nx_secure_test/test_device_cert.c
index bb21fb43..561be520 100644
--- a/test/regression/nx_secure_test/test_device_cert.c
+++ b/test/regression/nx_secure_test/test_device_cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
static unsigned char test_device_cert_der[] = {
0x30, 0x82, 0x03, 0xd2, 0x30, 0x82, 0x02, 0xba, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x01, 0x01, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
diff --git a/test/regression/nx_secure_test/tls_test_utility.h b/test/regression/nx_secure_test/tls_test_utility.h
index 0a6f2338..38a245a6 100644
--- a/test/regression/nx_secure_test/tls_test_utility.h
+++ b/test/regression/nx_secure_test/tls_test_utility.h
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
#ifndef __TLS_TEST_UTILITY_H
#define __TLS_TEST_UTILITY_H
diff --git a/test/regression/nx_secure_test/tls_two_test_certs.c b/test/regression/nx_secure_test/tls_two_test_certs.c
index 7a066f64..9c62ae1c 100644
--- a/test/regression/nx_secure_test/tls_two_test_certs.c
+++ b/test/regression/nx_secure_test/tls_two_test_certs.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
unsigned char ica_cert_der[] = {
0x30, 0x82, 0x03, 0xdf, 0x30, 0x82, 0x02, 0xc7, 0xa0, 0x03, 0x02, 0x01,
0x02, 0x02, 0x01, 0x02, 0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86,
diff --git a/test/regression/nx_secure_test/x509_version_1_ca_cert.c b/test/regression/nx_secure_test/x509_version_1_ca_cert.c
index 0a6fc4b9..07aae966 100644
--- a/test/regression/nx_secure_test/x509_version_1_ca_cert.c
+++ b/test/regression/nx_secure_test/x509_version_1_ca_cert.c
@@ -1,3 +1,14 @@
+/***************************************************************************/
+/* Copyright (c) 2024 Microsoft Corporation */
+/* Copyright (c) 2026 Eclipse ThreadX contributors */
+/* */
+/* This program and the accompanying materials are made available under */
+/* the terms of the MIT License which is available at */
+/* https://opensource.org/licenses/MIT. */
+/* */
+/* SPDX-License-Identifier: MIT */
+/***************************************************************************/
+
unsigned char x509_version_1_ca_cert_der[] = {
0x30, 0x82, 0x01, 0x82, 0x30, 0x82, 0x01, 0x2c, 0x02, 0x01, 0x04, 0x30,
0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x04,