Lines Matching refs:lock
277 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hash_instantiate_wrapper()
286 if (drbg->lock != NULL) in drbg_hash_instantiate_wrapper()
287 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hash_instantiate_wrapper()
388 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hash_uninstantiate_wrapper()
393 if (drbg->lock != NULL) in drbg_hash_uninstantiate_wrapper()
394 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hash_uninstantiate_wrapper()
405 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_hash_verify_zeroization()
414 if (drbg->lock != NULL) in drbg_hash_verify_zeroization()
415 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hash_verify_zeroization()
477 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_hash_get_ctx_params()
489 if (drbg->lock != NULL) in drbg_hash_get_ctx_params()
490 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hash_get_ctx_params()
553 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hash_set_ctx_params()
558 if (drbg->lock != NULL) in drbg_hash_set_ctx_params()
559 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hash_set_ctx_params()