Home
last modified time | relevance | path

Searched refs:crypto_method (Results 1 – 20 of 20) sorted by relevance

/NetX-Duo-v6.2.1/test/regression/nx_secure_test/
Dnx_secure_crypto_method_cleanup_test.c252 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 …]
Dnx_secure_crypto_cleanup_test.c38 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 …]
Dnx_secure_tls_session_create_ext_test.c181 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()
Dnx_secure_crypto_self_test.c212 extern UINT _nx_secure_crypto_method_self_test(const NX_CRYPTO_METHOD *crypto_method,
Dnx_secure_tls_server_handshake_test.c471 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/
Dnx_secure_crypto_method_self_test_rsa.c449 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 …]
Dnx_secure_crypto_table_self_test.c59 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()
Dnx_secure_dtls_send_clienthello.c107 const NX_CRYPTO_METHOD *crypto_method = NX_NULL; in _nx_secure_dtls_send_clienthello() local
258crypto_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 …]
Dnx_secure_dtls_process_clienthello.c128 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 …]
Dnx_secure_generate_server_key_exchange.c103 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()
Dnx_secure_dtls_send_serverhello.c87 NX_CRYPTO_METHOD *crypto_method; in _nx_secure_dtls_send_serverhello() local
184crypto_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()
Dnx_secure_tls_process_serverhello_extensions.c544 NX_CRYPTO_METHOD *crypto_method; in _nx_secure_tls_proc_serverhello_ecjpake_key_kp_pair() local
562crypto_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()
Dnx_secure_tls_send_clienthello_extensions.c30 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()
Dnx_secure_tls_session_create_ext.c101 …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/
Dnx_crypto_method_self_test_rsa.c600 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 …]
Dnx_crypto_drbg.c146 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 …]
Dnx_crypto_method_self_test_drbg.c362 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/
Dnx_secure_crypto_table_self_test.h73 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/
Dnx_crypto_method_self_test.h48 UINT _nx_crypto_method_self_test_rsa(NX_CRYPTO_METHOD *crypto_method,
Dnx_crypto_drbg.h149 NX_CRYPTO_METHOD *crypto_method; member