Home
last modified time | relevance | path

Searched refs:iv_size (Results 1 – 12 of 12) sorted by relevance

/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_session_iv_size_get.c74 UINT _nx_secure_tls_session_iv_size_get(NX_SECURE_TLS_SESSION *tls_session, USHORT *iv_size) in _nx_secure_tls_session_iv_size_get() argument
113 *iv_size = (session_cipher_method -> nx_crypto_IV_size_in_bits >> 3); in _nx_secure_tls_session_iv_size_get()
117 *iv_size = 0; in _nx_secure_tls_session_iv_size_get()
131 *iv_size = 0; in _nx_secure_tls_session_iv_size_get()
136 *iv_size = 8; in _nx_secure_tls_session_iv_size_get()
142 *iv_size = 0; in _nx_secure_tls_session_iv_size_get()
149 *iv_size = 0; in _nx_secure_tls_session_iv_size_get()
Dnx_secure_tls_packet_allocate.c86 USHORT iv_size; in _nx_secure_tls_packet_allocate() local
123 status = _nx_secure_tls_session_iv_size_get(tls_session, &iv_size); in _nx_secure_tls_packet_allocate()
134 …if ((iv_size + 2u) > ((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_p… in _nx_secure_tls_packet_allocate()
144 if (iv_size > 0) in _nx_secure_tls_packet_allocate()
147 NX_SECURE_MEMSET((*packet_ptr) -> nx_packet_prepend_ptr, 0, iv_size); in _nx_secure_tls_packet_allocate()
148 (*packet_ptr) -> nx_packet_prepend_ptr += iv_size; in _nx_secure_tls_packet_allocate()
Dnx_secure_dtls_packet_allocate.c83 USHORT iv_size; in _nx_secure_dtls_packet_allocate() local
124 status = _nx_secure_tls_session_iv_size_get(tls_session, &iv_size); in _nx_secure_dtls_packet_allocate()
131 …if ((iv_size + 2u) > ((ULONG)((*packet_ptr) -> nx_packet_data_end) - (ULONG)((*packet_ptr) -> nx_p… in _nx_secure_dtls_packet_allocate()
141 if (iv_size > 0) in _nx_secure_dtls_packet_allocate()
144 NX_SECURE_MEMSET((*packet_ptr) -> nx_packet_prepend_ptr, 0, iv_size); in _nx_secure_dtls_packet_allocate()
145 (*packet_ptr) -> nx_packet_prepend_ptr += iv_size; in _nx_secure_dtls_packet_allocate()
Dnx_secure_session_keys_set.c87 UINT iv_size; in _nx_secure_session_keys_set() local
109 iv_size = session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_session_keys_set()
114 if (((hash_size + key_size + iv_size) << 1) > key_material_data_size) in _nx_secure_session_keys_set()
167 if (iv_size > 0) in _nx_secure_session_keys_set()
173 …&tls_key_material -> nx_secure_tls_new_key_material_data[key_offset], iv_size); /* Use case of mem… in _nx_secure_session_keys_set()
176 key_offset += iv_size; in _nx_secure_session_keys_set()
182 …&tls_key_material -> nx_secure_tls_new_key_material_data[key_offset], iv_size); /* Use case of mem… in _nx_secure_session_keys_set()
Dnx_secure_tls_1_3_session_keys_set.c87 UINT iv_size; in _nx_secure_tls_1_3_session_keys_set() local
135 iv_size = 12; //session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_1_3_session_keys_set()
154 if (iv_size > 0) in _nx_secure_tls_1_3_session_keys_set()
160 …tls_session -> nx_secure_tls_key_material.nx_secure_tls_client_next_iv, iv_size); /* Use case of m… in _nx_secure_tls_1_3_session_keys_set()
165 …tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_next_iv, iv_size); /* Use case of m… in _nx_secure_tls_1_3_session_keys_set()
Dnx_secure_tls_send_record.c113 USHORT iv_size = 0; in _nx_secure_tls_send_record() local
152 status = _nx_secure_tls_session_iv_size_get(tls_session, &iv_size); in _nx_secure_tls_send_record()
161 … if ((ULONG)(send_packet -> nx_packet_prepend_ptr - send_packet -> nx_packet_data_start) < iv_size) in _nx_secure_tls_send_record()
171 send_packet -> nx_packet_prepend_ptr -= iv_size; in _nx_secure_tls_send_record()
172 send_packet -> nx_packet_length += iv_size; in _nx_secure_tls_send_record()
268 hash_data = current_packet -> nx_packet_prepend_ptr + iv_size; in _nx_secure_tls_send_record()
269 …ULONG)(current_packet -> nx_packet_append_ptr - current_packet -> nx_packet_prepend_ptr) - iv_size; in _nx_secure_tls_send_record()
Dnx_secure_tls_record_payload_encrypt.c98 USHORT iv_size; in _nx_secure_tls_record_payload_encrypt() local
149 iv_size = session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_record_payload_encrypt()
152 NX_ASSERT((iv_size <= NX_SECURE_TLS_MAX_CIPHER_BLOCK_SIZE) && in _nx_secure_tls_record_payload_encrypt()
206 … &current_packet -> nx_packet_prepend_ptr[current_length + data_offset - iv_size], /* lgtm[cpp/ba… in _nx_secure_tls_record_payload_encrypt()
207 iv_size); /* Use case of memcpy is verified. */ in _nx_secure_tls_record_payload_encrypt()
312 …NX_SECURE_MEMCPY(iv, &_nx_secure_tls_record_block_buffer, iv_size); /* Use case of memcpy is verif… in _nx_secure_tls_record_payload_encrypt()
438 USHORT iv_size; in _nx_secure_tls_record_data_encrypt_init() local
630 iv_size = session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_record_data_encrypt_init()
649 …if (iv_size > ((ULONG)(send_packet -> nx_packet_data_end) - (ULONG)(send_packet -> nx_packet_prepe… in _nx_secure_tls_record_data_encrypt_init()
658 …NX_SECURE_MEMCPY(send_packet -> nx_packet_prepend_ptr, iv, iv_size); /* Use case of memcpy is veri… in _nx_secure_tls_record_data_encrypt_init()
[all …]
Dnx_secure_generate_session_keys.c88 UINT iv_size; in _nx_secure_generate_session_keys() local
112 iv_size = session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_generate_session_keys()
117 key_block_size = 2 * (key_size + hash_size + iv_size); in _nx_secure_generate_session_keys()
Dnx_secure_tls_record_payload_decrypt.c119 USHORT iv_size; in _nx_secure_tls_record_payload_decrypt() local
145 iv_size = session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_record_payload_decrypt()
352 if ((iv_size > message_length) || in _nx_secure_tls_record_payload_decrypt()
353 (iv_size > sizeof(save_iv))) in _nx_secure_tls_record_payload_decrypt()
355 if (iv_size > message_length) in _nx_secure_tls_record_payload_decrypt()
370 iv, iv_size, &bytes_copied); in _nx_secure_tls_record_payload_decrypt()
371 if (status || (bytes_copied != iv_size)) in _nx_secure_tls_record_payload_decrypt()
375 offset += iv_size; in _nx_secure_tls_record_payload_decrypt()
378 message_length -= iv_size; in _nx_secure_tls_record_payload_decrypt()
405 … status = nx_packet_data_extract_offset(encrypted_packet, (offset + message_length) - iv_size, in _nx_secure_tls_record_payload_decrypt()
[all …]
Dnx_secure_dtls_send_record.c104 USHORT iv_size; in _nx_secure_dtls_send_record() local
126 status = _nx_secure_tls_session_iv_size_get(tls_session, &iv_size); in _nx_secure_dtls_send_record()
135 send_packet -> nx_packet_prepend_ptr -= iv_size; in _nx_secure_dtls_send_record()
136 send_packet -> nx_packet_length += iv_size; in _nx_secure_dtls_send_record()
Dnx_secure_tls_1_3_generate_keys.c219 UINT iv_size; in _nx_secure_tls_1_3_generate_handshake_keys() local
271 iv_size = 12; // session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_1_3_generate_handshake_keys()
301 (UCHAR *)"iv", 2, (UCHAR *)"", 0, iv_size, in _nx_secure_tls_1_3_generate_handshake_keys()
311 key_offset += iv_size; in _nx_secure_tls_1_3_generate_handshake_keys()
329 (UCHAR *)"iv", 2, (UCHAR *)"", 0, iv_size, in _nx_secure_tls_1_3_generate_handshake_keys()
339 key_offset += iv_size; in _nx_secure_tls_1_3_generate_handshake_keys()
486 UINT iv_size; in _nx_secure_tls_1_3_generate_session_keys() local
539 iv_size = 12; // session_cipher_method -> nx_crypto_IV_size_in_bits >> 3; in _nx_secure_tls_1_3_generate_session_keys()
572 (UCHAR *)"iv", 2, (UCHAR *)"", 0, iv_size, in _nx_secure_tls_1_3_generate_session_keys()
582 key_offset += iv_size; in _nx_secure_tls_1_3_generate_session_keys()
[all …]
/NetX-Duo-v6.2.1/nx_secure/inc/
Dnx_secure_tls.h1622 UINT _nx_secure_tls_session_iv_size_get(NX_SECURE_TLS_SESSION *tls_session, USHORT *iv_size);