Lines Matching refs:kdfdata
31 KDF_DATA *kdfdata; in ossl_kdf_data_new() local
36 kdfdata = OPENSSL_zalloc(sizeof(*kdfdata)); in ossl_kdf_data_new()
37 if (kdfdata == NULL) in ossl_kdf_data_new()
40 if (!CRYPTO_NEW_REF(&kdfdata->refcnt, 1)) { in ossl_kdf_data_new()
41 OPENSSL_free(kdfdata); in ossl_kdf_data_new()
44 kdfdata->libctx = PROV_LIBCTX_OF(provctx); in ossl_kdf_data_new()
46 return kdfdata; in ossl_kdf_data_new()
49 void ossl_kdf_data_free(KDF_DATA *kdfdata) in ossl_kdf_data_free() argument
53 if (kdfdata == NULL) in ossl_kdf_data_free()
56 CRYPTO_DOWN_REF(&kdfdata->refcnt, &ref); in ossl_kdf_data_free()
60 CRYPTO_FREE_REF(&kdfdata->refcnt); in ossl_kdf_data_free()
61 OPENSSL_free(kdfdata); in ossl_kdf_data_free()
64 int ossl_kdf_data_up_ref(KDF_DATA *kdfdata) in ossl_kdf_data_up_ref() argument
78 CRYPTO_UP_REF(&kdfdata->refcnt, &ref); in ossl_kdf_data_up_ref()
87 static void kdf_freedata(void *kdfdata) in kdf_freedata() argument
89 ossl_kdf_data_free(kdfdata); in kdf_freedata()