Lines Matching refs:kdf
29 EVP_KDF *kdf; in ossl_pkcs5_pbkdf2_hmac_ex() local
44 kdf = EVP_KDF_fetch(libctx, OSSL_KDF_NAME_PBKDF2, propq); in ossl_pkcs5_pbkdf2_hmac_ex()
45 if (kdf == NULL) in ossl_pkcs5_pbkdf2_hmac_ex()
47 kctx = EVP_KDF_CTX_new(kdf); in ossl_pkcs5_pbkdf2_hmac_ex()
48 EVP_KDF_free(kdf); in ossl_pkcs5_pbkdf2_hmac_ex()
121 EVP_PBE_KEYGEN_EX *kdf; in PKCS5_v2_PBE_keyivgen_ex() local
133 NULL, NULL, NULL, &kdf)) { in PKCS5_v2_PBE_keyivgen_ex()
166 rv = kdf(ctx, pass, passlen, pbe2->keyfunc->parameter, NULL, NULL, en_de, libctx, propq); in PKCS5_v2_PBE_keyivgen_ex()
190 PBKDF2PARAM *kdf = NULL; in PKCS5_v2_PBKDF2_keyivgen_ex() local
203 kdf = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBKDF2PARAM), param); in PKCS5_v2_PBKDF2_keyivgen_ex()
205 if (kdf == NULL) { in PKCS5_v2_PBKDF2_keyivgen_ex()
219 if (kdf->keylength && (ASN1_INTEGER_get(kdf->keylength) != (int)keylen)) { in PKCS5_v2_PBKDF2_keyivgen_ex()
224 if (kdf->prf) in PKCS5_v2_PBKDF2_keyivgen_ex()
225 prf_nid = OBJ_obj2nid(kdf->prf->algorithm); in PKCS5_v2_PBKDF2_keyivgen_ex()
245 if (kdf->salt->type != V_ASN1_OCTET_STRING) { in PKCS5_v2_PBKDF2_keyivgen_ex()
251 salt = kdf->salt->value.octet_string->data; in PKCS5_v2_PBKDF2_keyivgen_ex()
252 saltlen = kdf->salt->value.octet_string->length; in PKCS5_v2_PBKDF2_keyivgen_ex()
253 iter = ASN1_INTEGER_get(kdf->iter); in PKCS5_v2_PBKDF2_keyivgen_ex()
260 PBKDF2PARAM_free(kdf); in PKCS5_v2_PBKDF2_keyivgen_ex()