Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 18 of 18) sorted by relevance

/NetX-Duo-v6.2.1/nx_secure/src/
Dnx_secure_tls_record_payload_encrypt.c442 UCHAR nonce[13]; in _nx_secure_tls_record_data_encrypt_init() local
509 nonce[0] = 12; in _nx_secure_tls_record_data_encrypt_init()
512 NX_SECURE_MEMCPY(&nonce[1], iv, 12); /* Use case of memcpy is verified. */ in _nx_secure_tls_record_data_encrypt_init()
516 nonce[1] = (UCHAR)(nonce[1] ^ 0); in _nx_secure_tls_record_data_encrypt_init()
517 nonce[2] = (UCHAR)(nonce[2] ^ 0); in _nx_secure_tls_record_data_encrypt_init()
518 nonce[3] = (UCHAR)(nonce[3] ^ 0); in _nx_secure_tls_record_data_encrypt_init()
519 nonce[4] = (UCHAR)(nonce[4] ^ 0); 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()
[all …]
Dnx_secure_tls_record_payload_decrypt.c125 UCHAR nonce[13]; in _nx_secure_tls_record_payload_decrypt() local
196 nonce[0] = 12; in _nx_secure_tls_record_payload_decrypt()
199 NX_SECURE_MEMCPY(&nonce[1], iv, 12); /* Use case of memcpy is verified. */ in _nx_secure_tls_record_payload_decrypt()
203 nonce[1] = (UCHAR)(nonce[1] ^ 0); in _nx_secure_tls_record_payload_decrypt()
204 nonce[2] = (UCHAR)(nonce[2] ^ 0); in _nx_secure_tls_record_payload_decrypt()
205 nonce[3] = (UCHAR)(nonce[3] ^ 0); in _nx_secure_tls_record_payload_decrypt()
206 nonce[4] = (UCHAR)(nonce[4] ^ 0); 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()
[all …]
Dnx_secure_tls_send_newsessionticket.c77 UINT nonce; in _nx_secure_tls_send_newsessionticket() local
177 nonce = (UINT)NX_RAND(); in _nx_secure_tls_send_newsessionticket()
185 packet_buffer[length] = (UCHAR)((nonce & 0xFF000000) >> 24); in _nx_secure_tls_send_newsessionticket()
186 packet_buffer[length + 1] = (UCHAR)((nonce & 0x00FF0000) >> 16); in _nx_secure_tls_send_newsessionticket()
187 packet_buffer[length + 2] = (UCHAR)((nonce & 0x0000FF00) >> 8); in _nx_secure_tls_send_newsessionticket()
188 packet_buffer[length + 3] = (UCHAR) (nonce & 0x000000FF); in _nx_secure_tls_send_newsessionticket()
Dnx_secure_tls_process_newsessionticket.c77 UINT nonce; in _nx_secure_tls_process_newsessionticket() local
181nonce = (UINT)((packet_buffer[0] << 24) + (packet_buffer[1] << 16) + (packet_buffer[2] << 8) + pac… in _nx_secure_tls_process_newsessionticket()
202 …status = _nx_secure_tls_1_3_session_psk_generate(tls_session, ticket_psk, (UCHAR *)nonce, nonce_le… in _nx_secure_tls_process_newsessionticket()
Dnx_secure_tls_1_3_generate_keys.c666 …SECURE_TLS_SESSION *tls_session, NX_SECURE_TLS_PSK_STORE *ticket_psk, UCHAR *nonce, UINT nonce_len) in _nx_secure_tls_1_3_session_psk_generate() argument
694 (UCHAR *)"resumption", 10, nonce, nonce_len, hash_length, in _nx_secure_tls_1_3_session_psk_generate()
/NetX-Duo-v6.2.1/test/regression/web_test/
Dhttp_digest_authentication.c44 UINT http_nonce_retrieve(NX_PACKET *packet_ptr, CHAR *nonce) in http_nonce_retrieve() argument
52 nonce[0] = NX_NULL; in http_nonce_retrieve()
105 nonce[length++] = *buffer_ptr++; in http_nonce_retrieve()
108 nonce[length] = NX_NULL; in http_nonce_retrieve()
112 …ulate(NX_MD5 *md5data, CHAR *username, CHAR *realm, CHAR *password, CHAR *nonce, CHAR *method, CHA… in http_digest_response_calculate() argument
162 _nx_md5_update(md5data, (unsigned char *) nonce, HTTP_SERVER_NONCE_SIZE); in http_digest_response_calculate()
/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_aes_test.c75 UCHAR *nonce; in thread_0_entry() local
160 nonce = NX_CRYPTO_NULL; in thread_0_entry()
166 nonce = (UCHAR *)key + aes_data[i].key_len; in thread_0_entry()
211 nonce, in thread_0_entry()
261 nonce, in thread_0_entry()
Dnx_secure_crypto_method_cleanup_test.c1035 UCHAR *nonce = input_test + 64; in crypto_method_cleanup_drbg_test() local
1052 status = crypto_method -> nx_crypto_init(crypto_method, nonce, NX_NULL, &handler, in crypto_method_cleanup_drbg_test()
1083 nonce, in crypto_method_cleanup_drbg_test()
/NetX-Duo-v6.2.1/crypto_libraries/src/
Dnx_crypto_ctr.c294 UCHAR *nonce, UINT nonce_len) in _nx_crypto_ctr_encrypt_init() argument
311 NX_CRYPTO_MEMCPY(&control_block[0], nonce, 4); /* Use case of memcpy is verified. */ in _nx_crypto_ctr_encrypt_init()
Dnx_crypto_method_self_test_drbg.c349 UCHAR *nonce; in _nx_crypto_method_self_test_drbg() local
371 nonce = nonce_aes128; in _nx_crypto_method_self_test_drbg()
430 nonce, in _nx_crypto_method_self_test_drbg()
Dnx_crypto_drbg.c276 UCHAR *nonce, in _nx_crypto_drbg_instantiate() argument
313 NX_CRYPTO_MEMCPY(df_input, nonce, nonce_len); /* Use case of memcpy is verified. */ in _nx_crypto_drbg_instantiate()
/NetX-Duo-v6.2.1/crypto_libraries/inc/
Dnx_crypto_ctr.h78 UCHAR *nonce, UINT nonce_len);
Dnx_crypto_drbg.h164 UCHAR *nonce,
/NetX-Duo-v6.2.1/addons/http/
Dnxd_http_server.h624 …AR *realm, UINT realm_length, CHAR *password, UINT password_length, CHAR *nonce, CHAR *method, CHA…
Dnxd_http_server.c6232 …AR *realm, UINT realm_length, CHAR *password, UINT password_length, CHAR *nonce, CHAR *method, CHA… in _nx_http_server_digest_response_calculate() argument
6279 …_nx_md5_update(&(server_ptr -> nx_http_server_md5data), (unsigned char *) nonce, NX_HTTP_SERVER_NO… in _nx_http_server_digest_response_calculate()
/NetX-Duo-v6.2.1/addons/web/
Dnx_web_http_server.h625 …TP_SERVER *server_ptr, CHAR *username, CHAR *realm, CHAR *password, CHAR *nonce, CHAR *method, CHA…
Dnx_web_http_server.c6737 …TP_SERVER *server_ptr, CHAR *username, CHAR *realm, CHAR *password, CHAR *nonce, CHAR *method, CHA… in _nx_web_http_server_digest_response_calculate() argument
6790 …_nx_md5_update(&(server_ptr -> nx_web_http_server_md5data), (unsigned char *) nonce, NX_WEB_HTTP_S… in _nx_web_http_server_digest_response_calculate()
/NetX-Duo-v6.2.1/nx_secure/inc/
Dnx_secure_tls.h1488 …ECURE_TLS_SESSION *tls_session, NX_SECURE_TLS_PSK_STORE *ticket_psk, UCHAR *nonce, UINT nonce_len);