/NetX-Duo-v6.2.1/test/regression/nx_secure_test/ |
D | nx_secure_crypto_method_cleanup_test.c | 252 UINT crypto_method_cleanup_ecdh_test(NX_CRYPTO_METHOD *crypto_method); 253 UINT crypto_method_cleanup_ecdsa_test(NX_CRYPTO_METHOD *crypto_method); 254 UINT crypto_method_cleanup_ecjpake_test(NX_CRYPTO_METHOD *crypto_method); 256 UINT crypto_method_cleanup_drbg_test(NX_CRYPTO_METHOD *crypto_method); 275 NX_CRYPTO_METHOD *crypto_method; in thread_0_entry() local 312 crypto_method = test_cleanup_data[i].test_method; in thread_0_entry() 314 if (crypto_method -> nx_crypto_algorithm == NX_CRYPTO_KEY_EXCHANGE_RSA) in thread_0_entry() 320 key_size = crypto_method -> nx_crypto_key_size_in_bits; in thread_0_entry() 323 if (crypto_method -> nx_crypto_init) in thread_0_entry() 325 status = crypto_method -> nx_crypto_init(crypto_method, key_test, key_size, &handler, in thread_0_entry() [all …]
|
D | nx_secure_crypto_cleanup_test.c | 38 const NX_CRYPTO_METHOD *crypto_method; member 184 static HANDLER *find_handler(const NX_CRYPTO_METHOD *crypto_method, UINT is_original) in find_handler() argument 192 if (handlers[i].original_crypto_method == crypto_method) in find_handler() 199 if (&handlers[i].test_crypto_method == crypto_method) in find_handler() 209 static VOID insert_handler(const NX_CRYPTO_METHOD **crypto_method) in insert_handler() argument 213 if (*crypto_method == NX_NULL) in insert_handler() 218 if ((*crypto_method) -> nx_crypto_operation == NX_NULL) in insert_handler() 223 handler_ptr = find_handler(*crypto_method, NX_CRYPTO_TRUE); in insert_handler() 228 *crypto_method = &(handler_ptr -> test_crypto_method); in insert_handler() 234 handlers[handlers_count].original_crypto_method = *crypto_method; in insert_handler() [all …]
|
D | nx_secure_tls_session_create_ext_test.c | 181 NX_CRYPTO_METHOD *crypto_method; in make_test_crypto_table() local 208 crypto_method = (NX_CRYPTO_METHOD *)malloc(sizeof(NX_CRYPTO_METHOD)); in make_test_crypto_table() 209 test_supported_crypto[test_supported_crypto_size++] = crypto_method; in make_test_crypto_table() 211 memcpy(crypto_method, supported_crypto[index], sizeof(NX_CRYPTO_METHOD)); in make_test_crypto_table() 216 if(!(crypto_method->nx_crypto_metadata_area_size & 0x3)) in make_test_crypto_table() 218 crypto_method->nx_crypto_metadata_area_size ++; in make_test_crypto_table() 223 crypto_method->nx_crypto_algorithm = 0; in make_test_crypto_table()
|
D | nx_secure_crypto_self_test.c | 212 extern UINT _nx_secure_crypto_method_self_test(const NX_CRYPTO_METHOD *crypto_method,
|
D | nx_secure_tls_server_handshake_test.c | 471 NX_CRYPTO_METHOD crypto_method; in ntest_1_entry() local 746 crypto_method.nx_crypto_init = NX_NULL; in ntest_1_entry() 747 crypto_method.nx_crypto_operation = NX_NULL; in ntest_1_entry() 748 crypto_method.nx_crypto_cleanup = NX_NULL; in ntest_1_entry() 749 test_ciphersuite.nx_secure_tls_public_cipher = &crypto_method; in ntest_1_entry()
|
/NetX-Duo-v6.2.1/nx_secure/src/ |
D | nx_secure_crypto_method_self_test_rsa.c | 449 UINT _nx_secure_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method, in _nx_secure_crypto_method_self_test_rsa() argument 458 if(crypto_method == NX_NULL) in _nx_secure_crypto_method_self_test_rsa() 461 if (crypto_method -> nx_crypto_init == NX_NULL) in _nx_secure_crypto_method_self_test_rsa() 466 if (crypto_method -> nx_crypto_operation == NX_NULL) in _nx_secure_crypto_method_self_test_rsa() 475 status = crypto_method -> nx_crypto_init(crypto_method, in _nx_secure_crypto_method_self_test_rsa() 486 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ENCRYPT, in _nx_secure_crypto_method_self_test_rsa() 488 crypto_method, in _nx_secure_crypto_method_self_test_rsa() 510 if (crypto_method -> nx_crypto_cleanup) in _nx_secure_crypto_method_self_test_rsa() 512 status = crypto_method -> nx_crypto_cleanup(metadata); in _nx_secure_crypto_method_self_test_rsa() 522 status = crypto_method -> nx_crypto_init(crypto_method, in _nx_secure_crypto_method_self_test_rsa() [all …]
|
D | nx_secure_crypto_table_self_test.c | 59 UINT _nx_secure_crypto_method_self_test(const NX_CRYPTO_METHOD *crypto_method, 231 UINT _nx_secure_crypto_method_self_test(const NX_CRYPTO_METHOD *crypto_method, in _nx_secure_crypto_method_self_test() argument 239 if(crypto_method == NX_NULL) in _nx_secure_crypto_method_self_test() 242 crypto_algorithm = crypto_method -> nx_crypto_algorithm; in _nx_secure_crypto_method_self_test() 257 if (crypto_method != nx_crypto_self_test_methods[i]) in _nx_secure_crypto_method_self_test() 260 …us = nx_crypto_self_test_map[i].self_test_function((NX_CRYPTO_METHOD*)crypto_method, metadata, met… in _nx_secure_crypto_method_self_test() 261 nx_crypto_self_test_methods[i] = crypto_method; in _nx_secure_crypto_method_self_test()
|
D | nx_secure_dtls_send_clienthello.c | 107 const NX_CRYPTO_METHOD *crypto_method = NX_NULL; in _nx_secure_dtls_send_clienthello() local 258 …crypto_method = crypto_table -> nx_secure_tls_ciphersuite_lookup_table[i].nx_secure_tls_public_aut… in _nx_secure_dtls_send_clienthello() 281 if (crypto_method) in _nx_secure_dtls_send_clienthello() 283 if (crypto_method -> nx_crypto_init == NX_NULL) in _nx_secure_dtls_send_clienthello() 301 status = crypto_method -> nx_crypto_init((NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_send_clienthello() 312 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_HASH_METHOD_SET, in _nx_secure_dtls_send_clienthello() 314 (NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_send_clienthello() 328 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_CURVE_SET, in _nx_secure_dtls_send_clienthello() 330 (NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_send_clienthello() 403 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_CLIENT_HELLO_GENERATE, in _nx_secure_dtls_send_clienthello() [all …]
|
D | nx_secure_dtls_process_clienthello.c | 128 const NX_CRYPTO_METHOD *crypto_method; in _nx_secure_dtls_process_clienthello() local 431 crypto_method = ciphersuite_info -> nx_secure_tls_public_auth; in _nx_secure_dtls_process_clienthello() 432 if (crypto_method == NX_NULL) in _nx_secure_dtls_process_clienthello() 437 if (crypto_method -> nx_crypto_init == NX_NULL) in _nx_secure_dtls_process_clienthello() 448 status = crypto_method -> nx_crypto_init((NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_process_clienthello() 460 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_HASH_METHOD_SET, in _nx_secure_dtls_process_clienthello() 462 (NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_process_clienthello() 476 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_CURVE_SET, in _nx_secure_dtls_process_clienthello() 478 (NX_CRYPTO_METHOD*)crypto_method, in _nx_secure_dtls_process_clienthello() 568 … status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_CLIENT_HELLO_PROCESS, in _nx_secure_dtls_process_clienthello() [all …]
|
D | nx_secure_generate_server_key_exchange.c | 103 NX_CRYPTO_METHOD *crypto_method; in _nx_secure_generate_server_key_exchange() local 198 crypto_method = (NX_CRYPTO_METHOD*)ciphersuite -> nx_secure_tls_public_auth; in _nx_secure_generate_server_key_exchange() 199 … status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_SERVER_KEY_EXCHANGE_GENERATE, in _nx_secure_generate_server_key_exchange() 201 crypto_method, in _nx_secure_generate_server_key_exchange()
|
D | nx_secure_dtls_send_serverhello.c | 87 NX_CRYPTO_METHOD *crypto_method; in _nx_secure_dtls_send_serverhello() local 184 …crypto_method = (NX_CRYPTO_METHOD*)tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_t… in _nx_secure_dtls_send_serverhello() 223 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_SERVER_HELLO_GENERATE, in _nx_secure_dtls_send_serverhello() 225 crypto_method, in _nx_secure_dtls_send_serverhello()
|
D | nx_secure_tls_process_serverhello_extensions.c | 544 NX_CRYPTO_METHOD *crypto_method; in _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair() local 562 …crypto_method = (NX_CRYPTO_METHOD*)tls_session -> nx_secure_tls_session_ciphersuite -> nx_secure_t… in _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair() 565 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ECJPAKE_SERVER_HELLO_PROCESS, in _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair() 567 crypto_method, in _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair()
|
D | nx_secure_tls_send_clienthello_extensions.c | 30 NX_SECURE_X509_CRYPTO *crypto_method, 416 NX_SECURE_X509_CRYPTO *crypto_method, in _nx_secure_tls_get_signature_algorithm() argument 428 switch (crypto_method -> nx_secure_x509_public_cipher_method -> nx_crypto_algorithm) in _nx_secure_tls_get_signature_algorithm() 443 switch (crypto_method -> nx_secure_x509_hash_method -> nx_crypto_algorithm) in _nx_secure_tls_get_signature_algorithm()
|
D | nx_secure_tls_session_create_ext.c | 101 …ze, const NX_CRYPTO_METHOD **crypto_array, UINT array_size, const NX_CRYPTO_METHOD **crypto_method) in _find_cipher() argument 115 *crypto_method = crypto_array[i]; in _find_cipher() 120 *crypto_method = NX_NULL; in _find_cipher()
|
/NetX-Duo-v6.2.1/crypto_libraries/src/ |
D | nx_crypto_method_self_test_rsa.c | 600 NX_CRYPTO_KEEP UINT _nx_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method, in _nx_crypto_method_self_test_rsa() argument 609 if(crypto_method == NX_CRYPTO_NULL) in _nx_crypto_method_self_test_rsa() 612 if (crypto_method -> nx_crypto_init == NX_CRYPTO_NULL) in _nx_crypto_method_self_test_rsa() 617 if (crypto_method -> nx_crypto_operation == NX_CRYPTO_NULL) in _nx_crypto_method_self_test_rsa() 626 status = crypto_method -> nx_crypto_init(crypto_method, in _nx_crypto_method_self_test_rsa() 637 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ENCRYPT, in _nx_crypto_method_self_test_rsa() 639 crypto_method, in _nx_crypto_method_self_test_rsa() 661 if (crypto_method -> nx_crypto_cleanup) in _nx_crypto_method_self_test_rsa() 663 status = crypto_method -> nx_crypto_cleanup(metadata); in _nx_crypto_method_self_test_rsa() 673 status = crypto_method -> nx_crypto_init(crypto_method, in _nx_crypto_method_self_test_rsa() [all …]
|
D | nx_crypto_drbg.c | 146 NX_CRYPTO_METHOD *crypto_method; in _nx_crypto_drbg_update() local 153 crypto_method = drbg_ptr -> nx_crypto_drbg_crypto_method; in _nx_crypto_drbg_update() 156 if (crypto_method -> nx_crypto_init) in _nx_crypto_drbg_update() 158 status = crypto_method -> nx_crypto_init(crypto_method, in _nx_crypto_drbg_update() 160 crypto_method -> nx_crypto_key_size_in_bits, in _nx_crypto_drbg_update() 163 crypto_method -> nx_crypto_metadata_area_size); in _nx_crypto_drbg_update() 175 status = crypto_method -> nx_crypto_operation(NX_CRYPTO_ENCRYPT, in _nx_crypto_drbg_update() 177 crypto_method, in _nx_crypto_drbg_update() 179 crypto_method -> nx_crypto_key_size_in_bits, in _nx_crypto_drbg_update() 186 crypto_method -> nx_crypto_metadata_area_size, in _nx_crypto_drbg_update() [all …]
|
D | nx_crypto_method_self_test_drbg.c | 362 drbg_opt.crypto_method = &crypto_method_aes_cbc_128; in _nx_crypto_method_self_test_drbg() 508 drbg_opt.crypto_method = &crypto_method_aes_cbc_128; in _nx_crypto_method_self_test_drbg()
|
/NetX-Duo-v6.2.1/nx_secure/inc/ |
D | nx_secure_crypto_table_self_test.h | 73 UINT (*self_test_function)(NX_CRYPTO_METHOD *crypto_method, VOID *metadata, UINT metadata_size); 87 UINT _nx_secure_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method,
|
/NetX-Duo-v6.2.1/crypto_libraries/inc/ |
D | nx_crypto_method_self_test.h | 48 UINT _nx_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method,
|
D | nx_crypto_drbg.h | 149 NX_CRYPTO_METHOD *crypto_method; member
|