/openssl/include/internal/ |
H A D | refcount.h | 205 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 D | kdf_legacy_kmgmt.c | 40 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 D | mac_legacy_kmgmt.c | 75 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 D | tasn_utl.c | 72 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 D | cmeth_lib.c | 49 CRYPTO_REF_COUNT refcnt = to->refcnt; in EVP_CIPHER_meth_dup() local 52 to->refcnt = refcnt; in EVP_CIPHER_meth_dup()
|
H A D | evp_rand.c | 29 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 D | evp_local.h | 90 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 D | mac_meth.c | 24 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 D | kdf_meth.c | 25 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 D | kem.c | 281 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 D | asymcipher.c | 327 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 D | exchange.c | 28 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 D | keymgmt_meth.c | 26 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 D | signature.c | 30 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 D | evp_lib.c | 851 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 D | evp_generic_fetch.pod | 102 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 D | store_meth.c | 24 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 D | store_local.h | 105 CRYPTO_REF_COUNT refcnt; member
|
/openssl/providers/implementations/include/prov/ |
H A D | kdfexchange.h | 16 CRYPTO_REF_COUNT refcnt; member
|
H A D | macsignature.h | 17 CRYPTO_REF_COUNT refcnt; member
|
/openssl/crypto/encode_decode/ |
H A D | decoder_meth.c | 34 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 D | encoder_meth.c | 34 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 D | encoder_local.h | 27 CRYPTO_REF_COUNT refcnt; member
|
/openssl/crypto/ |
H A D | provider_core.c | 151 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 D | evp.h | 215 CRYPTO_REF_COUNT refcnt; member 236 CRYPTO_REF_COUNT refcnt; member 280 CRYPTO_REF_COUNT refcnt; member 336 CRYPTO_REF_COUNT refcnt; member
|