/NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
D | nx_secure_aes_test.c | 39 static ULONG iv[4]; variable 91 memcpy(key + (aes_data[i].key_len >> 2), aes_data[i].iv, 4); in thread_0_entry() 95 memcpy(iv, aes_data[i].iv, sizeof(iv)); in thread_0_entry() 99 memcpy(iv, aes_data[i].iv + 4, 8); in thread_0_entry() 119 (UCHAR *)iv, in thread_0_entry() 136 (UCHAR *)iv, in thread_0_entry() 155 memcpy(key + (aes_data[i].key_len >> 2), aes_data[i].iv, 4); in thread_0_entry() 159 memcpy(iv, aes_data[i].iv, sizeof(iv)); in thread_0_entry() 165 memcpy(iv, aes_data[i].iv + 4, 8); in thread_0_entry() 193 (UCHAR *)iv, in thread_0_entry() [all …]
|
D | nx_secure_aes_ccm_test.c | 40 static ULONG iv[4]; variable 88 memcpy(iv, aes_ccm_data[i].iv, sizeof(iv)); in thread_0_entry() 114 data_len = ((UCHAR *)iv)[10]; in thread_0_entry() 126 (UCHAR *)iv, in thread_0_entry() 140 (UCHAR *)iv, in thread_0_entry() 149 ((UCHAR*)iv)[10] = data_len + (test_crypto_method_aes_ccm.nx_crypto_ICV_size_in_bits >> 3); in thread_0_entry() 152 data_len = ((UCHAR *)iv)[10]; in thread_0_entry() 164 (UCHAR *)iv, in thread_0_entry() 178 (UCHAR *)iv, in thread_0_entry() 198 memcpy(iv, aes_ccm_data[i].iv, sizeof(iv)); in thread_0_entry() [all …]
|
D | nx_secure_3des_test.c | 35 static UCHAR iv[8] = {0, 1, 2, 3, 4, 5, 6, 7}; variable 100 (UCHAR *)iv, in thread_0_entry() 115 (UCHAR *)iv, in thread_0_entry() 155 (UCHAR *)iv, in thread_0_entry() 170 (UCHAR *)iv, in thread_0_entry() 224 (UCHAR *)iv, in thread_0_entry() 239 (UCHAR *)iv, in thread_0_entry()
|
D | nx_secure_des_test.c | 36 static UCHAR iv[8] = {0, 1, 2, 3, 4, 5, 6, 7}; variable 99 (UCHAR *)iv, in thread_0_entry() 114 (UCHAR *)iv, in thread_0_entry() 155 (UCHAR *)iv, in thread_0_entry() 170 (UCHAR *)iv, in thread_0_entry() 224 (UCHAR *)iv, in thread_0_entry() 239 (UCHAR *)iv, in thread_0_entry()
|
D | nx_secure_aes_additional_test.c | 43 static ULONG iv[4]; variable 155 memcpy(key + (aes_data[i].key_len >> 2), aes_data[i].iv, 4); in thread_0_entry() 159 memcpy(iv, aes_data[i].iv, sizeof(iv)); in thread_0_entry() 163 memcpy(iv, aes_data[i].iv + 4, 8); in thread_0_entry() 183 (UCHAR *)iv, in thread_0_entry() 202 (UCHAR *)iv, in thread_0_entry() 229 (UCHAR *)iv, in thread_0_entry() 246 (UCHAR *)iv, in thread_0_entry() 260 iv[0] = 0; in thread_0_entry() 263 …rypt_init(NX_CRYPTO_NULL, NX_CRYPTO_NULL, NX_CRYPTO_NULL, NX_CRYPTO_NULL, 0, 0, (UCHAR *)iv, 0, 1); in thread_0_entry() [all …]
|
D | nx_secure_des_error_checking_test.c | 36 static UCHAR iv[8] = {0, 1, 2, 3, 4, 5, 6, 7}; variable 136 (UCHAR *)iv, /* iv */ in thread_0_entry() 147 (UCHAR *)iv, /* iv */ in thread_0_entry() 158 (UCHAR *)iv, /* iv */ in thread_0_entry() 169 (UCHAR *)iv, /* iv */ in thread_0_entry() 180 (UCHAR *)iv, /* iv */ in thread_0_entry() 193 (UCHAR *)iv, /* iv */ in thread_0_entry()
|
D | nx_secure_3des_error_checking_test.c | 37 static UCHAR iv[8] = {0, 1, 2, 3, 4, 5, 6, 7}; variable 114 (UCHAR *)iv, in thread_0_entry() 130 (UCHAR *)iv, in thread_0_entry() 146 (UCHAR *)iv, in thread_0_entry() 162 (UCHAR *)iv, in thread_0_entry() 179 (UCHAR *)iv, in thread_0_entry() 195 (UCHAR *)iv, in thread_0_entry()
|
D | nx_secure_aes_additional_test_data.c | 12 UCHAR *iv; member
|
D | nx_secure_aes_ccm_test_data.c | 17 UCHAR *iv; member
|
D | nx_secure_aes_test_data.c | 17 UCHAR *iv; member
|
/NetX-Duo-v6.2.1/nx_secure/src/ |
D | nx_secure_crypto_method_self_test_aes.c | 231 UCHAR *iv; in _nx_secure_crypto_method_self_test_aes() local 254 iv = (UCHAR *)iv_cbc_128; in _nx_secure_crypto_method_self_test_aes() 260 iv = (UCHAR *)iv_cbc_192; in _nx_secure_crypto_method_self_test_aes() 266 iv = (UCHAR *)iv_cbc_256; in _nx_secure_crypto_method_self_test_aes() 280 iv = (UCHAR *)iv_ctr_128; in _nx_secure_crypto_method_self_test_aes() 286 iv = (UCHAR *)iv_ctr_192; in _nx_secure_crypto_method_self_test_aes() 292 iv = (UCHAR *)iv_ctr_256; in _nx_secure_crypto_method_self_test_aes() 306 iv = (UCHAR *)iv_gcm_128; in _nx_secure_crypto_method_self_test_aes() 350 (UCHAR *)iv, in _nx_secure_crypto_method_self_test_aes() 370 iv, in _nx_secure_crypto_method_self_test_aes() [all …]
|
D | nx_secure_tls_record_payload_encrypt.c | 94 UCHAR *iv; in _nx_secure_tls_record_payload_encrypt() local 121 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_iv; in _nx_secure_tls_record_payload_encrypt() 129 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_client_iv; in _nx_secure_tls_record_payload_encrypt() 205 …NX_SECURE_MEMCPY(iv, ¤t_packet -> nx_packet_prepend_ptr[current_length + data_offset - iv_si… in _nx_secure_tls_record_payload_encrypt() 311 …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() 433 UCHAR *iv; in _nx_secure_tls_record_data_encrypt_init() local 457 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_iv; in _nx_secure_tls_record_data_encrypt_init() 465 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_client_iv; 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() 577 NX_SECURE_MEMCPY(&nonce[1], iv, 4); /* Use case of memcpy is verified. */ in _nx_secure_tls_record_data_encrypt_init() [all …]
|
D | nx_secure_tls_record_payload_decrypt.c | 34 UCHAR *iv, UINT wait_option); 114 UCHAR *iv; in _nx_secure_tls_record_payload_decrypt() local 151 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_client_iv; in _nx_secure_tls_record_payload_decrypt() 157 iv = tls_session -> nx_secure_tls_key_material.nx_secure_tls_server_iv; 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() 269 NX_SECURE_MEMCPY(&nonce[1], iv, 4); /* Use case of memcpy is verified. */ in _nx_secure_tls_record_payload_decrypt() 369 iv, iv_size, &bytes_copied); in _nx_secure_tls_record_payload_decrypt() 383 NX_NULL, 0, iv, in _nx_secure_tls_record_payload_decrypt() 405 iv, iv_size, &bytes_copied); in _nx_secure_tls_record_payload_decrypt() 542 UCHAR *iv, UINT wait_option) in _nx_secure_tls_record_chained_packet_decrypt() argument [all …]
|
/NetX-Duo-v6.2.1/crypto_libraries/src/ |
D | nx_crypto_ccm.c | 148 … UCHAR *input, UCHAR *output, UINT length, UCHAR *iv, UINT block_size) in _nx_crypto_ccm_cbc_pad() argument 153 NX_CRYPTO_MEMCPY(last_cipher, iv, block_size); /* Use case of memcpy is verified. */ in _nx_crypto_ccm_cbc_pad() 302 … UINT length, UCHAR *iv, USHORT icv_len, USHORT block_size) in _nx_crypto_ccm_encrypt_init() argument 304 UCHAR L = (UCHAR)(15 - iv[0]); in _nx_crypto_ccm_encrypt_init() 305 UCHAR *Nonce = iv + 1; in _nx_crypto_ccm_encrypt_init() 312 if (block_size != NX_CRYPTO_CCM_BLOCK_SIZE || iv[0] > 13 || iv[0] < 7) in _nx_crypto_ccm_encrypt_init()
|
D | nx_crypto_gcm.c | 460 UCHAR *iv, UINT block_size) in _nx_crypto_gcm_encrypt_init() argument 480 iv_len = iv[0]; in _nx_crypto_gcm_encrypt_init() 481 iv = iv + 1; in _nx_crypto_gcm_encrypt_init() 487 NX_CRYPTO_MEMCPY(j0, iv, iv_len); /* Use case of memcpy is verified. */ in _nx_crypto_gcm_encrypt_init() 498 _nx_crypto_gcm_ghash_update(hkey, iv, iv_len, j0); in _nx_crypto_gcm_encrypt_init()
|
D | nx_crypto_cbc.c | 322 NX_CRYPTO_KEEP UINT _nx_crypto_cbc_encrypt_init(NX_CRYPTO_CBC *cbc_metadata, UCHAR *iv, UINT iv_len) in _nx_crypto_cbc_encrypt_init() argument 332 …NX_CRYPTO_MEMCPY(cbc_metadata -> nx_crypto_cbc_last_block, iv, iv_len); /* Use case of memcpy is v… in _nx_crypto_cbc_encrypt_init()
|
D | nx_crypto_ctr.c | 293 NX_CRYPTO_KEEP UINT _nx_crypto_ctr_encrypt_init(NX_CRYPTO_CTR *ctr_metadata, UCHAR *iv, UINT iv_len, in _nx_crypto_ctr_encrypt_init() argument 310 NX_CRYPTO_MEMCPY(&control_block[4], iv, 8); /* Use case of memcpy is verified. */ in _nx_crypto_ctr_encrypt_init()
|
D | nx_crypto_drbg.c | 753 UCHAR *iv; in _nx_crypto_drbg_block_cipher_df() local 777 iv = drbg_ptr -> nx_crypto_drbg_buffer; in _nx_crypto_drbg_block_cipher_df() 778 s = &iv[NX_CRYPTO_DRBG_BLOCK_LENGTH]; in _nx_crypto_drbg_block_cipher_df() 779 NX_CRYPTO_MEMSET(iv, 0, NX_CRYPTO_DRBG_BLOCK_LENGTH); in _nx_crypto_drbg_block_cipher_df() 792 …NX_CRYPTO_MEMSET(&iv[s_len], 0, NX_CRYPTO_DRBG_BLOCK_LENGTH - (s_len % NX_CRYPTO_DRBG_BLOCK_LENGTH… in _nx_crypto_drbg_block_cipher_df() 805 bcc_chain[j] ^= iv[i + j]; in _nx_crypto_drbg_block_cipher_df() 831 iv[3]++; in _nx_crypto_drbg_block_cipher_df()
|
D | nx_crypto_xcbc_mac.c | 156 UCHAR *iv, UCHAR icv_len, UINT block_size) in _nx_crypto_xcbc_mac() argument 167 NX_CRYPTO_PARAMETER_NOT_USED(iv); in _nx_crypto_xcbc_mac()
|
/NetX-Duo-v6.2.1/crypto_libraries/inc/ |
D | nx_crypto_xcbc_mac.h | 70 UCHAR *iv, UCHAR icv_len, UINT block_size);
|
D | nx_crypto_ctr.h | 77 NX_CRYPTO_KEEP UINT _nx_crypto_ctr_encrypt_init(NX_CRYPTO_CTR *ctr_metadata, UCHAR *iv, UINT iv_len,
|
D | nx_crypto_cbc.h | 83 NX_CRYPTO_KEEP UINT _nx_crypto_cbc_encrypt_init(NX_CRYPTO_CBC *cbc_metadata, UCHAR *iv, UINT iv_len…
|
D | nx_crypto_ccm.h | 85 … UINT length, UCHAR *iv, USHORT icv_len, USHORT block_size);
|
D | nx_crypto_gcm.h | 92 UCHAR *iv, UINT block_size);
|