Home
last modified time | relevance | path

Searched refs:thread (Results 1 – 13 of 13) sorted by relevance

/mbedtls/tests/src/
A Dthreading_helpers.c18 static int threading_thread_create_pthread(mbedtls_test_thread_t *thread, void *(*thread_func)( in threading_thread_create_pthread() argument
21 if (thread == NULL || thread_func == NULL) { in threading_thread_create_pthread()
25 if (pthread_create(&thread->thread, NULL, thread_func, thread_data)) { in threading_thread_create_pthread()
32 static int threading_thread_join_pthread(mbedtls_test_thread_t *thread) in threading_thread_join_pthread() argument
34 if (thread == NULL) { in threading_thread_join_pthread()
38 if (pthread_join(thread->thread, NULL) != 0) { in threading_thread_join_pthread()
45 int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread, void *(*thread_func)(void *),
53 static int threading_thread_create_fail(mbedtls_test_thread_t *thread, in threading_thread_create_fail() argument
57 (void) thread; in threading_thread_create_fail()
64 static int threading_thread_join_fail(mbedtls_test_thread_t *thread) in threading_thread_join_fail() argument
[all …]
/mbedtls/tests/include/test/
A Dthreading_helpers.h50 void mbedtls_test_thread_set_alt(int (*thread_create)(mbedtls_test_thread_t *thread,
54 int (*thread_join)(mbedtls_test_thread_t *thread));
61 pthread_t MBEDTLS_PRIVATE(thread);
82 extern int (*mbedtls_test_thread_create)(mbedtls_test_thread_t *thread,
84 extern int (*mbedtls_test_thread_join)(mbedtls_test_thread_t *thread);
/mbedtls/docs/architecture/psa-thread-safety/
A Dpsa-thread-safety.md3 Currently, PSA Crypto API calls in Mbed TLS releases are not thread-safe.
14 …testing system has now been made thread-safe. Tests can now spin up multiple threads, see [Thread-…
107thread-safe (`mbedtls_psa_random_init` and `mbedtls_psa_random_seed` are only thread-safe when cal…
133 …cribes how we have implemented thread-safety. There is discussion of: techniques, internal propert…
188 A thread can only traverse the key store while holding `mbedtls_threading_key_slot_mutex`, the set …
319 …g `psa_unregister_read`, the thread waits until the condition `slot->registered_readers == 1` is t…
320 * At this point, the destroying thread directly calls `psa_wipe_key_slot`.
343 In the non-thread-safe case we have these natural assumptions/requirements:
352 1. Non-thread-safe drivers must not call the core.
361 A driver would be non-thread-safe if the `thread-safe` property is set to true.
[all …]
/mbedtls/scripts/
A Dfootprint.sh104 doit thread configs/config-thread.h
/mbedtls/programs/ssl/
A Dssl_pthread_server.c91 pthread_t thread; member
253 pthread_join(threads[i].thread, NULL); in thread_create()
270 if ((ret = pthread_create(&threads[i].thread, NULL, handle_ssl_connection, in thread_create()
/mbedtls/
A DCMakeLists.txt226 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
227 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
241 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
242 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
A DChangeLog140 docs/architecture/psa-thread-safety/psa-thread-safety.md for more details.
3156 whose implementation should behave as a thread-safe version of gmtime().
3330 * Use gmtime_r/gmtime_s for thread-safety. Fixed by Nick Wilson.
4355 * Prepend a "thread identifier" to debug messages (issue pointed out by
4539 thread-safe if MBEDTLS_THREADING_C is enabled.
4599 * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
4928 now thread-safe if POLARSSL_THREADING_C defined
4971 * x509_get_current_time() uses localtime_r() to prevent thread issues
5277 * x509_get_current_time() uses localtime_r() to prevent thread issues
5299 * Changed RSA blinding to a slower but thread-safe version
/mbedtls/tests/suites/
A Dtest_suite_psa_crypto_init.function132 /* If this is a test only thread, then we can assume PSA is being started
133 * up on another thread and thus we cannot know whether the following tests
A Dtest_suite_debug.function31 /* Skip "thread ID" (up to the first space) as it is not predictable */
A Dtest_suite_psa_crypto.function1356 * that once imported by some thread, all threads can use the key. */
1363 /* Import the key, exactly one thread must succeed. */
1379 /* If all of the key slots are reserved when a thread
1384 * free key slots. Each thread reserves an empty key slot,
1386 * It is at that point where the thread sees that the key
1395 /* The key has been loaded by a different thread. */
1410 * 4: This thread calls psa_get_key_attributes(skc->key,...):
1413 * This thread returns PSA_ERROR_INSUFFICIENT_MEMORY.
1444 /* Ensure that we are the only thread to succeed. */
1981 * exactly one thread succeeds and the rest fail with valid errors.
[all …]
/mbedtls/programs/
A DREADME.md77 * [`ssl/ssl_pthread_server.c`](ssl/ssl_pthread_server.c): a simple HTTPS server using one thread pe…
/mbedtls/docs/proposed/
A Dpsa-driver-interface.md1235 In a multithreaded environment, the driver may only call these two functions from the thread that i…
1418 …e driver needs to remember which driver it's calling. This may require a thread-local variable in …
1450 …ce on multiprocessor systems, a multithreaded core could prefer to use one RNG instance per thread.
/mbedtls/docs/architecture/
A Dpsa-shared-memory.md23 …ost systems don't offer a way to do it. (Even systems that have absolute thread priorities, and wh…

Completed in 65 milliseconds