Home
last modified time | relevance | path

Searched refs:length (Results 1 – 25 of 215) sorted by relevance

123456789

/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_send_certificate_request.c77 UINT length; in _nx_secure_tls_send_certificate_request() local
101 length = 0; in _nx_secure_tls_send_certificate_request()
109 packet_buffer[length] = 0; in _nx_secure_tls_send_certificate_request()
110 length++; in _nx_secure_tls_send_certificate_request()
113 ext_len_pos = length; in _nx_secure_tls_send_certificate_request()
114 length += 2; in _nx_secure_tls_send_certificate_request()
117 packet_buffer[length] = (UCHAR)(NX_SECURE_TLS_EXTENSION_SIGNATURE_ALGORITHMS >> 8); in _nx_secure_tls_send_certificate_request()
118 packet_buffer[length + 1] = (UCHAR)(NX_SECURE_TLS_EXTENSION_SIGNATURE_ALGORITHMS); in _nx_secure_tls_send_certificate_request()
119 length += 2; in _nx_secure_tls_send_certificate_request()
122 length += 2; in _nx_secure_tls_send_certificate_request()
[all …]
Dnx_secure_tls_send_newsessionticket.c74 UINT length; in _nx_secure_tls_send_newsessionticket() local
156 length = 0; in _nx_secure_tls_send_newsessionticket()
161 packet_buffer[length] = (UCHAR)((lifetime & 0xFF000000) >> 24); in _nx_secure_tls_send_newsessionticket()
162 packet_buffer[length + 1] = (UCHAR)((lifetime & 0x00FF0000) >> 16); in _nx_secure_tls_send_newsessionticket()
163 packet_buffer[length + 2] = (UCHAR)((lifetime & 0x0000FF00) >> 8); in _nx_secure_tls_send_newsessionticket()
164 packet_buffer[length + 3] = (UCHAR) (lifetime & 0x000000FF); in _nx_secure_tls_send_newsessionticket()
165 length += 4; in _nx_secure_tls_send_newsessionticket()
169 packet_buffer[length] = (UCHAR)((age_add & 0xFF000000) >> 24); in _nx_secure_tls_send_newsessionticket()
170 packet_buffer[length + 1] = (UCHAR)((age_add & 0x00FF0000) >> 16); in _nx_secure_tls_send_newsessionticket()
171 packet_buffer[length + 2] = (UCHAR)((age_add & 0x0000FF00) >> 8); in _nx_secure_tls_send_newsessionticket()
[all …]
Dnx_secure_tls_process_certificate_request.c86 UINT length; in _nx_secure_tls_process_certificate_request() local
112 length = 0; in _nx_secure_tls_process_certificate_request()
197 length = length + 1 + packet_buffer[length]; in _nx_secure_tls_process_certificate_request()
199 extension_total_length = (UINT)((packet_buffer[length] << 8) + packet_buffer[length + 1]); in _nx_secure_tls_process_certificate_request()
200 length += 2; in _nx_secure_tls_process_certificate_request()
203 if ((length + extension_total_length) > message_length) in _nx_secure_tls_process_certificate_request()
210 while (length < message_length) in _nx_secure_tls_process_certificate_request()
212 extension_type = (UINT)((packet_buffer[length] << 8) + packet_buffer[length + 1]); in _nx_secure_tls_process_certificate_request()
213 length += 2; in _nx_secure_tls_process_certificate_request()
215 extension_length = (UINT)((packet_buffer[length] << 8) + packet_buffer[length + 1]); in _nx_secure_tls_process_certificate_request()
[all …]
Dnx_secure_dtls_send_serverhello.c75 UINT length; in _nx_secure_dtls_send_serverhello() local
115 length = 0; in _nx_secure_dtls_send_serverhello()
121 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_serverhello()
122 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_serverhello()
123 length += 2; in _nx_secure_dtls_send_serverhello()
146 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_key_material.nx_secure_tls_s… in _nx_secure_dtls_send_serverhello()
148 length += sizeof(tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_random); in _nx_secure_dtls_send_serverhello()
151 packet_buffer[length] = tls_session -> nx_secure_tls_session_id_length; in _nx_secure_dtls_send_serverhello()
152 length++; in _nx_secure_dtls_send_serverhello()
157 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_session_id, tls_session -> n… in _nx_secure_dtls_send_serverhello()
[all …]
Dnx_secure_dtls_send_clienthello.c90 ULONG length; in _nx_secure_dtls_send_clienthello() local
162 length = send_packet -> nx_packet_length - (NX_SECURE_DTLS_RECORD_HEADER_SIZE + in _nx_secure_dtls_send_clienthello()
181 length += dtls_session -> nx_secure_dtls_cookie_length; in _nx_secure_dtls_send_clienthello()
185 send_packet -> nx_packet_append_ptr = send_packet -> nx_packet_prepend_ptr + length; in _nx_secure_dtls_send_clienthello()
186 send_packet -> nx_packet_length = length; in _nx_secure_dtls_send_clienthello()
192 length = 0; in _nx_secure_dtls_send_clienthello()
194 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_clienthello()
195 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_clienthello()
196 length += 2; in _nx_secure_dtls_send_clienthello()
219 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_key_material.nx_secure_tls_c… in _nx_secure_dtls_send_clienthello()
[all …]
Dnx_secure_tls_send_clienthello.c93 ULONG length; in _nx_secure_tls_send_clienthello() local
126 length = 0; in _nx_secure_tls_send_clienthello()
172 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_tls_send_clienthello()
173 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_tls_send_clienthello()
175 length += 2; in _nx_secure_tls_send_clienthello()
189 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_key_material.nx_secure_tls_c… in _nx_secure_tls_send_clienthello()
207 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_key_material.nx_secure_tls_c… in _nx_secure_tls_send_clienthello()
210 length += sizeof(tls_session -> nx_secure_tls_key_material.nx_secure_tls_client_random); in _nx_secure_tls_send_clienthello()
214 packet_buffer[length] = tls_session -> nx_secure_tls_session_id_length; in _nx_secure_tls_send_clienthello()
215 length++; in _nx_secure_tls_send_clienthello()
[all …]
Dnx_secure_tls_process_serverhello.c92 UINT length; in _nx_secure_tls_process_serverhello() local
121 length = 0; in _nx_secure_tls_process_serverhello()
134 version = (USHORT)((packet_buffer[length] << 8) + packet_buffer[length + 1]); in _nx_secure_tls_process_serverhello()
135 length += 2; in _nx_secure_tls_process_serverhello()
149 …(NX_SECURE_MEMCMP(_nx_secure_tls_hello_retry_request_random, &packet_buffer[length], NX_SECURE_TLS… in _nx_secure_tls_process_serverhello()
169 …x_secure_tls_key_material.nx_secure_tls_server_random[0], &packet_buffer[length], NX_SECURE_TLS_RA… in _nx_secure_tls_process_serverhello()
171 length += NX_SECURE_TLS_RANDOM_SIZE; in _nx_secure_tls_process_serverhello()
174 tls_session -> nx_secure_tls_session_id_length = packet_buffer[length]; in _nx_secure_tls_process_serverhello()
175 length++; in _nx_secure_tls_process_serverhello()
177 if ((length + tls_session -> nx_secure_tls_session_id_length) > message_length) in _nx_secure_tls_process_serverhello()
[all …]
Dnx_secure_tls_send_serverhello.c97 ULONG length; in _nx_secure_tls_send_serverhello() local
125 length = 0; in _nx_secure_tls_send_serverhello()
130 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_tls_send_serverhello()
131 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_tls_send_serverhello()
132 length += 2; in _nx_secure_tls_send_serverhello()
195 …NX_SECURE_MEMCPY(&packet_buffer[length], tls_session -> nx_secure_tls_key_material.nx_secure_tls_s… in _nx_secure_tls_send_serverhello()
197 length += sizeof(tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_random); in _nx_secure_tls_send_serverhello()
206 packet_buffer[length] = tls_session->nx_secure_tls_session_id_length; in _nx_secure_tls_send_serverhello()
207 length++; in _nx_secure_tls_send_serverhello()
209 if ((length + tls_session->nx_secure_tls_session_id_length + 3) > in _nx_secure_tls_send_serverhello()
[all …]
Dnx_secure_generate_server_key_exchange.c89 UINT length; in _nx_secure_generate_server_key_exchange() local
134 length = 0; in _nx_secure_generate_server_key_exchange()
159 data_buffer[length] = (UCHAR)((identity_length & 0xFF00) >> 8); in _nx_secure_generate_server_key_exchange()
160 data_buffer[length + 1] = (UCHAR)(identity_length & 0x00FF); in _nx_secure_generate_server_key_exchange()
161 length = (USHORT)(length + 2); in _nx_secure_generate_server_key_exchange()
164 …NX_SECURE_MEMCPY(&data_buffer[length], identity, identity_length); /* Use case of memcpy is verifi… in _nx_secure_generate_server_key_exchange()
167 length = (USHORT)(length + identity_length); in _nx_secure_generate_server_key_exchange()
185 data_buffer[length] = NX_CRYPTO_EC_CURVE_TYPE_NAMED_CURVE; in _nx_secure_generate_server_key_exchange()
186 length += 1; in _nx_secure_generate_server_key_exchange()
190 data_buffer[length] = (UCHAR)((named_curve >> 8) & 0xFF); in _nx_secure_generate_server_key_exchange()
[all …]
Dnx_secure_tls_send_handshake_record.c84 ULONG length; in _nx_secure_tls_send_handshake_record() local
95 length = send_packet -> nx_packet_length; in _nx_secure_tls_send_handshake_record()
110 packet_buffer[1] = (UCHAR)((length & 0xFF0000) >> 16); in _nx_secure_tls_send_handshake_record()
111 packet_buffer[2] = (UCHAR)((length & 0xFF00) >> 8); in _nx_secure_tls_send_handshake_record()
112 packet_buffer[3] = (UCHAR)(length & 0xFF); in _nx_secure_tls_send_handshake_record()
115 length = length + (USHORT)NX_SECURE_TLS_HANDSHAKE_HEADER_SIZE; in _nx_secure_tls_send_handshake_record()
129length = (ULONG)(current_packet -> nx_packet_append_ptr - current_packet -> nx_packet_prepend_ptr); in _nx_secure_tls_send_handshake_record()
141 … current_packet -> nx_packet_prepend_ptr, (UINT)length); /* Use case of memcpy is verified. */ in _nx_secure_tls_send_handshake_record()
144 buffer_offset += (UINT)length; in _nx_secure_tls_send_handshake_record()
145 … tls_session->nx_secure_tls_key_material.nx_secure_tls_handshake_cache_length += (UINT)length; in _nx_secure_tls_send_handshake_record()
[all …]
Dnx_secure_x509.c26 static UINT _nx_secure_x509_parse_cert_data(const UCHAR *buffer, ULONG length,
28 static UINT _nx_secure_x509_parse_version(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
30 static UINT _nx_secure_x509_parse_serial_num(const UCHAR *buffer, ULONG length,
32 static UINT _nx_secure_x509_parse_signature_algorithm(const UCHAR *buffer, ULONG length,
35 static UINT _nx_secure_x509_parse_issuer(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
37 static UINT _nx_secure_x509_parse_validity(const UCHAR *buffer, ULONG length,
39 static UINT _nx_secure_x509_parse_subject(const UCHAR *buffer, ULONG length, UINT *bytes_processed,
41 static UINT _nx_secure_x509_parse_public_key(const UCHAR *buffer, ULONG length,
43 static UINT _nx_secure_x509_parse_unique_ids(const UCHAR *buffer, ULONG length,
45 static UINT _nx_secure_x509_parse_extensions(const UCHAR *buffer, ULONG length,
[all …]
Dnx_secure_dtls_send_helloverifyrequest.c72 UINT length; in _nx_secure_dtls_send_helloverifyrequest() local
93 length = 0; in _nx_secure_dtls_send_helloverifyrequest()
101 packet_buffer[length] = (UCHAR)((protocol_version & 0xFF00) >> 8); in _nx_secure_dtls_send_helloverifyrequest()
102 packet_buffer[length + 1] = (UCHAR)(protocol_version & 0x00FF); in _nx_secure_dtls_send_helloverifyrequest()
103 length += 2; in _nx_secure_dtls_send_helloverifyrequest()
107 packet_buffer[length] = (UCHAR)(dtls_session -> nx_secure_dtls_cookie_length); in _nx_secure_dtls_send_helloverifyrequest()
108 length += 1; in _nx_secure_dtls_send_helloverifyrequest()
127 …NX_SECURE_MEMCPY(&packet_buffer[length], dtls_session -> nx_secure_dtls_cookie, dtls_session -> nx… in _nx_secure_dtls_send_helloverifyrequest()
128 length += dtls_session -> nx_secure_dtls_cookie_length; in _nx_secure_dtls_send_helloverifyrequest()
131 send_packet -> nx_packet_append_ptr = send_packet -> nx_packet_append_ptr + length; in _nx_secure_dtls_send_helloverifyrequest()
[all …]
Dnx_secure_tls_process_clienthello.c113 UINT length; in _nx_secure_tls_process_clienthello() local
154 length = 0; in _nx_secure_tls_process_clienthello()
221 protocol_version = (USHORT)((packet_buffer[length] << 8) | packet_buffer[length + 1]); in _nx_secure_tls_process_clienthello()
222 length += 2; in _nx_secure_tls_process_clienthello()
262 …> nx_secure_tls_key_material.nx_secure_tls_client_random, &packet_buffer[length], NX_SECURE_TLS_RA… in _nx_secure_tls_process_clienthello()
263 length += NX_SECURE_TLS_RANDOM_SIZE; in _nx_secure_tls_process_clienthello()
266 session_id_length = packet_buffer[length]; in _nx_secure_tls_process_clienthello()
267 length++; in _nx_secure_tls_process_clienthello()
269 if ((length + session_id_length) > message_length) in _nx_secure_tls_process_clienthello()
278 …NX_SECURE_MEMCPY(tls_session -> nx_secure_tls_session_id, &packet_buffer[length], session_id_lengt… in _nx_secure_tls_process_clienthello()
[all …]
Dnx_secure_x509_asn1_tlv_block_parse.c134 ULONG length; in _nx_secure_x509_asn1_tlv_block_parse() local
194 length = buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
200 if (length & 0x80) in _nx_secure_x509_asn1_tlv_block_parse()
208 length_bytes = length & 0x7F; in _nx_secure_x509_asn1_tlv_block_parse()
209 length = 0; in _nx_secure_x509_asn1_tlv_block_parse()
225 length <<= 8; in _nx_secure_x509_asn1_tlv_block_parse()
226 length += buffer[current_index]; in _nx_secure_x509_asn1_tlv_block_parse()
237 *tlv_length = length; in _nx_secure_x509_asn1_tlv_block_parse()
240 if (length > *buffer_length) in _nx_secure_x509_asn1_tlv_block_parse()
245 *buffer_length = *buffer_length - length; in _nx_secure_x509_asn1_tlv_block_parse()
[all …]
Dnx_secure_x509_certificate_revocation_list_parse.c28 static UINT _nx_secure_x509_crl_tbscert_list_parse(const UCHAR *buffer, ULONG length,
30 static UINT _nx_secure_x509_crl_signature_algorithm_parse(const UCHAR *buffer, ULONG length,
33 static UINT _nx_secure_x509_crl_signature_data_parse(const UCHAR *buffer, ULONG length,
35 static UINT _nx_secure_x509_crl_version_parse(const UCHAR *buffer, ULONG length, UINT *bytes_proces…
37 static UINT _nx_secure_x509_crl_issuer_parse(const UCHAR *buffer, ULONG length, UINT *bytes_process…
39 static UINT _nx_secure_x509_crl_update_times_parse(const UCHAR *buffer, ULONG length,
41 static UINT _nx_secure_x509_crl_revoked_certs_list_parse(const UCHAR *buffer, ULONG length,
44 static UINT _nx_secure_x509_crl_extensions_parse(const UCHAR *buffer, ULONG length,
101 UINT _nx_secure_x509_certificate_revocation_list_parse(const UCHAR *buffer, UINT length, in _nx_secure_x509_certificate_revocation_list_parse() argument
165 …status = _nx_secure_x509_asn1_tlv_block_parse(buffer, (ULONG *)&length, &tlv_type, &tlv_type_class… in _nx_secure_x509_certificate_revocation_list_parse()
[all …]
Dnx_secure_dtls_send_handshake_record.c84 ULONG length; in _nx_secure_dtls_send_handshake_record() local
98 length = send_packet -> nx_packet_length; in _nx_secure_dtls_send_handshake_record()
106 fragment_length = length; in _nx_secure_dtls_send_handshake_record()
113 packet_buffer[1] = (UCHAR)((length & 0xFF0000) >> 16); in _nx_secure_dtls_send_handshake_record()
114 packet_buffer[2] = (UCHAR)((length & 0xFF00) >> 8); in _nx_secure_dtls_send_handshake_record()
115 packet_buffer[3] = (UCHAR)(length & 0xFF); in _nx_secure_dtls_send_handshake_record()
118 length = length + (USHORT)NX_SECURE_DTLS_HANDSHAKE_HEADER_SIZE; in _nx_secure_dtls_send_handshake_record()
151length = (ULONG)(current_packet -> nx_packet_append_ptr - current_packet -> nx_packet_prepend_ptr); in _nx_secure_dtls_send_handshake_record()
153 (UINT)length); in _nx_secure_dtls_send_handshake_record()
Dnx_secure_tls_process_remote_certificate.c102 UINT length; in _nx_secure_tls_process_remote_certificate() local
155 length = 0; in _nx_secure_tls_process_remote_certificate()
173 length = length + 3; in _nx_secure_tls_process_remote_certificate()
192 …cert_length = (UINT)((packet_buffer[length] << 16) + (packet_buffer[length + 1] << 8) + packet_buf… in _nx_secure_tls_process_remote_certificate()
193 length = length + 3; in _nx_secure_tls_process_remote_certificate()
225 certificate -> nx_secure_x509_certificate_raw_data = &packet_buffer[length]; in _nx_secure_tls_process_remote_certificate()
239 …EMCPY(certificate -> nx_secure_x509_certificate_raw_data, &packet_buffer[length], cert_length); /*… in _nx_secure_tls_process_remote_certificate()
241 length += cert_length; in _nx_secure_tls_process_remote_certificate()
269 extensions_length = (UINT)((packet_buffer[length] << 8) + packet_buffer[length + 1]); in _nx_secure_tls_process_remote_certificate()
272 length += 2; in _nx_secure_tls_process_remote_certificate()
[all …]
Dnx_secure_x509_crl_revocation_check.c28 static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, UINT *bytes_processe…
115 UINT length; in _nx_secure_x509_crl_revocation_check() local
181 length = crl.nx_secure_x509_crl_revoked_certs_length; in _nx_secure_x509_crl_revocation_check()
183 while (length > 0) in _nx_secure_x509_crl_revocation_check()
186 …status = _nx_secure_x509_crl_parse_entry(current_buffer, length, &bytes_processed, &serial_number,… in _nx_secure_x509_crl_revocation_check()
194 NX_ASSERT(bytes_processed <= length); in _nx_secure_x509_crl_revocation_check()
208 length -= bytes_processed; in _nx_secure_x509_crl_revocation_check()
276 static UINT _nx_secure_x509_crl_parse_entry(const UCHAR *buffer, ULONG length, UINT *bytes_processe… in _nx_secure_x509_crl_parse_entry() argument
293 …status = _nx_secure_x509_asn1_tlv_block_parse(current_buffer, &length, &tlv_type, &tlv_type_class,… in _nx_secure_x509_crl_parse_entry()
308 length = tlv_length; in _nx_secure_x509_crl_parse_entry()
[all …]
Dnx_secure_dtls_process_helloverifyrequest.c76 UINT length; in _nx_secure_dtls_process_helloverifyrequest() local
86 length = 0; in _nx_secure_dtls_process_helloverifyrequest()
89 length += 2; in _nx_secure_dtls_process_helloverifyrequest()
92 dtls_session -> nx_secure_dtls_cookie_length = packet_buffer[length]; in _nx_secure_dtls_process_helloverifyrequest()
93 length += 1; in _nx_secure_dtls_process_helloverifyrequest()
108 dtls_session -> nx_secure_dtls_client_cookie_ptr = &packet_buffer[length]; in _nx_secure_dtls_process_helloverifyrequest()
Dnx_secure_tls_ecc_generate_keys.c130 UINT length; in _nx_secure_tls_ecc_generate_keys() local
228 length = 0; in _nx_secure_tls_ecc_generate_keys()
237 public_key[length] = 3; in _nx_secure_tls_ecc_generate_keys()
238 length += 1; in _nx_secure_tls_ecc_generate_keys()
241 public_key[length] = (UCHAR)((ecc_data -> nx_secure_tls_ecdhe_named_curve & 0xFF00) >> 8); in _nx_secure_tls_ecc_generate_keys()
242 public_key[length + 1] = (UCHAR)(ecc_data -> nx_secure_tls_ecdhe_named_curve & 0x00FF); in _nx_secure_tls_ecc_generate_keys()
243 length += 2; in _nx_secure_tls_ecc_generate_keys()
251 extended_output.nx_crypto_extended_output_data = &public_key[length]; in _nx_secure_tls_ecc_generate_keys()
252 extended_output.nx_crypto_extended_output_length_in_byte = output_size - length; in _nx_secure_tls_ecc_generate_keys()
257 extended_output.nx_crypto_extended_output_data = &public_key[length + 1]; in _nx_secure_tls_ecc_generate_keys()
[all …]
Dnx_secure_tls_send_certificate_verify.c117 UINT length = 0; in _nx_secure_tls_send_certificate_verify() local
543 length = 0; in _nx_secure_tls_send_certificate_verify()
558 …current_buffer[length] = NX_SECURE_TLS_HASH_ALGORITHM_SHA256; /* We only support SHA-256 rig… in _nx_secure_tls_send_certificate_verify()
559 current_buffer[length + 1] = NX_SECURE_TLS_SIGNATURE_ALGORITHM_RSA; /* RSA */ in _nx_secure_tls_send_certificate_verify()
560 length += 2; in _nx_secure_tls_send_certificate_verify()
563 current_buffer[length] = (UCHAR)(data_size >> 8); in _nx_secure_tls_send_certificate_verify()
564 current_buffer[length + 1] = (UCHAR)(data_size); in _nx_secure_tls_send_certificate_verify()
565 length += 2; in _nx_secure_tls_send_certificate_verify()
603 current_buffer[length] = (UCHAR)(data_size >> 8); in _nx_secure_tls_send_certificate_verify()
604 current_buffer[length + 1] = (UCHAR)(data_size); in _nx_secure_tls_send_certificate_verify()
[all …]
/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_tls_verify_mac_coverage_test.c51 UINT length = 0; in TEST() local
62 length = 0; in TEST()
68 …tatus = _nx_secure_tls_verify_mac(&client_tls_session, receive_buffer, 0, send_packet, 0, &length); in TEST()
83 length = hash_size; in TEST()
84 …tatus = _nx_secure_tls_verify_mac(&client_tls_session, receive_buffer, 0, send_packet, 0, &length); in TEST()
88 length = 0; in TEST()
89 …tatus = _nx_secure_tls_verify_mac(&client_tls_session, receive_buffer, 0, send_packet, 0, &length); in TEST()
93 length = hash_size; in TEST()
94 …tatus = _nx_secure_tls_verify_mac(&client_tls_session, receive_buffer, 0, send_packet, 0, &length); in TEST()
97 length = 1; in TEST()
[all …]
/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_gcm.c370 … UCHAR *input, UCHAR *output, UINT length, UCHAR *counter_block) in _nx_crypto_gcm_gctr() argument
375 n = length >> NX_CRYPTO_GCM_BLOCK_SIZE_SHIFT; in _nx_crypto_gcm_gctr()
393 length -= n << NX_CRYPTO_GCM_BLOCK_SIZE_SHIFT; in _nx_crypto_gcm_gctr()
394 if (length > 0) in _nx_crypto_gcm_gctr()
401 NX_CRYPTO_MEMCPY(output, aes_output, length); /* Use case of memcpy is verified. */ in _nx_crypto_gcm_gctr()
573 UCHAR *input, UCHAR *output, UINT length, in _nx_crypto_gcm_encrypt_update() argument
587 _nx_crypto_gcm_gctr(crypto_metadata, crypto_function, input, output, length, counter); in _nx_crypto_gcm_encrypt_update()
590 _nx_crypto_gcm_ghash_update(hkey, output, length, s); in _nx_crypto_gcm_encrypt_update()
592 gcm_metadata -> nx_crypto_gcm_input_total_length += length; in _nx_crypto_gcm_encrypt_update()
652 UINT length; in _nx_crypto_gcm_encrypt_calculate() local
[all …]
/NetX-Duo-v6.2.1/common/src/
Dnxd_ipv6_find_max_prefix_length.c74 UINT length = 0; in _nxd_ipv6_find_max_prefix_length() local
81 length += 32; in _nxd_ipv6_find_max_prefix_length()
84 else if (length + 31 < max_length) in _nxd_ipv6_find_max_prefix_length()
100 length += (32 - bit); in _nxd_ipv6_find_max_prefix_length()
105 length += (31 - bit); in _nxd_ipv6_find_max_prefix_length()
118 return(length); in _nxd_ipv6_find_max_prefix_length()
/NetX-Duo-v6.2.1/utility/iperf/
Dnx_iperf.c2216 UINT length = 0; in nx_iperf_get_ip_addr_string() local
2228length += _nx_utility_uint_to_string((UINT)ip_address -> nxd_ip_address.v6[i] >> 16, 16, &device_i… in nx_iperf_get_ip_addr_string()
2229 device_ip_addr_string[length++] = ':'; in nx_iperf_get_ip_addr_string()
2230length += _nx_utility_uint_to_string((UINT)ip_address -> nxd_ip_address.v6[i] & 0xFFFF, 16, &devic… in nx_iperf_get_ip_addr_string()
2233 device_ip_addr_string[length++] = ':'; in nx_iperf_get_ip_addr_string()
2241length = _nx_utility_uint_to_string(ip_address -> nxd_ip_address.v4 >> 24, 10, device_ip_addr_stri… in nx_iperf_get_ip_addr_string()
2242 device_ip_addr_string[length++] = '.'; in nx_iperf_get_ip_addr_string()
2243length += _nx_utility_uint_to_string(((ip_address -> nxd_ip_address.v4 >> 16) & 0xFF), 10, &device… in nx_iperf_get_ip_addr_string()
2244 device_ip_addr_string[length++] = '.'; in nx_iperf_get_ip_addr_string()
2245length += _nx_utility_uint_to_string(((ip_address -> nxd_ip_address.v4 >> 8) & 0xFF), 10, &device_… in nx_iperf_get_ip_addr_string()
[all …]

123456789