Home
last modified time | relevance | path

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

/mbedtls-latest/tests/src/
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 *),
47 int (*mbedtls_test_thread_join)(mbedtls_test_thread_t *thread) = threading_thread_join_pthread;
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()
[all …]
/mbedtls-latest/docs/architecture/psa-thread-safety/
Dpsa-thread-safety.md3 Currently, PSA Crypto API calls in Mbed TLS releases are not thread-safe.
5 …html#c.psa_crypto_init) thread-safe has been implemented. Implementations which only ever call PSA…
14 …testing system has now been made thread-safe. Tests can now spin up multiple threads, see [Thread-…
19 The other functions in the PSA Crypto API are planned to be made thread-safe in future, but current…
25 * The [Current strategy](#current-strategy) section describes how thread-safety of key management a…
27 * The [Future work](#future-work) section outlines our long-term goals for thread-safety; it also a…
37thread-safe if any valid set of concurrent calls is handled as if the effect and return code of ev…
78 …l work. Implementations which only ever call PSA functions from a single thread, or which protect …
92 …oes not exist. This is a functional requirement for persistent keys: any thread can immediately cr…
107thread-safe (`mbedtls_psa_random_init` and `mbedtls_psa_random_seed` are only thread-safe when cal…
[all …]
/mbedtls-latest/tests/include/test/
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-latest/programs/ssl/
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-latest/scripts/
Dfootprint.sh104 doit thread configs/config-thread.h
/mbedtls-latest/docs/architecture/
Dpsa-keystore-design.md49 …currency) below and [key slot states in the PSA thread safety specification](psa-thread-safety/psa…
53 …ted by a reader-writer lock. (In earlier versions, the key store was not thread-safe.) The lock is…
55 * `EMPTY` or `FULL` state, `registered_readers == 0`: the slot is not in use by any thread.
59 For more information, see [PSA thread safety](psa-thread-safety/psa-thread-safety.md).
81thread (see [“Concurrency”](#concurrency)). With the concurrency primitives available in Mbed TLS …
Dpsa-shared-memory.md23 …ost systems don't offer a way to do it. (Even systems that have absolute thread priorities, and wh…
/mbedtls-latest/
DCMakeLists.txt234 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
235 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
249 set(CMAKE_C_FLAGS_TSAN "-fsanitize=thread -O3")
250 …set(CMAKE_C_FLAGS_TSANDBG "-fsanitize=thread -O1 -g3 -fno-omit-frame-pointer -fno-optimize-sib…
DChangeLog334 docs/architecture/psa-thread-safety/psa-thread-safety.md for more details.
3351 whose implementation should behave as a thread-safe version of gmtime().
3525 * Use gmtime_r/gmtime_s for thread-safety. Fixed by Nick Wilson.
4550 * Prepend a "thread identifier" to debug messages (issue pointed out by
4734 thread-safe if MBEDTLS_THREADING_C is enabled.
4794 * Fix thread safety bug in RSA operations (found by Fredrik Axelsson).
5123 now thread-safe if POLARSSL_THREADING_C defined
5166 * x509_get_current_time() uses localtime_r() to prevent thread issues
5472 * x509_get_current_time() uses localtime_r() to prevent thread issues
5494 * Changed RSA blinding to a slower but thread-safe version
/mbedtls-latest/tests/suites/
Dtest_suite_psa_crypto_init.function149 /* If this is a test only thread, then we can assume PSA is being started
150 * up on another thread and thus we cannot know whether the following tests
Dtest_suite_debug.function31 /* Skip "thread ID" (up to the first space) as it is not predictable */
Dtest_suite_psa_crypto.function1327 * threads attempt to load/destroy the key, exactly one thread succeeds. */
1335 * that once imported by some thread, all threads can use the key. */
1342 /* Import the key, exactly one thread must succeed. */
1350 /* More than one thread has succeeded, report a failure. */
1358 /* If all of the key slots are reserved when a thread
1363 * free key slots. Each thread reserves an empty key slot,
1365 * It is at that point where the thread sees that the key
1370 * thread from executing, note that this is not an error. */
1374 /* The key has been loaded by a different thread. */
1384 * 1: This thread successfuly imports a persistent key skc->key.
[all …]
Dtest_suite_psa_crypto_slot_management.function1103 * - keys in use by another thread (we don't do this because it would
/mbedtls-latest/programs/
DREADME.md77 * [`ssl/ssl_pthread_server.c`](ssl/ssl_pthread_server.c): a simple HTTPS server using one thread pe…
/mbedtls-latest/docs/proposed/
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.