Lines Matching refs:lock
337 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_ctr_instantiate_wrapper()
346 if (drbg->lock != NULL) in drbg_ctr_instantiate_wrapper()
347 CRYPTO_THREAD_unlock(drbg->lock); in drbg_ctr_instantiate_wrapper()
490 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_ctr_uninstantiate_wrapper()
495 if (drbg->lock != NULL) in drbg_ctr_uninstantiate_wrapper()
496 CRYPTO_THREAD_unlock(drbg->lock); in drbg_ctr_uninstantiate_wrapper()
507 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_ctr_verify_zeroization()
519 if (drbg->lock != NULL) in drbg_ctr_verify_zeroization()
520 CRYPTO_THREAD_unlock(drbg->lock); in drbg_ctr_verify_zeroization()
671 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_ctr_get_ctx_params()
688 if (drbg->lock != NULL) in drbg_ctr_get_ctx_params()
689 CRYPTO_THREAD_unlock(drbg->lock); in drbg_ctr_get_ctx_params()
769 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_ctr_set_ctx_params()
774 if (drbg->lock != NULL) in drbg_ctr_set_ctx_params()
775 CRYPTO_THREAD_unlock(drbg->lock); in drbg_ctr_set_ctx_params()