Lines Matching refs:lock
150 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hmac_instantiate_wrapper()
159 if (drbg->lock != NULL) in drbg_hmac_instantiate_wrapper()
160 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hmac_instantiate_wrapper()
281 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hmac_uninstantiate_wrapper()
286 if (drbg->lock != NULL) in drbg_hmac_uninstantiate_wrapper()
287 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hmac_uninstantiate_wrapper()
298 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_hmac_verify_zeroization()
306 if (drbg->lock != NULL) in drbg_hmac_verify_zeroization()
307 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hmac_verify_zeroization()
370 if (drbg->lock != NULL && !CRYPTO_THREAD_read_lock(drbg->lock)) in drbg_hmac_get_ctx_params()
391 if (drbg->lock != NULL) in drbg_hmac_get_ctx_params()
392 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hmac_get_ctx_params()
456 if (drbg->lock != NULL && !CRYPTO_THREAD_write_lock(drbg->lock)) in drbg_hmac_set_ctx_params()
461 if (drbg->lock != NULL) in drbg_hmac_set_ctx_params()
462 CRYPTO_THREAD_unlock(drbg->lock); in drbg_hmac_set_ctx_params()