Searched refs:thread (Results 1 – 15 of 15) sorted by relevance
/mbedtls-latest/tests/src/ |
D | threading_helpers.c | 18 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/ |
D | psa-thread-safety.md | 3 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… 37 …thread-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… 107 …thread-safe (`mbedtls_psa_random_init` and `mbedtls_psa_random_seed` are only thread-safe when cal… [all …]
|
/mbedtls-latest/tests/include/test/ |
D | threading_helpers.h | 50 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/ |
D | ssl_pthread_server.c | 91 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/ |
D | footprint.sh | 104 doit thread configs/config-thread.h
|
/mbedtls-latest/docs/architecture/ |
D | psa-keystore-design.md | 49 …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). 81 …thread (see [“Concurrency”](#concurrency)). With the concurrency primitives available in Mbed TLS …
|
D | psa-shared-memory.md | 23 …ost systems don't offer a way to do it. (Even systems that have absolute thread priorities, and wh…
|
/mbedtls-latest/ |
D | CMakeLists.txt | 234 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…
|
D | ChangeLog | 334 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/ |
D | test_suite_psa_crypto_init.function | 149 /* 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
|
D | test_suite_debug.function | 31 /* Skip "thread ID" (up to the first space) as it is not predictable */
|
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. */ 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 …]
|
D | test_suite_psa_crypto_slot_management.function | 1103 * - keys in use by another thread (we don't do this because it would
|
/mbedtls-latest/programs/ |
D | README.md | 77 * [`ssl/ssl_pthread_server.c`](ssl/ssl_pthread_server.c): a simple HTTPS server using one thread pe…
|
/mbedtls-latest/docs/proposed/ |
D | psa-driver-interface.md | 1235 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.
|