Home
last modified time | relevance | path

Searched refs:kdf_type (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/openssl/providers/implementations/exchange/
H A Ddh_exch.c51 enum kdf_type { enum
70 enum kdf_type kdf_type; member
92 pdhctx->kdf_type = PROV_DH_KDF_NONE; in dh_newctx()
107 pdhctx->kdf_type = PROV_DH_KDF_NONE; in dh_init()
205 if (pdhctx->kdf_type == PROV_DH_KDF_X9_42_ASN1) { in dh_X9_42_kdf_derive()
230 switch (pdhctx->kdf_type) { in dh_derive()
329 pdhctx->kdf_type = PROV_DH_KDF_NONE; in dh_set_ctx_params()
331 pdhctx->kdf_type = PROV_DH_KDF_X9_42_ASN1; in dh_set_ctx_params()
455 const char *kdf_type = NULL; in dh_get_ctx_params() local
457 switch (pdhctx->kdf_type) { in dh_get_ctx_params()
[all …]
H A Decdh_exch.c42 enum kdf_type { enum
72 enum kdf_type kdf_type; member
96 pectx->kdf_type = PROV_ECDH_KDF_NONE; in ecdh_newctx()
114 pecdhctx->kdf_type = PROV_ECDH_KDF_NONE; in ecdh_init()
260 pectx->kdf_type = PROV_ECDH_KDF_NONE; in ecdh_set_ctx_params()
262 pectx->kdf_type = PROV_ECDH_KDF_X9_63; in ecdh_set_ctx_params()
359 const char *kdf_type = NULL; in ecdh_get_ctx_params() local
361 switch (pectx->kdf_type) { in ecdh_get_ctx_params()
363 kdf_type = ""; in ecdh_get_ctx_params()
366 kdf_type = OSSL_KDF_NAME_X963KDF; in ecdh_get_ctx_params()
[all …]
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_dh.c205 int kdf_type, wrap_nid; in dh_cms_encrypt() local
246 kdf_type = EVP_PKEY_CTX_get_dh_kdf_type(pctx); in dh_cms_encrypt()
247 if (kdf_type <= 0 || EVP_PKEY_CTX_get_dh_kdf_md(pctx, &kdf_md) <= 0) in dh_cms_encrypt()
250 if (kdf_type == EVP_PKEY_DH_KDF_NONE) { in dh_cms_encrypt()
251 kdf_type = EVP_PKEY_DH_KDF_X9_42; in dh_cms_encrypt()
252 if (EVP_PKEY_CTX_set_dh_kdf_type(pctx, kdf_type) <= 0) in dh_cms_encrypt()
254 } else if (kdf_type != EVP_PKEY_DH_KDF_X9_42) in dh_cms_encrypt()
H A Dcms_ec.c263 int ecdh_nid, kdf_type, kdf_nid, wrap_nid; in ecdh_cms_encrypt() local
293 kdf_type = EVP_PKEY_CTX_get_ecdh_kdf_type(pctx); in ecdh_cms_encrypt()
294 if (kdf_type <= 0) in ecdh_cms_encrypt()
306 if (kdf_type == EVP_PKEY_ECDH_KDF_NONE) { in ecdh_cms_encrypt()
307 kdf_type = EVP_PKEY_ECDH_KDF_X9_63; in ecdh_cms_encrypt()
308 if (EVP_PKEY_CTX_set_ecdh_kdf_type(pctx, kdf_type) <= 0) in ecdh_cms_encrypt()
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_pmeth.c42 char kdf_type; member
65 dctx->kdf_type = EVP_PKEY_DH_KDF_NONE; in pkey_dh_init()
102 dctx->kdf_type = sctx->kdf_type; in pkey_dh_copy()
172 return dctx->kdf_type; in pkey_dh_ctrl()
175 dctx->kdf_type = p1; in pkey_dh_ctrl()
418 if (dctx->kdf_type == EVP_PKEY_DH_KDF_NONE) { in pkey_dh_derive()
432 else if (dctx->kdf_type == EVP_PKEY_DH_KDF_X9_42) { in pkey_dh_derive()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_pmeth.c37 char kdf_type; member
57 dctx->kdf_type = EVP_PKEY_ECDH_KDF_NONE; in pkey_ec_init()
81 dctx->kdf_type = sctx->kdf_type; in pkey_ec_copy()
222 if (dctx->kdf_type == EVP_PKEY_ECDH_KDF_NONE) in pkey_ec_kdf_derive()
320 return dctx->kdf_type; in pkey_ec_ctrl()
323 dctx->kdf_type = p1; in pkey_ec_ctrl()