Home
last modified time | relevance | path

Searched refs:refcnt (Results 1 – 25 of 28) sorted by relevance

12

/openssl/include/internal/
H A Drefcount.h205 return CRYPTO_atomic_add(&refcnt->val, 1, ret, refcnt->lock); in CRYPTO_UP_REF()
211 return CRYPTO_atomic_add(&refcnt->val, -1, ret, refcnt->lock); in CRYPTO_DOWN_REF()
217 return CRYPTO_atomic_load_int(&refcnt->val, ret, refcnt->lock); in CRYPTO_GET_REF()
223 refcnt->val = n; in CRYPTO_NEW_REF()
234 if (refcnt != NULL) in CRYPTO_FREE_REF()
243 refcnt->val++; in CRYPTO_UP_REF()
244 *ret = refcnt->val; in CRYPTO_UP_REF()
251 refcnt->val--; in CRYPTO_DOWN_REF()
252 *ret = refcnt->val; in CRYPTO_DOWN_REF()
259 *ret = refcnt->val; in CRYPTO_GET_REF()
[all …]
/openssl/providers/implementations/keymgmt/
H A Dkdf_legacy_kmgmt.c40 if (!CRYPTO_NEW_REF(&kdfdata->refcnt, 1)) { in ossl_kdf_data_new()
56 CRYPTO_DOWN_REF(&kdfdata->refcnt, &ref); in ossl_kdf_data_free()
60 CRYPTO_FREE_REF(&kdfdata->refcnt); in ossl_kdf_data_free()
78 CRYPTO_UP_REF(&kdfdata->refcnt, &ref); in ossl_kdf_data_up_ref()
H A Dmac_legacy_kmgmt.c75 if (!CRYPTO_NEW_REF(&mackey->refcnt, 1)) { in ossl_mac_key_new()
92 CRYPTO_DOWN_REF(&mackey->refcnt, &ref); in ossl_mac_key_free()
99 CRYPTO_FREE_REF(&mackey->refcnt); in ossl_mac_key_free()
117 CRYPTO_UP_REF(&mackey->refcnt, &ref); in ossl_mac_key_up_ref()
/openssl/crypto/asn1/
H A Dtasn_utl.c72 CRYPTO_REF_COUNT *refcnt; in ossl_asn1_do_lock() local
82 refcnt = offset2ptr(*pval, aux->ref_offset); in ossl_asn1_do_lock()
86 if (!CRYPTO_NEW_REF(refcnt, 1)) in ossl_asn1_do_lock()
90 CRYPTO_FREE_REF(refcnt); in ossl_asn1_do_lock()
97 if (!CRYPTO_UP_REF(refcnt, &ret)) in ossl_asn1_do_lock()
101 if (!CRYPTO_DOWN_REF(refcnt, &ret)) in ossl_asn1_do_lock()
108 CRYPTO_FREE_REF(refcnt); in ossl_asn1_do_lock()
/openssl/crypto/evp/
H A Dcmeth_lib.c49 CRYPTO_REF_COUNT refcnt = to->refcnt; in EVP_CIPHER_meth_dup() local
52 to->refcnt = refcnt; in EVP_CIPHER_meth_dup()
H A Devp_rand.c29 CRYPTO_REF_COUNT refcnt; member
59 return CRYPTO_UP_REF(&rand->refcnt, &ref); in evp_rand_up_ref()
70 CRYPTO_DOWN_REF(&rand->refcnt, &ref); in evp_rand_free()
75 CRYPTO_FREE_REF(&rand->refcnt); in evp_rand_free()
86 if (!CRYPTO_NEW_REF(&rand->refcnt, 1)) { in evp_rand_new()
339 return CRYPTO_UP_REF(&ctx->refcnt, &ref); in EVP_RAND_CTX_up_ref()
356 if (!CRYPTO_NEW_REF(&ctx->refcnt, 1)) { in EVP_RAND_CTX_new()
363 CRYPTO_FREE_REF(&ctx->refcnt); in EVP_RAND_CTX_new()
375 CRYPTO_FREE_REF(&ctx->refcnt); in EVP_RAND_CTX_new()
393 CRYPTO_DOWN_REF(&ctx->refcnt, &ref); in EVP_RAND_CTX_free()
[all …]
H A Devp_local.h90 CRYPTO_REF_COUNT refcnt; /* Context reference count */ member
103 CRYPTO_REF_COUNT refcnt; member
146 CRYPTO_REF_COUNT refcnt; member
165 CRYPTO_REF_COUNT refcnt; member
208 CRYPTO_REF_COUNT refcnt; member
228 CRYPTO_REF_COUNT refcnt; member
H A Dmac_meth.c24 CRYPTO_UP_REF(&mac->refcnt, &ref); in evp_mac_up_ref()
36 CRYPTO_DOWN_REF(&mac->refcnt, &ref); in evp_mac_free()
41 CRYPTO_FREE_REF(&mac->refcnt); in evp_mac_free()
50 || !CRYPTO_NEW_REF(&mac->refcnt, 1)) { in evp_mac_new()
H A Dkdf_meth.c25 CRYPTO_UP_REF(&kdf->refcnt, &ref); in evp_kdf_up_ref()
37 CRYPTO_DOWN_REF(&kdf->refcnt, &ref); in evp_kdf_free()
42 CRYPTO_FREE_REF(&kdf->refcnt); in evp_kdf_free()
51 || !CRYPTO_NEW_REF(&kdf->refcnt, 1)) { in evp_kdf_new()
H A Dkem.c281 if (!CRYPTO_NEW_REF(&kem->refcnt, 1)) { in evp_kem_new()
428 CRYPTO_DOWN_REF(&kem->refcnt, &i); in EVP_KEM_free()
433 CRYPTO_FREE_REF(&kem->refcnt); in EVP_KEM_free()
441 CRYPTO_UP_REF(&kem->refcnt, &ref); in EVP_KEM_up_ref()
H A Dasymcipher.c327 if (!CRYPTO_NEW_REF(&cipher->refcnt, 1)) { in evp_asym_cipher_new()
460 CRYPTO_DOWN_REF(&cipher->refcnt, &i); in EVP_ASYM_CIPHER_free()
465 CRYPTO_FREE_REF(&cipher->refcnt); in EVP_ASYM_CIPHER_free()
473 CRYPTO_UP_REF(&cipher->refcnt, &ref); in EVP_ASYM_CIPHER_up_ref()
H A Dexchange.c28 if (!CRYPTO_NEW_REF(&exchange->refcnt, 1)) { in evp_keyexch_new()
148 CRYPTO_DOWN_REF(&exchange->refcnt, &i); in EVP_KEYEXCH_free()
153 CRYPTO_FREE_REF(&exchange->refcnt); in EVP_KEYEXCH_free()
161 CRYPTO_UP_REF(&exchange->refcnt, &ref); in EVP_KEYEXCH_up_ref()
H A Dkeymgmt_meth.c26 if (!CRYPTO_NEW_REF(&keymgmt->refcnt, 1)) { in keymgmt_new()
288 CRYPTO_UP_REF(&keymgmt->refcnt, &ref); in EVP_KEYMGMT_up_ref()
299 CRYPTO_DOWN_REF(&keymgmt->refcnt, &ref); in EVP_KEYMGMT_free()
304 CRYPTO_FREE_REF(&keymgmt->refcnt); in EVP_KEYMGMT_free()
H A Dsignature.c30 if (!CRYPTO_NEW_REF(&signature->refcnt, 1)) { in evp_signature_new()
380 CRYPTO_DOWN_REF(&signature->refcnt, &i); in EVP_SIGNATURE_free()
385 CRYPTO_FREE_REF(&signature->refcnt); in EVP_SIGNATURE_free()
393 CRYPTO_UP_REF(&signature->refcnt, &ref); in EVP_SIGNATURE_up_ref()
H A Devp_lib.c851 CRYPTO_REF_COUNT refcnt = to->refcnt; in EVP_MD_meth_dup() local
854 to->refcnt = refcnt; in EVP_MD_meth_dup()
864 CRYPTO_FREE_REF(&md->refcnt); in evp_md_free_int()
/openssl/doc/internal/man3/
H A Devp_generic_fetch.pod102 CRYPTO_REF_COUNT refcnt;
124 if (!CRYPTO_NEW_REF(&foo->refcnt, 1)) {
164 CRYPTO_DOWN_REF(&foo->refcnt, &i);
168 CRYPTO_FREE_REF(&foo->refcnt);
185 CRYPTO_UP_REF(&foo->refcnt, &ref);
/openssl/crypto/store/
H A Dstore_meth.c24 CRYPTO_UP_REF(&loader->refcnt, &ref); in OSSL_STORE_LOADER_up_ref()
33 CRYPTO_DOWN_REF(&loader->refcnt, &i); in OSSL_STORE_LOADER_free()
37 CRYPTO_FREE_REF(&loader->refcnt); in OSSL_STORE_LOADER_free()
51 || !CRYPTO_NEW_REF(&loader->refcnt, 1)) { in new_loader()
H A Dstore_local.h105 CRYPTO_REF_COUNT refcnt; member
/openssl/providers/implementations/include/prov/
H A Dkdfexchange.h16 CRYPTO_REF_COUNT refcnt; member
H A Dmacsignature.h17 CRYPTO_REF_COUNT refcnt; member
/openssl/crypto/encode_decode/
H A Ddecoder_meth.c34 if (!CRYPTO_NEW_REF(&decoder->base.refcnt, 1)) { in ossl_decoder_new()
46 CRYPTO_UP_REF(&decoder->base.refcnt, &ref); in OSSL_DECODER_up_ref()
57 CRYPTO_DOWN_REF(&decoder->base.refcnt, &ref); in OSSL_DECODER_free()
63 CRYPTO_FREE_REF(&decoder->base.refcnt); in OSSL_DECODER_free()
H A Dencoder_meth.c34 if (!CRYPTO_NEW_REF(&encoder->base.refcnt, 1)) { in ossl_encoder_new()
46 CRYPTO_UP_REF(&encoder->base.refcnt, &ref); in OSSL_ENCODER_up_ref()
57 CRYPTO_DOWN_REF(&encoder->base.refcnt, &ref); in OSSL_ENCODER_free()
63 CRYPTO_FREE_REF(&encoder->base.refcnt); in OSSL_ENCODER_free()
H A Dencoder_local.h27 CRYPTO_REF_COUNT refcnt; member
/openssl/crypto/
H A Dprovider_core.c151 CRYPTO_REF_COUNT refcnt; member
446 if (!CRYPTO_NEW_REF(&prov->refcnt, 1)) { in provider_new()
479 if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0) in ossl_provider_up_ref()
709 CRYPTO_DOWN_REF(&prov->refcnt, &ref); in ossl_provider_free()
752 CRYPTO_FREE_REF(&prov->refcnt); in ossl_provider_free()
1457 if (CRYPTO_UP_REF(&prov->refcnt, &ref) <= 0) { in ossl_provider_doall_activated()
1469 CRYPTO_DOWN_REF(&prov->refcnt, &ref); in ossl_provider_doall_activated()
1530 if (!CRYPTO_DOWN_REF(&prov->refcnt, &ref)) { in ossl_provider_doall_activated()
/openssl/include/crypto/
H A Devp.h215 CRYPTO_REF_COUNT refcnt; member
236 CRYPTO_REF_COUNT refcnt; member
280 CRYPTO_REF_COUNT refcnt; member
336 CRYPTO_REF_COUNT refcnt; member

Completed in 72 milliseconds

12