Searched refs:threads (Results 1 – 6 of 6) sorted by relevance
/mbedtls-latest/programs/ssl/ |
D | ssl_pthread_server.c | 95 static pthread_info_t threads[MAX_NUM_THREADS]; variable 247 if (threads[i].active == 0) { in thread_create() 251 if (threads[i].data.thread_complete == 1) { in thread_create() 253 pthread_join(threads[i].thread, NULL); in thread_create() 254 memset(&threads[i], 0, sizeof(pthread_info_t)); in thread_create() 266 memcpy(&threads[i].data, &base_info, sizeof(base_info)); in thread_create() 267 threads[i].active = 1; in thread_create() 268 memcpy(&threads[i].data.client_fd, client_fd, sizeof(mbedtls_net_context)); in thread_create() 270 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create() 271 &threads[i].data)) != 0) { in thread_create() [all …]
|
/mbedtls-latest/tests/suites/ |
D | test_suite_psa_crypto_init.function | 246 mbedtls_test_thread_t *threads = NULL; 248 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count); 253 * threads. */ 256 mbedtls_test_thread_create(&threads[i], 263 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0); 270 /* Test initialising PSA whilst also testing flags on other threads. */ 276 mbedtls_test_thread_create(&threads[i], 282 mbedtls_test_thread_create(&threads[i], 290 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0); 296 mbedtls_free(threads);
|
D | test_suite_ctr_drbg.function | 351 mbedtls_test_thread_t *threads = NULL; 368 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count); 402 mbedtls_test_thread_create(&threads[i], 408 TEST_EQUAL(mbedtls_test_thread_join(&threads[i]), 0); 419 mbedtls_free(threads);
|
D | test_suite_psa_crypto.function | 1327 * threads attempt to load/destroy the key, exactly one thread succeeds. */ 1335 * that once imported by some thread, all threads can use the key. */ 1362 * threads running this function is larger than the number of 1385 * 2: N threads reserve an empty key slot in psa_import_key, 1936 mbedtls_test_thread_t *threads = NULL; 1958 TEST_CALLOC(threads, sizeof(mbedtls_test_thread_t) * thread_count); 1960 /* Test that when multiple threads import the same key, 1962 * Also test that all threads can use the key as soon as it has been 1966 mbedtls_test_thread_create(&threads[i], thread_import_key, 1970 /* Join threads. */ [all …]
|
/mbedtls-latest/docs/architecture/psa-thread-safety/ |
D | psa-thread-safety.md | 14 - The testing system has now been made thread-safe. Tests can now spin up multiple threads, see [Th… 23 …tion describes the properties that are followed when PSA functions are invoked by multiple threads. 24 …e-guide) section gives guidance on initializing, using and freeing PSA when using multiple threads. 33 …nvironments, an application can make calls to the Crypto API in separate threads. In such an envir… 43 … section for details on how to correctly initialize the PSA subsystem when using multiple threads). 93 2. The resources from the key have been freed. This allows threads to create similar keys immediate… 101 …or drivers. Driver entry points may be called concurrently from multiple threads. Threads can conc… 115 …o `psa_crypto_init` are explicitly allowed. It is valid to have multiple threads each calling `psa… 119 …threads can use any PSA function if there is no overlap between their calls. All threads share the… 121 …ntial execution. For example, multiple threads attempting to load the same persistent key can lead… [all …]
|
/mbedtls-latest/docs/architecture/ |
D | psa-shared-memory.md | 126 > In an environment with multiple threads or with shared memory, the implementation carefully acces…
|