/NetX-Duo-v6.4.1/nx_secure/src/ |
D | nx_secure_verify_mac.c | 79 …NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, UCHAR *mac_secret, ULONG sequence_num[NX_SECURE_TLS_S… in _nx_secure_verify_mac() 110 if ((sequence_num[0] + 1) == 0) in _nx_secure_verify_mac() 113 sequence_num[1]++; in _nx_secure_verify_mac() 115 if (sequence_num[1] == 0) in _nx_secure_verify_mac() 124 sequence_num[0]++; in _nx_secure_verify_mac() 148 _nx_secure_tls_hash_record(ciphersuite, sequence_num, header, header_length, in _nx_secure_verify_mac() 153 if ((sequence_num[0] + 1) == 0) in _nx_secure_verify_mac() 156 sequence_num[1]++; in _nx_secure_verify_mac() 158 if (sequence_num[1] == 0) in _nx_secure_verify_mac() 167 sequence_num[0]++; in _nx_secure_verify_mac()
|
D | nx_secure_tls_record_hash_initialize.c | 74 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_tls_record_hash_initialize() 112 adjusted_sequence_num[0] = (UCHAR)(sequence_num[1] >> 24); in _nx_secure_tls_record_hash_initialize() 113 adjusted_sequence_num[1] = (UCHAR)(sequence_num[1] >> 16); in _nx_secure_tls_record_hash_initialize() 114 adjusted_sequence_num[2] = (UCHAR)(sequence_num[1] >> 8); in _nx_secure_tls_record_hash_initialize() 115 adjusted_sequence_num[3] = (UCHAR)(sequence_num[1]); in _nx_secure_tls_record_hash_initialize() 116 adjusted_sequence_num[4] = (UCHAR)(sequence_num[0] >> 24); in _nx_secure_tls_record_hash_initialize() 117 adjusted_sequence_num[5] = (UCHAR)(sequence_num[0] >> 16); in _nx_secure_tls_record_hash_initialize() 118 adjusted_sequence_num[6] = (UCHAR)(sequence_num[0] >> 8); in _nx_secure_tls_record_hash_initialize() 119 adjusted_sequence_num[7] = (UCHAR)(sequence_num[0]); in _nx_secure_tls_record_hash_initialize()
|
D | nx_secure_tls_record_payload_encrypt.c | 27 … ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], 90 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_tls_record_payload_encrypt() 153 status = _nx_secure_tls_record_data_encrypt_init(tls_session, send_packet, sequence_num, in _nx_secure_tls_record_payload_encrypt() 428 … ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_tls_record_data_encrypt_init() 448 NX_PARAMETER_NOT_USED(sequence_num); in _nx_secure_tls_record_data_encrypt_init() 520 nonce[5] = (UCHAR)(nonce[5] ^ (sequence_num[1] >> 24)); in _nx_secure_tls_record_data_encrypt_init() 521 nonce[6] = (UCHAR)(nonce[6] ^ (sequence_num[1] >> 16)); in _nx_secure_tls_record_data_encrypt_init() 522 nonce[7] = (UCHAR)(nonce[7] ^ (sequence_num[1] >> 8)); in _nx_secure_tls_record_data_encrypt_init() 523 nonce[8] = (UCHAR)(nonce[8] ^ (sequence_num[1])); in _nx_secure_tls_record_data_encrypt_init() 524 nonce[9] = (UCHAR)(nonce[9] ^ (sequence_num[0] >> 24)); in _nx_secure_tls_record_data_encrypt_init() [all …]
|
D | nx_secure_tls_hash_record.c | 84 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_tls_hash_record() 115 adjusted_sequence_num[0] = (UCHAR)(sequence_num[1] >> 24); in _nx_secure_tls_hash_record() 116 adjusted_sequence_num[1] = (UCHAR)(sequence_num[1] >> 16); in _nx_secure_tls_hash_record() 117 adjusted_sequence_num[2] = (UCHAR)(sequence_num[1] >> 8); in _nx_secure_tls_hash_record() 118 adjusted_sequence_num[3] = (UCHAR)(sequence_num[1]); in _nx_secure_tls_hash_record() 119 adjusted_sequence_num[4] = (UCHAR)(sequence_num[0] >> 24); in _nx_secure_tls_hash_record() 120 adjusted_sequence_num[5] = (UCHAR)(sequence_num[0] >> 16); in _nx_secure_tls_hash_record() 121 adjusted_sequence_num[6] = (UCHAR)(sequence_num[0] >> 8); in _nx_secure_tls_hash_record() 122 adjusted_sequence_num[7] = (UCHAR)(sequence_num[0]); in _nx_secure_tls_hash_record()
|
D | nx_secure_tls_record_payload_decrypt.c | 110 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_tls_record_payload_decrypt() 127 NX_PARAMETER_NOT_USED(sequence_num); in _nx_secure_tls_record_payload_decrypt() 207 nonce[5] = (UCHAR)(nonce[5] ^ (sequence_num[1] >> 24)); in _nx_secure_tls_record_payload_decrypt() 208 nonce[6] = (UCHAR)(nonce[6] ^ (sequence_num[1] >> 16)); in _nx_secure_tls_record_payload_decrypt() 209 nonce[7] = (UCHAR)(nonce[7] ^ (sequence_num[1] >> 8)); in _nx_secure_tls_record_payload_decrypt() 210 nonce[8] = (UCHAR)(nonce[8] ^ (sequence_num[1])); in _nx_secure_tls_record_payload_decrypt() 211 nonce[9] = (UCHAR)(nonce[9] ^ (sequence_num[0] >> 24)); in _nx_secure_tls_record_payload_decrypt() 212 nonce[10] = (UCHAR)(nonce[10] ^ (sequence_num[0] >> 16)); in _nx_secure_tls_record_payload_decrypt() 213 nonce[11] = (UCHAR)(nonce[11] ^ (sequence_num[0] >> 8)); in _nx_secure_tls_record_payload_decrypt() 214 nonce[12] = (UCHAR)(nonce[12] ^ (sequence_num[0])); in _nx_secure_tls_record_payload_decrypt() [all …]
|
D | nx_secure_dtls_hash_record.c | 82 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], in _nx_secure_dtls_hash_record() 91 NX_PARAMETER_NOT_USED(sequence_num); in _nx_secure_dtls_hash_record()
|
/NetX-Duo-v6.4.1/test/regression/nx_secure_test/ |
D | nx_secure_tls_hash_record_coverage_test.c | 98 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE]; in TEST() local 122 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 127 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 131 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 135 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 139 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 143 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 149 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 154 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST() 158 …status = _nx_secure_tls_hash_record(&fake_tls_session_ciphersuite, sequence_num, NX_NULL, 0, packe… in TEST()
|
D | nx_secure_tls_record_decrypt_coverage_test.c | 163 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE] = {0}; in ntest_0_entry() local 209 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 214 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 223 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 231 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 242 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 252 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 260 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 264 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() 276 …tls_session, encrypt_packet, offset, message_length, &decrypt_packet, sequence_num, NX_SECURE_TLS_… in ntest_0_entry() [all …]
|
D | nx_secure_tls_record_encrypt_coverage_test.c | 150 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE] = {0}; in ntest_0_entry() local 191 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 200 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 205 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 215 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 219 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 229 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 233 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 243 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry() 247 …status = _nx_secure_tls_record_payload_encrypt(&client_tls_session, send_packet, sequence_num, NX_… in ntest_0_entry()
|
D | nx_secure_tls_coverage_test.c | 1386 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE]; in ntest_0_entry() local 1393 sequence_num[0] = 0; in ntest_0_entry() 1396 status = _nx_secure_tls_record_payload_encrypt(&server_tls_session, &_packet, sequence_num, 0); in ntest_0_entry()
|
/NetX-Duo-v6.4.1/common/src/ |
D | nx_icmpv4_process_echo_reply.c | 88 USHORT sequence_num; in _nx_icmpv4_process_echo_reply() local 107 sequence_num = echo_ptr -> nx_icmpv4_echo_sequence_num; in _nx_icmpv4_process_echo_reply() 110 NX_CHANGE_USHORT_ENDIAN(sequence_num); in _nx_icmpv4_process_echo_reply() 131 if ((USHORT)(thread_ptr -> tx_thread_suspend_info) == sequence_num) in _nx_icmpv4_process_echo_reply()
|
D | nx_icmpv6_process_echo_reply.c | 91 USHORT sequence_num; in _nx_icmpv6_process_echo_reply() local 164 sequence_num = echo_ptr -> nx_icmpv6_echo_sequence_num; in _nx_icmpv6_process_echo_reply() 167 NX_CHANGE_USHORT_ENDIAN(sequence_num); in _nx_icmpv6_process_echo_reply() 188 if (thread_ptr -> tx_thread_suspend_info == sequence_num) in _nx_icmpv6_process_echo_reply()
|
/NetX-Duo-v6.4.1/nx_secure/inc/ |
D | nx_secure_tls.h | 1435 …NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, UCHAR *mac_secret, ULONG sequence_num[NX_SECURE_TLS_S… 1525 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], 1578 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], 1585 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], 1589 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE], 1885 …NX_SECURE_TLS_CIPHERSUITE_INFO *ciphersuite, UCHAR *mac_secret, ULONG sequence_num[NX_SECURE_TLS_S…
|
D | nx_secure_dtls.h | 445 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE],
|