crypto/krb5/src/lib/crypto/openssl/kdf.c
118
EVP_KDF_free(kdf);
crypto/krb5/src/lib/crypto/openssl/kdf.c
128
EVP_KDF *kdf = NULL;
crypto/krb5/src/lib/crypto/openssl/kdf.c
142
kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL);
crypto/krb5/src/lib/crypto/openssl/kdf.c
143
if (!kdf) {
crypto/krb5/src/lib/crypto/openssl/kdf.c
148
kctx = EVP_KDF_CTX_new(kdf);
crypto/krb5/src/lib/crypto/openssl/kdf.c
177
EVP_KDF_free(kdf);
crypto/krb5/src/lib/crypto/openssl/kdf.c
187
EVP_KDF *kdf = NULL;
crypto/krb5/src/lib/crypto/openssl/kdf.c
203
kdf = EVP_KDF_fetch(NULL, "KRB5KDF", NULL);
crypto/krb5/src/lib/crypto/openssl/kdf.c
204
if (kdf == NULL) {
crypto/krb5/src/lib/crypto/openssl/kdf.c
209
kctx = EVP_KDF_CTX_new(kdf);
crypto/krb5/src/lib/crypto/openssl/kdf.c
232
EVP_KDF_free(kdf);
crypto/krb5/src/lib/crypto/openssl/kdf.c
74
EVP_KDF *kdf = NULL;
crypto/krb5/src/lib/crypto/openssl/kdf.c
85
kdf = EVP_KDF_fetch(NULL, "KBKDF", NULL);
crypto/krb5/src/lib/crypto/openssl/kdf.c
86
if (!kdf) {
crypto/krb5/src/lib/crypto/openssl/kdf.c
91
kctx = EVP_KDF_CTX_new(kdf);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
2671
EVP_KDF *kdf = NULL;
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
2679
kdf = EVP_KDF_fetch(NULL, "SSKDF", NULL);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
2680
if (kdf == NULL) {
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
2685
kctx = EVP_KDF_CTX_new(kdf);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_crypto_openssl.c
2708
EVP_KDF_free(kdf);
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
93
#define TRACE_PKINIT_KDF_ALG(c, kdf, keyblock) \
crypto/krb5/src/plugins/preauth/pkinit/pkinit_trace.h
95
kdf, keyblock)
crypto/openssh/sshkey.c
2852
struct sshbuf *encoded = NULL, *encrypted = NULL, *kdf = NULL;
crypto/openssh/sshkey.c
2866
if ((kdf = sshbuf_new()) == NULL ||
crypto/openssh/sshkey.c
2887
if ((r = sshbuf_put_string(kdf, salt, SALT_LEN)) != 0 ||
crypto/openssh/sshkey.c
2888
(r = sshbuf_put_u32(kdf, rounds)) != 0)
crypto/openssh/sshkey.c
2902
(r = sshbuf_put_stringb(encoded, kdf)) != 0 ||
crypto/openssh/sshkey.c
2953
sshbuf_free(kdf);
crypto/openssh/sshkey.c
3048
struct sshbuf *kdf = NULL, *decrypted = NULL;
crypto/openssh/sshkey.c
3069
(r = sshbuf_froms(decoded, &kdf)) != 0 ||
crypto/openssh/sshkey.c
3118
if ((r = sshbuf_get_string(kdf, &salt, &slen)) != 0 ||
crypto/openssh/sshkey.c
3119
(r = sshbuf_get_u32(kdf, &rounds)) != 0)
crypto/openssh/sshkey.c
3182
sshbuf_free(kdf);
crypto/openssh/umac.c
227
kdf(buf, prf_key, 0, UMAC_KEY_LEN);
crypto/openssh/umac.c
606
kdf(hc->nh_key, prf_key, 1, sizeof(hc->nh_key));
crypto/openssh/umac.c
971
kdf(buf, prf_key, 2, sizeof(buf)); /* Fill buffer with index 1 key */
crypto/openssh/umac.c
985
kdf(buf, prf_key, 3, sizeof(buf)); /* Fill buffer with index 2 key */
crypto/openssh/umac.c
996
kdf(ahc->ip_trans, prf_key, 4, STREAMS * sizeof(UINT32));
crypto/openssl/apps/kdf.c
146
if ((kdf = EVP_KDF_fetch(app_get0_libctx(), argv[0],
crypto/openssl/apps/kdf.c
153
ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/apps/kdf.c
159
OSSL_PARAM *params = app_params_new_from_opts(opts, EVP_KDF_settable_ctx_params(kdf));
crypto/openssl/apps/kdf.c
208
EVP_KDF_free(kdf);
crypto/openssl/apps/kdf.c
85
EVP_KDF *kdf = NULL;
crypto/openssl/apps/list.c
320
static void collect_kdfs(EVP_KDF *kdf, void *stack)
crypto/openssl/apps/list.c
324
if (is_kdf_fetchable(kdf)
crypto/openssl/apps/list.c
325
&& EVP_KDF_up_ref(kdf)
crypto/openssl/apps/list.c
326
&& sk_EVP_KDF_push(kdf_stack, kdf) <= 0)
crypto/openssl/apps/list.c
327
EVP_KDF_free(kdf); /* up-ref successful but push to stack failed */
crypto/openssl/apps/list.c
58
IS_FETCHABLE(kdf, EVP_KDF)
crypto/openssl/apps/pkcs12.c
1212
PBKDF2PARAM *kdf = NULL;
crypto/openssl/apps/pkcs12.c
1215
kdf = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBKDF2PARAM));
crypto/openssl/apps/pkcs12.c
1216
if (kdf == NULL) {
crypto/openssl/apps/pkcs12.c
1221
if (kdf->prf == NULL) {
crypto/openssl/apps/pkcs12.c
1224
X509_ALGOR_get0(&aoid, NULL, NULL, kdf->prf);
crypto/openssl/apps/pkcs12.c
1228
ASN1_INTEGER_get(kdf->iter), OBJ_nid2sn(prfnid));
crypto/openssl/apps/pkcs12.c
1229
PBKDF2PARAM_free(kdf);
crypto/openssl/apps/pkcs12.c
1232
SCRYPT_PARAMS *kdf = NULL;
crypto/openssl/apps/pkcs12.c
1235
kdf = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(SCRYPT_PARAMS));
crypto/openssl/apps/pkcs12.c
1236
if (kdf == NULL) {
crypto/openssl/apps/pkcs12.c
1242
ASN1_STRING_length(kdf->salt),
crypto/openssl/apps/pkcs12.c
1243
ASN1_INTEGER_get(kdf->costParameter),
crypto/openssl/apps/pkcs12.c
1244
ASN1_INTEGER_get(kdf->blockSize),
crypto/openssl/apps/pkcs12.c
1245
ASN1_INTEGER_get(kdf->parallelizationParameter));
crypto/openssl/apps/pkcs12.c
1246
SCRYPT_PARAMS_free(kdf);
crypto/openssl/crypto/asn1/p5_pbev2.c
185
PBKDF2PARAM *kdf = NULL;
crypto/openssl/crypto/asn1/p5_pbev2.c
188
if ((kdf = PBKDF2PARAM_new()) == NULL) {
crypto/openssl/crypto/asn1/p5_pbev2.c
197
kdf->salt->value.octet_string = osalt;
crypto/openssl/crypto/asn1/p5_pbev2.c
198
kdf->salt->type = V_ASN1_OCTET_STRING;
crypto/openssl/crypto/asn1/p5_pbev2.c
221
if (!ASN1_INTEGER_set(kdf->iter, iter)) {
crypto/openssl/crypto/asn1/p5_pbev2.c
229
if ((kdf->keylength = ASN1_INTEGER_new()) == NULL) {
crypto/openssl/crypto/asn1/p5_pbev2.c
233
if (!ASN1_INTEGER_set(kdf->keylength, keylen)) {
crypto/openssl/crypto/asn1/p5_pbev2.c
241
kdf->prf = ossl_X509_ALGOR_from_nid(prf_nid, V_ASN1_NULL, NULL);
crypto/openssl/crypto/asn1/p5_pbev2.c
242
if (kdf->prf == NULL) {
crypto/openssl/crypto/asn1/p5_pbev2.c
260
if (!ASN1_TYPE_pack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), kdf,
crypto/openssl/crypto/asn1/p5_pbev2.c
266
PBKDF2PARAM_free(kdf);
crypto/openssl/crypto/asn1/p5_pbev2.c
270
PBKDF2PARAM_free(kdf);
crypto/openssl/crypto/deterministic_nonce.c
137
EVP_KDF *kdf = NULL;
crypto/openssl/crypto/deterministic_nonce.c
140
kdf = EVP_KDF_fetch(libctx, "HMAC-DRBG-KDF", propq);
crypto/openssl/crypto/deterministic_nonce.c
141
ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/deterministic_nonce.c
142
EVP_KDF_free(kdf);
crypto/openssl/crypto/dh/dh_kdf.c
36
EVP_KDF *kdf = NULL;
crypto/openssl/crypto/dh/dh_kdf.c
40
kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X942KDF_ASN1, propq);
crypto/openssl/crypto/dh/dh_kdf.c
41
if (kdf == NULL)
crypto/openssl/crypto/dh/dh_kdf.c
43
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/dh/dh_kdf.c
60
EVP_KDF_free(kdf);
crypto/openssl/crypto/ec/ecdh_kdf.c
34
EVP_KDF *kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_X963KDF, propq);
crypto/openssl/crypto/ec/ecdh_kdf.c
36
if ((kctx = EVP_KDF_CTX_new(kdf)) != NULL) {
crypto/openssl/crypto/ec/ecdh_kdf.c
48
EVP_KDF_free(kdf);
crypto/openssl/crypto/evp/dh_ctrl.c
180
int EVP_PKEY_CTX_set_dh_kdf_type(EVP_PKEY_CTX *ctx, int kdf)
crypto/openssl/crypto/evp/dh_ctrl.c
183
EVP_PKEY_CTRL_DH_KDF_TYPE, kdf, NULL);
crypto/openssl/crypto/evp/ec_ctrl.c
110
int EVP_PKEY_CTX_set_ecdh_kdf_type(EVP_PKEY_CTX *ctx, int kdf)
crypto/openssl/crypto/evp/ec_ctrl.c
113
EVP_PKEY_CTRL_EC_KDF_TYPE, kdf, NULL);
crypto/openssl/crypto/evp/kdf_lib.c
101
const OSSL_PROVIDER *EVP_KDF_get0_provider(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_lib.c
103
return kdf->prov;
crypto/openssl/crypto/evp/kdf_lib.c
153
int EVP_KDF_get_params(EVP_KDF *kdf, OSSL_PARAM params[])
crypto/openssl/crypto/evp/kdf_lib.c
155
if (kdf->get_params != NULL)
crypto/openssl/crypto/evp/kdf_lib.c
156
return kdf->get_params(params);
crypto/openssl/crypto/evp/kdf_lib.c
174
int EVP_KDF_names_do_all(const EVP_KDF *kdf,
crypto/openssl/crypto/evp/kdf_lib.c
178
if (kdf->prov != NULL)
crypto/openssl/crypto/evp/kdf_lib.c
179
return evp_names_do_all(kdf->prov, kdf->name_id, fn, data);
crypto/openssl/crypto/evp/kdf_lib.c
23
EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_lib.c
27
if (kdf == NULL)
crypto/openssl/crypto/evp/kdf_lib.c
32
|| (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL
crypto/openssl/crypto/evp/kdf_lib.c
33
|| !EVP_KDF_up_ref(kdf)) {
crypto/openssl/crypto/evp/kdf_lib.c
36
kdf->freectx(ctx->algctx);
crypto/openssl/crypto/evp/kdf_lib.c
40
ctx->meth = kdf;
crypto/openssl/crypto/evp/kdf_lib.c
81
int evp_kdf_get_number(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_lib.c
83
return kdf->name_id;
crypto/openssl/crypto/evp/kdf_lib.c
86
const char *EVP_KDF_get0_name(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_lib.c
88
return kdf->type_name;
crypto/openssl/crypto/evp/kdf_lib.c
91
const char *EVP_KDF_get0_description(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_lib.c
93
return kdf->description;
crypto/openssl/crypto/evp/kdf_lib.c
96
int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name)
crypto/openssl/crypto/evp/kdf_lib.c
98
return kdf != NULL && evp_is_a(kdf->prov, kdf->name_id, NULL, name);
crypto/openssl/crypto/evp/kdf_meth.c
101
if (kdf->derive != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
103
kdf->derive = OSSL_FUNC_kdf_derive(fns);
crypto/openssl/crypto/evp/kdf_meth.c
107
if (kdf->gettable_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
109
kdf->gettable_params = OSSL_FUNC_kdf_gettable_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
112
if (kdf->gettable_ctx_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
114
kdf->gettable_ctx_params = OSSL_FUNC_kdf_gettable_ctx_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
117
if (kdf->settable_ctx_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
119
kdf->settable_ctx_params = OSSL_FUNC_kdf_settable_ctx_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
122
if (kdf->get_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
124
kdf->get_params = OSSL_FUNC_kdf_get_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
127
if (kdf->get_ctx_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
129
kdf->get_ctx_params = OSSL_FUNC_kdf_get_ctx_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
132
if (kdf->set_ctx_params != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
134
kdf->set_ctx_params = OSSL_FUNC_kdf_set_ctx_params(fns);
crypto/openssl/crypto/evp/kdf_meth.c
150
kdf->prov = prov;
crypto/openssl/crypto/evp/kdf_meth.c
152
return kdf;
crypto/openssl/crypto/evp/kdf_meth.c
155
evp_kdf_free(kdf);
crypto/openssl/crypto/evp/kdf_meth.c
167
int EVP_KDF_up_ref(EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_meth.c
169
return evp_kdf_up_ref(kdf);
crypto/openssl/crypto/evp/kdf_meth.c
172
void EVP_KDF_free(EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_meth.c
174
evp_kdf_free(kdf);
crypto/openssl/crypto/evp/kdf_meth.c
177
const OSSL_PARAM *EVP_KDF_gettable_params(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_meth.c
179
if (kdf->gettable_params == NULL)
crypto/openssl/crypto/evp/kdf_meth.c
181
return kdf->gettable_params(ossl_provider_ctx(EVP_KDF_get0_provider(kdf)));
crypto/openssl/crypto/evp/kdf_meth.c
184
const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_meth.c
188
if (kdf->gettable_ctx_params == NULL)
crypto/openssl/crypto/evp/kdf_meth.c
190
alg = ossl_provider_ctx(EVP_KDF_get0_provider(kdf));
crypto/openssl/crypto/evp/kdf_meth.c
191
return kdf->gettable_ctx_params(NULL, alg);
crypto/openssl/crypto/evp/kdf_meth.c
194
const OSSL_PARAM *EVP_KDF_settable_ctx_params(const EVP_KDF *kdf)
crypto/openssl/crypto/evp/kdf_meth.c
198
if (kdf->settable_ctx_params == NULL)
crypto/openssl/crypto/evp/kdf_meth.c
200
alg = ossl_provider_ctx(EVP_KDF_get0_provider(kdf));
crypto/openssl/crypto/evp/kdf_meth.c
201
return kdf->settable_ctx_params(NULL, alg);
crypto/openssl/crypto/evp/kdf_meth.c
22
EVP_KDF *kdf = (EVP_KDF *)vkdf;
crypto/openssl/crypto/evp/kdf_meth.c
225
void (*fn)(EVP_KDF *kdf, void *arg),
crypto/openssl/crypto/evp/kdf_meth.c
25
CRYPTO_UP_REF(&kdf->refcnt, &ref);
crypto/openssl/crypto/evp/kdf_meth.c
31
EVP_KDF *kdf = (EVP_KDF *)vkdf;
crypto/openssl/crypto/evp/kdf_meth.c
34
if (kdf == NULL)
crypto/openssl/crypto/evp/kdf_meth.c
37
CRYPTO_DOWN_REF(&kdf->refcnt, &ref);
crypto/openssl/crypto/evp/kdf_meth.c
40
OPENSSL_free(kdf->type_name);
crypto/openssl/crypto/evp/kdf_meth.c
41
ossl_provider_free(kdf->prov);
crypto/openssl/crypto/evp/kdf_meth.c
42
CRYPTO_FREE_REF(&kdf->refcnt);
crypto/openssl/crypto/evp/kdf_meth.c
43
OPENSSL_free(kdf);
crypto/openssl/crypto/evp/kdf_meth.c
48
EVP_KDF *kdf = NULL;
crypto/openssl/crypto/evp/kdf_meth.c
50
if ((kdf = OPENSSL_zalloc(sizeof(*kdf))) == NULL
crypto/openssl/crypto/evp/kdf_meth.c
51
|| !CRYPTO_NEW_REF(&kdf->refcnt, 1)) {
crypto/openssl/crypto/evp/kdf_meth.c
52
OPENSSL_free(kdf);
crypto/openssl/crypto/evp/kdf_meth.c
55
return kdf;
crypto/openssl/crypto/evp/kdf_meth.c
63
EVP_KDF *kdf = NULL;
crypto/openssl/crypto/evp/kdf_meth.c
66
if ((kdf = evp_kdf_new()) == NULL) {
crypto/openssl/crypto/evp/kdf_meth.c
70
kdf->name_id = name_id;
crypto/openssl/crypto/evp/kdf_meth.c
71
if ((kdf->type_name = ossl_algorithm_get1_first_name(algodef)) == NULL)
crypto/openssl/crypto/evp/kdf_meth.c
74
kdf->description = algodef->algorithm_description;
crypto/openssl/crypto/evp/kdf_meth.c
79
if (kdf->newctx != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
81
kdf->newctx = OSSL_FUNC_kdf_newctx(fns);
crypto/openssl/crypto/evp/kdf_meth.c
85
if (kdf->dupctx != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
87
kdf->dupctx = OSSL_FUNC_kdf_dupctx(fns);
crypto/openssl/crypto/evp/kdf_meth.c
90
if (kdf->freectx != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
92
kdf->freectx = OSSL_FUNC_kdf_freectx(fns);
crypto/openssl/crypto/evp/kdf_meth.c
96
if (kdf->reset != NULL)
crypto/openssl/crypto/evp/kdf_meth.c
98
kdf->reset = OSSL_FUNC_kdf_reset(fns);
crypto/openssl/crypto/evp/p5_crpt.c
39
EVP_KDF *kdf;
crypto/openssl/crypto/evp/p5_crpt.c
83
kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF1, propq);
crypto/openssl/crypto/evp/p5_crpt.c
84
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/evp/p5_crpt.c
85
EVP_KDF_free(kdf);
crypto/openssl/crypto/evp/p5_crpt2.c
122
EVP_PBE_KEYGEN_EX *kdf;
crypto/openssl/crypto/evp/p5_crpt2.c
134
NULL, NULL, NULL, &kdf)) {
crypto/openssl/crypto/evp/p5_crpt2.c
167
rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq);
crypto/openssl/crypto/evp/p5_crpt2.c
191
PBKDF2PARAM *kdf = NULL;
crypto/openssl/crypto/evp/p5_crpt2.c
204
kdf = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), param);
crypto/openssl/crypto/evp/p5_crpt2.c
206
if (kdf == NULL) {
crypto/openssl/crypto/evp/p5_crpt2.c
220
if (kdf->keylength && (ASN1_INTEGER_get(kdf->keylength) != (int)keylen)) {
crypto/openssl/crypto/evp/p5_crpt2.c
225
if (kdf->prf)
crypto/openssl/crypto/evp/p5_crpt2.c
226
prf_nid = OBJ_obj2nid(kdf->prf->algorithm);
crypto/openssl/crypto/evp/p5_crpt2.c
246
if (kdf->salt->type != V_ASN1_OCTET_STRING) {
crypto/openssl/crypto/evp/p5_crpt2.c
252
salt = kdf->salt->value.octet_string->data;
crypto/openssl/crypto/evp/p5_crpt2.c
253
saltlen = kdf->salt->value.octet_string->length;
crypto/openssl/crypto/evp/p5_crpt2.c
254
iter = ASN1_INTEGER_get(kdf->iter);
crypto/openssl/crypto/evp/p5_crpt2.c
261
PBKDF2PARAM_free(kdf);
crypto/openssl/crypto/evp/p5_crpt2.c
29
EVP_KDF *kdf;
crypto/openssl/crypto/evp/p5_crpt2.c
44
kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF2, propq);
crypto/openssl/crypto/evp/p5_crpt2.c
45
if (kdf == NULL)
crypto/openssl/crypto/evp/p5_crpt2.c
47
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/evp/p5_crpt2.c
48
EVP_KDF_free(kdf);
crypto/openssl/crypto/evp/pbe_scrypt.c
45
EVP_KDF *kdf;
crypto/openssl/crypto/evp/pbe_scrypt.c
67
kdf = EVP_KDF_fetch(ctx, OSSL_KDF_NAME_SCRYPT, propq);
crypto/openssl/crypto/evp/pbe_scrypt.c
68
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/evp/pbe_scrypt.c
69
EVP_KDF_free(kdf);
crypto/openssl/crypto/hpke/hpke_util.c
396
EVP_KDF *kdf;
crypto/openssl/crypto/hpke/hpke_util.c
399
kdf = EVP_KDF_fetch(libctx, kdfname, propq);
crypto/openssl/crypto/hpke/hpke_util.c
400
if (kdf == NULL) {
crypto/openssl/crypto/hpke/hpke_util.c
404
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/hpke/hpke_util.c
405
EVP_KDF_free(kdf);
crypto/openssl/crypto/hpke/hpke_util.c
453
uint16_t kem = 0, kdf = 0, aead = 0;
crypto/openssl/crypto/hpke/hpke_util.c
505
&& (kdf = synonyms_name2id(st, kdfstrtab,
crypto/openssl/crypto/hpke/hpke_util.c
524
suite->kdf_id = kdf;
crypto/openssl/crypto/ml_kem/ml_kem.c
1821
if (!kdf(failure_key, key->z, ctext, vinfo->ctext_bytes, mdctx, key)) {
crypto/openssl/crypto/pem/pvkfmt.c
827
EVP_KDF *kdf;
crypto/openssl/crypto/pem/pvkfmt.c
832
if ((kdf = EVP_KDF_fetch(libctx, "PVKKDF", propq)) == NULL)
crypto/openssl/crypto/pem/pvkfmt.c
834
ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/pem/pvkfmt.c
835
EVP_KDF_free(kdf);
crypto/openssl/crypto/pkcs12/p12_key.c
85
EVP_KDF *kdf;
crypto/openssl/crypto/pkcs12/p12_key.c
92
kdf = EVP_KDF_fetch(libctx, "PKCS12KDF", propq);
crypto/openssl/crypto/pkcs12/p12_key.c
93
if (kdf == NULL)
crypto/openssl/crypto/pkcs12/p12_key.c
95
ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/crypto/pkcs12/p12_key.c
96
EVP_KDF_free(kdf);
crypto/openssl/crypto/pkcs12/p12_npas.c
204
PBKDF2PARAM *kdf = NULL;
crypto/openssl/crypto/pkcs12/p12_npas.c
221
kdf = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBKDF2PARAM));
crypto/openssl/crypto/pkcs12/p12_npas.c
222
if (kdf == NULL)
crypto/openssl/crypto/pkcs12/p12_npas.c
226
if (kdf->salt->type != V_ASN1_OCTET_STRING)
crypto/openssl/crypto/pkcs12/p12_npas.c
229
if (kdf->prf == NULL) {
crypto/openssl/crypto/pkcs12/p12_npas.c
232
X509_ALGOR_get0(&aoid, NULL, NULL, kdf->prf);
crypto/openssl/crypto/pkcs12/p12_npas.c
235
*psaltlen = kdf->salt->value.octet_string->length;
crypto/openssl/crypto/pkcs12/p12_npas.c
236
*piter = ASN1_INTEGER_get(kdf->iter);
crypto/openssl/crypto/pkcs12/p12_npas.c
253
if (kdf != NULL)
crypto/openssl/crypto/pkcs12/p12_npas.c
254
PBKDF2PARAM_free(kdf);
crypto/openssl/demos/kdf/argon2.c
153
EVP_KDF_free(kdf);
crypto/openssl/demos/kdf/argon2.c
78
EVP_KDF *kdf = NULL;
crypto/openssl/demos/kdf/argon2.c
92
kdf = EVP_KDF_fetch(library_context, "argon2id", NULL);
crypto/openssl/demos/kdf/argon2.c
93
if (kdf == NULL) {
crypto/openssl/demos/kdf/argon2.c
99
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/demos/kdf/hkdf.c
103
EVP_KDF_free(kdf);
crypto/openssl/demos/kdf/hkdf.c
47
EVP_KDF *kdf = NULL;
crypto/openssl/demos/kdf/hkdf.c
60
kdf = EVP_KDF_fetch(library_context, "HKDF", NULL);
crypto/openssl/demos/kdf/hkdf.c
61
if (kdf == NULL) {
crypto/openssl/demos/kdf/hkdf.c
67
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/demos/kdf/pbkdf2.c
116
EVP_KDF_free(kdf);
crypto/openssl/demos/kdf/pbkdf2.c
61
EVP_KDF *kdf = NULL;
crypto/openssl/demos/kdf/pbkdf2.c
74
kdf = EVP_KDF_fetch(library_context, "PBKDF2", NULL);
crypto/openssl/demos/kdf/pbkdf2.c
75
if (kdf == NULL) {
crypto/openssl/demos/kdf/pbkdf2.c
81
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/demos/kdf/scrypt.c
119
EVP_KDF_free(kdf);
crypto/openssl/demos/kdf/scrypt.c
63
EVP_KDF *kdf = NULL;
crypto/openssl/demos/kdf/scrypt.c
76
kdf = EVP_KDF_fetch(library_context, "SCRYPT", NULL);
crypto/openssl/demos/kdf/scrypt.c
77
if (kdf == NULL) {
crypto/openssl/demos/kdf/scrypt.c
83
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/fuzz/provider.c
50
DEFINE_ALGORITHMS(kdf, EVP_KDF)
crypto/openssl/include/crypto/evp.h
975
int evp_kdf_get_number(const EVP_KDF *kdf);
crypto/openssl/include/openssl/dh.h
51
int EVP_PKEY_CTX_set_dh_kdf_type(EVP_PKEY_CTX *ctx, int kdf);
crypto/openssl/include/openssl/ec.h
38
int EVP_PKEY_CTX_set_ecdh_kdf_type(EVP_PKEY_CTX *ctx, int kdf);
crypto/openssl/include/openssl/encoder.h
36
const char *OSSL_ENCODER_get0_name(const OSSL_ENCODER *kdf);
crypto/openssl/include/openssl/encoder.h
37
const char *OSSL_ENCODER_get0_description(const OSSL_ENCODER *kdf);
crypto/openssl/include/openssl/kdf.h
28
int EVP_KDF_up_ref(EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
29
void EVP_KDF_free(EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
33
EVP_KDF_CTX *EVP_KDF_CTX_new(EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
36
const char *EVP_KDF_get0_description(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
37
int EVP_KDF_is_a(const EVP_KDF *kdf, const char *name);
crypto/openssl/include/openssl/kdf.h
38
const char *EVP_KDF_get0_name(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
39
const OSSL_PROVIDER *EVP_KDF_get0_provider(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
46
int EVP_KDF_get_params(EVP_KDF *kdf, OSSL_PARAM params[]);
crypto/openssl/include/openssl/kdf.h
49
const OSSL_PARAM *EVP_KDF_gettable_params(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
50
const OSSL_PARAM *EVP_KDF_gettable_ctx_params(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
51
const OSSL_PARAM *EVP_KDF_settable_ctx_params(const EVP_KDF *kdf);
crypto/openssl/include/openssl/kdf.h
56
void (*fn)(EVP_KDF *kdf, void *arg),
crypto/openssl/include/openssl/kdf.h
58
int EVP_KDF_names_do_all(const EVP_KDF *kdf,
crypto/openssl/providers/fips/self_test_kats.c
254
EVP_KDF *kdf = NULL;
crypto/openssl/providers/fips/self_test_kats.c
260
kdf = EVP_KDF_fetch(libctx, t->algorithm, "");
crypto/openssl/providers/fips/self_test_kats.c
261
if (kdf == NULL)
crypto/openssl/providers/fips/self_test_kats.c
264
ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/providers/fips/self_test_kats.c
284
EVP_KDF_free(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
187
EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname,
crypto/openssl/providers/implementations/exchange/kdf_exch.c
191
if (kdf == NULL)
crypto/openssl/providers/implementations/exchange/kdf_exch.c
194
params = EVP_KDF_settable_ctx_params(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
195
EVP_KDF_free(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
215
EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname,
crypto/openssl/providers/implementations/exchange/kdf_exch.c
219
if (kdf == NULL)
crypto/openssl/providers/implementations/exchange/kdf_exch.c
222
params = EVP_KDF_gettable_ctx_params(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
223
EVP_KDF_free(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
48
EVP_KDF *kdf = NULL;
crypto/openssl/providers/implementations/exchange/kdf_exch.c
59
kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
60
if (kdf == NULL)
crypto/openssl/providers/implementations/exchange/kdf_exch.c
62
kdfctx->kdfctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/providers/implementations/exchange/kdf_exch.c
63
EVP_KDF_free(kdf);
crypto/openssl/ssl/quic/quic_record_util.c
30
EVP_KDF *kdf = NULL;
crypto/openssl/ssl/quic/quic_record_util.c
38
|| (kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_HKDF, propq)) == NULL
crypto/openssl/ssl/quic/quic_record_util.c
39
|| (kctx = EVP_KDF_CTX_new(kdf)) == NULL)
crypto/openssl/ssl/quic/quic_record_util.c
64
EVP_KDF_free(kdf);
crypto/openssl/ssl/t1_enc.c
36
EVP_KDF *kdf;
crypto/openssl/ssl/t1_enc.c
49
kdf = EVP_KDF_fetch(SSL_CONNECTION_GET_CTX(s)->libctx,
crypto/openssl/ssl/t1_enc.c
52
if (kdf == NULL)
crypto/openssl/ssl/t1_enc.c
54
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/ssl/t1_enc.c
55
EVP_KDF_free(kdf);
crypto/openssl/ssl/tls13_enc.c
173
EVP_KDF *kdf;
crypto/openssl/ssl/tls13_enc.c
182
kdf = EVP_KDF_fetch(sctx->libctx, OSSL_KDF_NAME_TLS1_3_KDF, sctx->propq);
crypto/openssl/ssl/tls13_enc.c
183
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/ssl/tls13_enc.c
184
EVP_KDF_free(kdf);
crypto/openssl/ssl/tls13_enc.c
40
EVP_KDF *kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_TLS1_3_KDF, propq);
crypto/openssl/ssl/tls13_enc.c
48
kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/ssl/tls13_enc.c
49
EVP_KDF_free(kdf);
crypto/openssl/test/evp_kdf_test.c
24
EVP_KDF *kdf = EVP_KDF_fetch(libctx, name, NULL);
crypto/openssl/test/evp_kdf_test.c
25
EVP_KDF_CTX *kctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/test/evp_kdf_test.c
27
EVP_KDF_free(kdf);
crypto/openssl/test/evp_test.c
3820
EVP_KDF *kdf;
crypto/openssl/test/evp_test.c
3833
kdf = EVP_KDF_fetch(libctx, name, propquery);
crypto/openssl/test/evp_test.c
3834
if (kdf == NULL) {
crypto/openssl/test/evp_test.c
3838
kdata->ctx = EVP_KDF_CTX_new(kdf);
crypto/openssl/test/evp_test.c
3839
EVP_KDF_free(kdf);