/third_party/node/deps/openssl/openssl/providers/implementations/exchange/ |
D | dh_exch.c | 72 EVP_MD *kdf_md; member 211 pdhctx->kdf_md, in dh_X9_42_kdf_derive() 249 EVP_MD_free(pdhctx->kdf_md); in dh_freectx() 270 dstctx->kdf_md = NULL; in dh_dupctx() 284 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx() 287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx() 352 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() 353 pdhctx->kdf_md = EVP_MD_fetch(pdhctx->libctx, name, mdprops); in dh_set_ctx_params() 354 if (!ossl_digest_is_allowed(pdhctx->libctx, pdhctx->kdf_md)) { in dh_set_ctx_params() 355 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() [all …]
|
D | ecdh_exch.c | 74 EVP_MD *kdf_md; member 167 EVP_MD_free(pecdhctx->kdf_md); in ecdh_freectx() 192 dstctx->kdf_md = NULL; in ecdh_dupctx() 207 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx() 210 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx() 284 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 285 pectx->kdf_md = EVP_MD_fetch(pectx->libctx, name, mdprops); in ecdh_set_ctx_params() 286 if (!ossl_digest_is_allowed(pectx->libctx, pectx->kdf_md)) { in ecdh_set_ctx_params() 287 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 288 pectx->kdf_md = NULL; in ecdh_set_ctx_params() [all …]
|
/third_party/openssl/providers/implementations/exchange/ |
D | dh_exch.c | 72 EVP_MD *kdf_md; member 211 pdhctx->kdf_md, in dh_X9_42_kdf_derive() 249 EVP_MD_free(pdhctx->kdf_md); in dh_freectx() 270 dstctx->kdf_md = NULL; in dh_dupctx() 284 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in dh_dupctx() 287 dstctx->kdf_md = srcctx->kdf_md; in dh_dupctx() 352 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() 353 pdhctx->kdf_md = EVP_MD_fetch(pdhctx->libctx, name, mdprops); in dh_set_ctx_params() 354 if (!ossl_digest_is_allowed(pdhctx->libctx, pdhctx->kdf_md)) { in dh_set_ctx_params() 355 EVP_MD_free(pdhctx->kdf_md); in dh_set_ctx_params() [all …]
|
D | ecdh_exch.c | 74 EVP_MD *kdf_md; member 167 EVP_MD_free(pecdhctx->kdf_md); in ecdh_freectx() 192 dstctx->kdf_md = NULL; in ecdh_dupctx() 207 if (srcctx->kdf_md != NULL && !EVP_MD_up_ref(srcctx->kdf_md)) in ecdh_dupctx() 210 dstctx->kdf_md = srcctx->kdf_md; in ecdh_dupctx() 284 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 285 pectx->kdf_md = EVP_MD_fetch(pectx->libctx, name, mdprops); in ecdh_set_ctx_params() 286 if (!ossl_digest_is_allowed(pectx->libctx, pectx->kdf_md)) { in ecdh_set_ctx_params() 287 EVP_MD_free(pectx->kdf_md); in ecdh_set_ctx_params() 288 pectx->kdf_md = NULL; in ecdh_set_ctx_params() [all …]
|
/third_party/openssl/crypto/cms/ |
D | cms_ec.c | 127 const EVP_MD *kdf_md; in ecdh_cms_set_kdf_param() local 149 kdf_md = EVP_get_digestbynid(kdfmd_nid); in ecdh_cms_set_kdf_param() 150 if (!kdf_md) in ecdh_cms_set_kdf_param() 153 if (EVP_PKEY_CTX_set_ecdh_kdf_md(pctx, kdf_md) <= 0) in ecdh_cms_set_kdf_param() 264 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()
|
D | cms_dh.c | 206 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()
|
/third_party/node/deps/openssl/openssl/crypto/cms/ |
D | cms_ec.c | 127 const EVP_MD *kdf_md; in ecdh_cms_set_kdf_param() local 149 kdf_md = EVP_get_digestbynid(kdfmd_nid); in ecdh_cms_set_kdf_param() 150 if (!kdf_md) in ecdh_cms_set_kdf_param() 153 if (EVP_PKEY_CTX_set_ecdh_kdf_md(pctx, kdf_md) <= 0) in ecdh_cms_set_kdf_param() 264 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()
|
D | cms_dh.c | 206 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()
|
/third_party/node/deps/openssl/openssl/crypto/dh/ |
D | dh_pmeth.c | 46 const EVP_MD *kdf_md; member 106 dctx->kdf_md = sctx->kdf_md; in pkey_dh_copy() 179 dctx->kdf_md = p2; in pkey_dh_ctrl() 183 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_dh_ctrl() 455 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md)) in pkey_dh_derive()
|
/third_party/openssl/crypto/dh/ |
D | dh_pmeth.c | 46 const EVP_MD *kdf_md; member 106 dctx->kdf_md = sctx->kdf_md; in pkey_dh_copy() 179 dctx->kdf_md = p2; in pkey_dh_ctrl() 183 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_dh_ctrl() 455 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md)) in pkey_dh_derive()
|
/third_party/node/deps/openssl/openssl/crypto/ec/ |
D | ec_pmeth.c | 39 const EVP_MD *kdf_md; member 82 dctx->kdf_md = sctx->kdf_md; in pkey_ec_copy() 240 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md, in pkey_ec_kdf_derive() 327 dctx->kdf_md = p2; in pkey_ec_ctrl() 331 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_ec_ctrl()
|
/third_party/openssl/crypto/ec/ |
D | ec_pmeth.c | 39 const EVP_MD *kdf_md; member 82 dctx->kdf_md = sctx->kdf_md; in pkey_ec_copy() 240 dctx->kdf_ukm, dctx->kdf_ukmlen, dctx->kdf_md, in pkey_ec_kdf_derive() 327 dctx->kdf_md = p2; in pkey_ec_ctrl() 331 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_ec_ctrl()
|
/third_party/openssl/providers/implementations/kdfs/ |
D | sskdf.c | 94 static int SSKDF_hash_kdm(const EVP_MD *kdf_md, in SSKDF_hash_kdm() argument 112 hlen = EVP_MD_get_size(kdf_md); in SSKDF_hash_kdm() 122 if (!EVP_DigestInit(ctx_init, kdf_md)) in SSKDF_hash_kdm()
|
D | x942kdf.c | 264 static int x942kdf_hash_kdm(const EVP_MD *kdf_md, in x942kdf_hash_kdm() argument 284 hlen = EVP_MD_get_size(kdf_md); in x942kdf_hash_kdm() 294 if (!EVP_DigestInit(ctx_init, kdf_md)) in x942kdf_hash_kdm()
|
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
D | sskdf.c | 94 static int SSKDF_hash_kdm(const EVP_MD *kdf_md, in SSKDF_hash_kdm() argument 112 hlen = EVP_MD_get_size(kdf_md); in SSKDF_hash_kdm() 122 if (!EVP_DigestInit(ctx_init, kdf_md)) in SSKDF_hash_kdm()
|
D | x942kdf.c | 264 static int x942kdf_hash_kdm(const EVP_MD *kdf_md, in x942kdf_hash_kdm() argument 284 hlen = EVP_MD_get_size(kdf_md); in x942kdf_hash_kdm() 294 if (!EVP_DigestInit(ctx_init, kdf_md)) in x942kdf_hash_kdm()
|
/third_party/openssl/doc/man3/ |
D | EVP_PKEY_CTX_ctrl.pod | 512 the I<kdf_oid>, I<kdf_md> and I<kdf_outlen> parameters must also be specified. 594 When using key derivation, the I<kdf_md> and I<kdf_outlen> parameters must
|