Lines Matching refs:dh

443 static int prepare_dh_params(const void *dh, int nid, int save,  in prepare_dh_params()  argument
454 params->length = i2d_DHxparams(dh, &params->data); in prepare_dh_params()
456 params->length = i2d_DHparams(dh, &params->data); in prepare_dh_params()
470 static int dh_spki_pub_to_der(const void *dh, unsigned char **pder) in dh_spki_pub_to_der() argument
476 if ((bn = DH_get0_pub_key(dh)) == NULL) { in dh_spki_pub_to_der()
491 static int dh_pki_priv_to_der(const void *dh, unsigned char **pder) in dh_pki_priv_to_der() argument
497 if ((bn = DH_get0_priv_key(dh)) == NULL) { in dh_pki_priv_to_der()
514 static int dh_type_specific_params_to_der(const void *dh, unsigned char **pder) in dh_type_specific_params_to_der() argument
516 if (DH_test_flags(dh, DH_FLAG_TYPE_DHX)) in dh_type_specific_params_to_der()
517 return i2d_DHxparams(dh, pder); in dh_type_specific_params_to_der()
518 return i2d_DHparams(dh, pder); in dh_type_specific_params_to_der()
528 static int dh_check_key_type(const void *dh, int expected_type) in dh_check_key_type() argument
531 DH_test_flags(dh, DH_FLAG_TYPE_DHX) ? EVP_PKEY_DHX : EVP_PKEY_DH; in dh_check_key_type()
1316 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, type_specific_params, der);
1317 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, type_specific_params, der);
1335 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, type_specific_params, pem);
1336 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, type_specific_params, pem);
1369 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, EncryptedPrivateKeyInfo, der);
1370 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, EncryptedPrivateKeyInfo, pem);
1371 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, PrivateKeyInfo, der);
1372 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, PrivateKeyInfo, pem);
1373 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, SubjectPublicKeyInfo, der);
1374 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, SubjectPublicKeyInfo, pem);
1375 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, EncryptedPrivateKeyInfo, der);
1376 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, EncryptedPrivateKeyInfo, pem);
1377 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, PrivateKeyInfo, der);
1378 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, PrivateKeyInfo, pem);
1379 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, SubjectPublicKeyInfo, der);
1380 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, SubjectPublicKeyInfo, pem);
1444 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, DH, der);
1445 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, DH, pem);
1446 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, DHX, der);
1447 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, DHX, pem);
1468 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, PKCS3, der); /* parameters only */
1469 MAKE_ENCODER(dh, dh, EVP_PKEY_DH, PKCS3, pem); /* parameters only */
1470 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, X9_42, der); /* parameters only */
1471 MAKE_ENCODER(dhx, dh, EVP_PKEY_DHX, X9_42, pem); /* parameters only */