Searched refs:kdf_md (Results 1 – 10 of 10) sorted by relevance
/openssl/providers/implementations/exchange/ |
H A D | dh_exch.c | 72 EVP_MD *kdf_md; member 242 pdhctx->kdf_md, in dh_X9_42_kdf_derive() 280 EVP_MD_free(pdhctx->kdf_md); in dh_freectx() 301 dstctx->kdf_md = NULL; in dh_dupctx() 315 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx() 318 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx() 390 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() 392 if (pdhctx->kdf_md == NULL) in dh_set_ctx_params() 395 if (EVP_MD_xof(pdhctx->kdf_md)) { in dh_set_ctx_params() 401 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() [all …]
|
H A D | ecdh_exch.c | 74 EVP_MD *kdf_md; member 186 EVP_MD_free(pecdhctx->kdf_md); in ecdh_freectx() 211 dstctx->kdf_md = NULL; in ecdh_dupctx() 226 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx() 229 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx() 313 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 315 if (pectx->kdf_md == NULL) in ecdh_set_ctx_params() 318 if (EVP_MD_xof(pectx->kdf_md)) { in ecdh_set_ctx_params() 326 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 327 pectx->kdf_md = NULL; in ecdh_set_ctx_params() [all …]
|
/openssl/crypto/cms/ |
H A D | cms_ec.c | 128 const EVP_MD *kdf_md; in ecdh_cms_set_kdf_param() local 150 kdf_md = EVP_get_digestbynid(kdfmd_nid); in ecdh_cms_set_kdf_param() 151 if (!kdf_md) in ecdh_cms_set_kdf_param() 154 if (EVP_PKEY_CTX_set_ecdh_kdf_md(pctx, kdf_md) <= 0) in ecdh_cms_set_kdf_param() 265 const EVP_MD *kdf_md; in ecdh_cms_encrypt() local 296 if (EVP_PKEY_CTX_get_ecdh_kdf_md(pctx, &kdf_md) <= 0) in ecdh_cms_encrypt() 313 if (kdf_md == NULL) { in ecdh_cms_encrypt() 315 kdf_md = EVP_sha1(); in ecdh_cms_encrypt() 316 if (EVP_PKEY_CTX_set_ecdh_kdf_md(pctx, kdf_md) <= 0) in ecdh_cms_encrypt() 325 if (!OBJ_find_sigid_by_algs(&kdf_nid, EVP_MD_get_type(kdf_md), ecdh_nid)) in ecdh_cms_encrypt()
|
H A D | cms_dh.c | 207 const EVP_MD *kdf_md; in dh_cms_encrypt() local 247 if (kdf_type <= 0 || EVP_PKEY_CTX_get_dh_kdf_md(pctx, &kdf_md) <= 0) in dh_cms_encrypt() 257 if (kdf_md == NULL) { in dh_cms_encrypt() 259 kdf_md = EVP_sha1(); in dh_cms_encrypt() 260 if (EVP_PKEY_CTX_set_dh_kdf_md(pctx, kdf_md) <= 0) in dh_cms_encrypt() 262 } else if (EVP_MD_get_type(kdf_md) != NID_sha1) in dh_cms_encrypt()
|
/openssl/crypto/dh/ |
H A D | dh_pmeth.c | 46 const EVP_MD *kdf_md; member 104 dctx->kdf_md = sctx->kdf_md; in pkey_dh_copy() 177 dctx->kdf_md = p2; in pkey_dh_ctrl() 181 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_dh_ctrl() 451 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md)) in pkey_dh_derive()
|
/openssl/crypto/ec/ |
H A D | ec_pmeth.c | 39 const EVP_MD *kdf_md; member 80 dctx->kdf_md = sctx->kdf_md; in pkey_ec_copy() 236 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md, in pkey_ec_kdf_derive() 323 dctx->kdf_md = p2; in pkey_ec_ctrl() 327 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_ec_ctrl()
|
/openssl/crypto/pkcs12/ |
H A D | p12_mutl.c | 117 EVP_MD *kdf_md = NULL; in PBMAC1_PBKDF2_HMAC() local 135 kdf_md = EVP_MD_fetch(ctx, OBJ_nid2sn(ossl_hmac2mdnid(kdf_hmac_nid)), propq); in PBMAC1_PBKDF2_HMAC() 136 if (kdf_md == NULL) { in PBMAC1_PBKDF2_HMAC() 142 ASN1_INTEGER_get(pbkdf2_param->iter), kdf_md, keylen, key) <= 0) { in PBMAC1_PBKDF2_HMAC() 149 EVP_MD_free(kdf_md); in PBMAC1_PBKDF2_HMAC()
|
/openssl/providers/implementations/kdfs/ |
H A D | sskdf.c | 117 static int SSKDF_hash_kdm(const EVP_MD *kdf_md, in SSKDF_hash_kdm() argument 135 hlen = EVP_MD_get_size(kdf_md); in SSKDF_hash_kdm() 145 if (!EVP_DigestInit(ctx_init, kdf_md)) in SSKDF_hash_kdm()
|
H A D | x942kdf.c | 268 static int x942kdf_hash_kdm(const EVP_MD *kdf_md, in x942kdf_hash_kdm() argument 288 hlen = EVP_MD_get_size(kdf_md); in x942kdf_hash_kdm() 298 if (!EVP_DigestInit(ctx_init, kdf_md)) in x942kdf_hash_kdm()
|
/openssl/doc/man3/ |
H A D | EVP_PKEY_CTX_ctrl.pod | 529 the I<kdf_oid>, I<kdf_md> and I<kdf_outlen> parameters must also be specified. 611 When using key derivation, the I<kdf_md> and I<kdf_outlen> parameters must
|
Completed in 27 milliseconds