Home
last modified time | relevance | path

Searched refs:sequence_num (Results 1 – 14 of 14) sorted by relevance

/NetX-Duo-v6.4.1/nx_secure/src/
Dnx_secure_verify_mac.c79 …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()
Dnx_secure_tls_record_hash_initialize.c74 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()
Dnx_secure_tls_record_payload_encrypt.c27 … 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 …]
Dnx_secure_tls_hash_record.c84 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()
Dnx_secure_tls_record_payload_decrypt.c110 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 …]
Dnx_secure_dtls_hash_record.c82 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/
Dnx_secure_tls_hash_record_coverage_test.c98 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()
Dnx_secure_tls_record_decrypt_coverage_test.c163 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 …]
Dnx_secure_tls_record_encrypt_coverage_test.c150 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()
Dnx_secure_tls_coverage_test.c1386 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/
Dnx_icmpv4_process_echo_reply.c88 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()
Dnx_icmpv6_process_echo_reply.c91 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/
Dnx_secure_tls.h1435 …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…
Dnx_secure_dtls.h445 ULONG sequence_num[NX_SECURE_TLS_SEQUENCE_NUMBER_SIZE],