Lines Matching refs:dngbl
272 PROV_DRBG_NONCE_GLOBAL *dngbl = OPENSSL_zalloc(sizeof(*dngbl)); in ossl_prov_drbg_nonce_ctx_new() local
274 if (dngbl == NULL) in ossl_prov_drbg_nonce_ctx_new()
277 dngbl->rand_nonce_lock = CRYPTO_THREAD_lock_new(); in ossl_prov_drbg_nonce_ctx_new()
278 if (dngbl->rand_nonce_lock == NULL) { in ossl_prov_drbg_nonce_ctx_new()
279 OPENSSL_free(dngbl); in ossl_prov_drbg_nonce_ctx_new()
283 return dngbl; in ossl_prov_drbg_nonce_ctx_new()
288 PROV_DRBG_NONCE_GLOBAL *dngbl = vdngbl; in ossl_prov_drbg_nonce_ctx_free() local
290 if (dngbl == NULL) in ossl_prov_drbg_nonce_ctx_free()
293 CRYPTO_THREAD_lock_free(dngbl->rand_nonce_lock); in ossl_prov_drbg_nonce_ctx_free()
295 OPENSSL_free(dngbl); in ossl_prov_drbg_nonce_ctx_free()
305 PROV_DRBG_NONCE_GLOBAL *dngbl in prov_drbg_get_nonce() local
312 if (dngbl == NULL) in prov_drbg_get_nonce()
332 if (!CRYPTO_atomic_add(&dngbl->rand_nonce_count, 1, &data.count, in prov_drbg_get_nonce()
333 dngbl->rand_nonce_lock)) in prov_drbg_get_nonce()