Home
last modified time | relevance | path

Searched refs:bld (Results 1 – 25 of 36) sorted by relevance

12

/freebsd/crypto/openssl/crypto/
H A Dparam_build.c51 static OSSL_PARAM_BLD_DEF *param_push(OSSL_PARAM_BLD *bld, const char *key, in param_push() argument
64 bld->secure_blocks += pd->alloc_blocks; in param_push()
66 bld->total_blocks += pd->alloc_blocks; in param_push()
67 if (sk_OSSL_PARAM_BLD_DEF_push(bld->params, pd) <= 0) { in param_push()
74 static int param_push_num(OSSL_PARAM_BLD *bld, const char *key, in param_push_num() argument
77 OSSL_PARAM_BLD_DEF *pd = param_push(bld, key, size, size, type, 0); in param_push_num()
105 static void free_all_params(OSSL_PARAM_BLD *bld) in free_all_params() argument
107 int i, n = sk_OSSL_PARAM_BLD_DEF_num(bld->params); in free_all_params()
110 OPENSSL_free(sk_OSSL_PARAM_BLD_DEF_pop(bld->params)); in free_all_params()
113 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld) in OSSL_PARAM_BLD_free() argument
[all …]
H A Dparam_build_set.c22 int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in DEFINE_SPECIAL_STACK_OF_CONST()
25 if (bld != NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
26 return OSSL_PARAM_BLD_push_int(bld, key, num); in DEFINE_SPECIAL_STACK_OF_CONST()
33 int ossl_param_build_set_long(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_long() argument
36 if (bld != NULL) in ossl_param_build_set_long()
37 return OSSL_PARAM_BLD_push_long(bld, key, num); in ossl_param_build_set_long()
44 int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_utf8_string() argument
47 if (bld != NULL) in ossl_param_build_set_utf8_string()
48 return OSSL_PARAM_BLD_push_utf8_string(bld, key, buf, 0); in ossl_param_build_set_utf8_string()
55 int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p, in ossl_param_build_set_octet_string() argument
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dparam_build.h23 OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld);
24 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld);
26 int OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD *bld, const char *key, int val);
27 int OSSL_PARAM_BLD_push_uint(OSSL_PARAM_BLD *bld, const char *key,
29 int OSSL_PARAM_BLD_push_long(OSSL_PARAM_BLD *bld, const char *key,
31 int OSSL_PARAM_BLD_push_ulong(OSSL_PARAM_BLD *bld, const char *key,
33 int OSSL_PARAM_BLD_push_int32(OSSL_PARAM_BLD *bld, const char *key,
35 int OSSL_PARAM_BLD_push_uint32(OSSL_PARAM_BLD *bld, const char *key,
37 int OSSL_PARAM_BLD_push_int64(OSSL_PARAM_BLD *bld, const char *key,
39 int OSSL_PARAM_BLD_push_uint64(OSSL_PARAM_BLD *bld, const char *key,
[all …]
/freebsd/crypto/openssl/test/
H A Dparam_build_test.c21 OSSL_PARAM_BLD *bld = NULL; in template_public_single_zero_test() local
26 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in template_public_single_zero_test()
28 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, "zeronumber", in template_public_single_zero_test()
30 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_public_single_zero_test()
46 OSSL_PARAM_BLD_free(bld); in template_public_single_zero_test()
54 OSSL_PARAM_BLD *bld = NULL; in template_private_single_zero_test() local
59 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in template_private_single_zero_test()
61 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, "zeronumber", zbn)) in template_private_single_zero_test()
62 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_private_single_zero_test()
80 OSSL_PARAM_BLD_free(bld); in template_private_single_zero_test()
[all …]
H A Devp_pkey_provided_test.c546 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_rsa_derive_from_pq_sp800() local
588 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_fromdata_rsa_derive_from_pq_sp800()
597 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_N, n)) in test_fromdata_rsa_derive_from_pq_sp800()
598 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_E, e)) in test_fromdata_rsa_derive_from_pq_sp800()
599 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_D, d)) in test_fromdata_rsa_derive_from_pq_sp800()
600 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_FACTOR1, in test_fromdata_rsa_derive_from_pq_sp800()
602 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_FACTOR2, in test_fromdata_rsa_derive_from_pq_sp800()
604 || !TEST_true(OSSL_PARAM_BLD_push_int(bld, in test_fromdata_rsa_derive_from_pq_sp800()
606 || !TEST_ptr(fromdata_params = OSSL_PARAM_BLD_to_param(bld))) in test_fromdata_rsa_derive_from_pq_sp800()
629 OSSL_PARAM_BLD_free(bld); in test_fromdata_rsa_derive_from_pq_sp800()
[all …]
H A Dacvp_test.c185 OSSL_PARAM_BLD *bld = NULL; in ecdsa_create_pkey() local
188 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in ecdsa_create_pkey()
191 bld, OSSL_PKEY_PARAM_GROUP_NAME, curve_name, 0) in ecdsa_create_pkey()
193 || !TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in ecdsa_create_pkey()
197 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in ecdsa_create_pkey()
208 OSSL_PARAM_BLD_free(bld); in ecdsa_create_pkey()
449 OSSL_PARAM_BLD *bld = NULL; in eddsa_create_pkey() local
452 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in eddsa_create_pkey()
453 || !TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in eddsa_create_pkey()
457 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in eddsa_create_pkey()
[all …]
H A Devp_extra_test.c1109 OSSL_PARAM_BLD *bld = NULL; in test_EVP_PKEY_ffc_priv_pub() local
1130 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
1131 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub()
1132 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q)) in test_EVP_PKEY_ffc_priv_pub()
1133 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g))) in test_EVP_PKEY_ffc_priv_pub()
1135 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub()
1140 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
1142 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
1149 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub()
1150 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub()
[all …]
H A Dendecode_test.c1110 static int do_create_ec_explicit_prime_params(OSSL_PARAM_BLD *bld, in do_create_ec_explicit_prime_params() argument
1156 && TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_create_ec_explicit_prime_params()
1159 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, prime)) in do_create_ec_explicit_prime_params()
1160 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, a)) in do_create_ec_explicit_prime_params()
1161 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, b)) in do_create_ec_explicit_prime_params()
1162 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, in do_create_ec_explicit_prime_params()
1164 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params()
1166 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params()
1168 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_COFACTOR, in do_create_ec_explicit_prime_params()
1172 static int create_ec_explicit_prime_params_namedcurve(OSSL_PARAM_BLD *bld) in create_ec_explicit_prime_params_namedcurve() argument
[all …]
H A Dprovider_test.c168 OSSL_PARAM_BLD *bld = NULL; in test_provider_ex() local
171 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_provider_ex()
172 || !TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, "greeting", custom_buf, in test_provider_ex()
174 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))) { in test_provider_ex()
208 OSSL_PARAM_BLD_free(bld); in test_provider_ex()
H A Dectest.c2449 OSSL_PARAM_BLD *bld = NULL; in ossl_parameter_test() local
2475 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())) in ossl_parameter_test()
2485 bld, OSSL_PKEY_PARAM_EC_FIELD_TYPE, SN_X9_62_prime_field, 0)) in ossl_parameter_test()
2486 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, p)) in ossl_parameter_test()
2487 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, a)) in ossl_parameter_test()
2488 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, b))) in ossl_parameter_test()
2493 bld, OSSL_PKEY_PARAM_EC_SEED, EC_GROUP_get0_seed(group_nmd), in ossl_parameter_test()
2499 bld, OSSL_PKEY_PARAM_EC_COFACTOR, in ossl_parameter_test()
2515 bld, OSSL_PKEY_PARAM_EC_GENERATOR, buf2, bsize)) in ossl_parameter_test()
2517 bld, OSSL_PKEY_PARAM_EC_ORDER, EC_GROUP_get0_order(group_nmd)))) in ossl_parameter_test()
[all …]
H A Dslh_dsa_test.c61 OSSL_PARAM_BLD *bld = NULL; in slh_dsa_create_keypair() local
65 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in slh_dsa_create_keypair()
66 || !TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in slh_dsa_create_keypair()
70 || !TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in slh_dsa_create_keypair()
74 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in slh_dsa_create_keypair()
85 OSSL_PARAM_BLD_free(bld); in slh_dsa_create_keypair()
/freebsd/crypto/openssl/include/internal/
H A Dparam_build_set.h28 int ossl_param_build_set_int(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
30 int ossl_param_build_set_long(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
32 int ossl_param_build_set_utf8_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
34 int ossl_param_build_set_octet_string(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
38 int ossl_param_build_set_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
40 int ossl_param_build_set_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
42 int ossl_param_build_set_signed_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
44 int ossl_param_build_set_signed_bn_pad(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
47 int ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
/freebsd/crypto/openssl/demos/pkey/
H A DEVP_PKEY_DSA_paramfromdata.c27 OSSL_PARAM_BLD *bld = NULL; in main() local
38 bld = OSSL_PARAM_BLD_new(); in main()
39 if (bld == NULL) in main()
41 if (!OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p) in main()
42 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q) in main()
43 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g)) in main()
45 params = OSSL_PARAM_BLD_to_param(bld); in main()
69 OSSL_PARAM_BLD_free(bld); in main()
/freebsd/crypto/openssl/doc/man3/
H A DOSSL_PARAM_BLD.pod26 OSSL_PARAM *OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD *bld);
27 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld);
29 int OSSL_PARAM_BLD_push_TYPE(OSSL_PARAM_BLD *bld, const char *key, TYPE val);
31 int OSSL_PARAM_BLD_push_BN(OSSL_PARAM_BLD *bld, const char *key,
33 int OSSL_PARAM_BLD_push_BN_pad(OSSL_PARAM_BLD *bld, const char *key,
36 int OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD *bld, const char *key,
38 int OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD *bld, const char *key,
40 int OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD *bld, const char *key,
42 int OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD *bld, const char *key,
59 I<bld> into an allocated OSSL_PARAM array.
[all …]
/freebsd/crypto/openssl/crypto/ffc/
H A Dffc_params.c215 int ossl_ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld, in ossl_ffc_params_todata() argument
221 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_P, ffc->p)) in ossl_ffc_params_todata()
224 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_Q, ffc->q)) in ossl_ffc_params_todata()
227 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_G, ffc->g)) in ossl_ffc_params_todata()
230 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_COFACTOR, in ossl_ffc_params_todata()
233 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_GINDEX, in ossl_ffc_params_todata()
236 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_PCOUNTER, in ossl_ffc_params_todata()
239 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_H, ffc->h)) in ossl_ffc_params_todata()
242 && !ossl_param_build_set_octet_string(bld, params, in ossl_ffc_params_todata()
251 || !ossl_param_build_set_utf8_string(bld, params, in ossl_ffc_params_todata()
[all …]
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_backend.c90 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata() argument
94 if (!ossl_ffc_params_todata(ossl_dh_get0_params(dh), bld, params)) in ossl_dh_params_todata()
97 && !ossl_param_build_set_long(bld, params, OSSL_PKEY_PARAM_DH_PRIV_LEN, l)) in ossl_dh_params_todata()
102 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata() argument
113 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PRIV_KEY, priv)) in ossl_dh_key_todata()
116 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub)) in ossl_dh_key_todata()
/freebsd/sys/dev/ice/
H A Dice_ddp_common.c1458 struct ice_buf_build *bld;
1461 bld = (struct ice_buf_build *)ice_malloc(hw, sizeof(*bld)); in ice_pkg_buf_alloc()
1462 if (!bld) in ice_pkg_buf_alloc()
1465 buf = (struct ice_buf_hdr *)bld; in ice_pkg_buf_alloc()
1468 return bld; in ice_pkg_buf_alloc()
1693 * @bld: pointer to pkg build (allocated by ice_pkg_buf_alloc()) in ice_init_prof_result_bm()
1697 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld)
1699 ice_free(hw, bld);
1704 * @bld in ice_pkg_buf_free()
1463 struct ice_buf_build *bld; ice_pkg_buf_alloc() local
1702 ice_pkg_buf_free(struct ice_hw * hw,struct ice_buf_build * bld) ice_pkg_buf_free() argument
1721 ice_pkg_buf_reserve_section(struct ice_buf_build * bld,u16 count) ice_pkg_buf_reserve_section() argument
1761 ice_pkg_buf_alloc_section(struct ice_buf_build * bld,u32 type,u16 size) ice_pkg_buf_alloc_section() argument
1853 ice_pkg_buf_unreserve_section(struct ice_buf_build * bld,u16 count) ice_pkg_buf_unreserve_section() argument
1887 ice_pkg_buf_get_free_space(struct ice_buf_build * bld) ice_pkg_buf_get_free_space() argument
1908 ice_pkg_buf_get_active_sections(struct ice_buf_build * bld) ice_pkg_buf_get_active_sections() argument
1925 ice_pkg_buf(struct ice_buf_build * bld) ice_pkg_buf() argument
[all...]
H A Dice_vlan_mode.c45 struct ice_buf_build *bld; in ice_pkg_get_supported_vlan_mode() local
51 bld = ice_pkg_buf_alloc_single_section(hw, in ice_pkg_get_supported_vlan_mode()
54 if (!bld) in ice_pkg_get_supported_vlan_mode()
62 (struct ice_buf_hdr *)ice_pkg_buf(bld), in ice_pkg_get_supported_vlan_mode()
79 ice_pkg_buf_free(hw, bld); in ice_pkg_get_supported_vlan_mode()
H A Dice_ddp_common.h426 ice_pkg_buf_alloc_section(struct ice_buf_build *bld, u32 type, u16 size);
428 ice_pkg_buf_reserve_section(struct ice_buf_build *bld, u16 count);
433 ice_pkg_buf_unreserve_section(struct ice_buf_build *bld, u16 count);
434 u16 ice_pkg_buf_get_free_space(struct ice_buf_build *bld);
435 u16 ice_pkg_buf_get_active_sections(struct ice_buf_build *bld);
477 struct ice_buf *ice_pkg_buf(struct ice_buf_build *bld);
478 void ice_pkg_buf_free(struct ice_hw *hw, struct ice_buf_build *bld);
H A Dice_flex_pipe.c468 struct ice_buf_build *bld; in ice_create_tunnel()
485 bld = ice_pkg_buf_alloc(hw); in ice_create_tunnel()
486 if (!bld) { in ice_create_tunnel()
492 if (ice_pkg_buf_reserve_section(bld, 2)) in ice_create_tunnel()
496 ice_pkg_buf_alloc_section(bld, ICE_SID_RXPARSER_BOOST_TCAM, in ice_create_tunnel()
503 ice_pkg_buf_alloc_section(bld, ICE_SID_TXPARSER_BOOST_TCAM, in ice_create_tunnel()
525 status = ice_update_pkg(hw, ice_pkg_buf(bld), 1); in ice_create_tunnel()
533 ice_pkg_buf_free(hw, bld); in ice_create_tunnel()
554 struct ice_buf_build *bld; in ice_destroy_tunnel()
584 bld in ice_destroy_tunnel()
469 struct ice_buf_build *bld; ice_create_tunnel() local
555 struct ice_buf_build *bld; ice_destroy_tunnel() local
734 struct ice_buf_build *bld; ice_ptg_update_xlt1() local
1023 struct ice_buf_build *bld; ice_vsig_update_xlt2_sect() local
2280 ice_prof_bld_es(struct ice_hw * hw,enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_es() argument
2321 ice_prof_bld_tcam(struct ice_hw * hw,enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_tcam() argument
2360 ice_prof_bld_xlt1(enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_xlt1() argument
2395 ice_prof_bld_xlt2(enum ice_block blk,struct ice_buf_build * bld,struct LIST_HEAD_TYPE * chgs) ice_prof_bld_xlt2() argument
[all...]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_backend.c258 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in DEFINE_SPECIAL_STACK_OF_CONST()
273 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n) in DEFINE_SPECIAL_STACK_OF_CONST()
274 || !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_E, rsa_e)) in DEFINE_SPECIAL_STACK_OF_CONST()
280 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D, in DEFINE_SPECIAL_STACK_OF_CONST()
282 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
285 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
287 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
295 if (bld == NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
307 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_rsa_pss_params_30_todata() argument
337 && !ossl_param_build_set_utf8_string(bld, params, key_md, mdname)) in ossl_rsa_pss_params_30_todata()
[all …]
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c1114 OSSL_PARAM_BLD *bld; in ec_gen_set_group_from_params() local
1118 bld = OSSL_PARAM_BLD_new(); in ec_gen_set_group_from_params()
1119 if (bld == NULL) in ec_gen_set_group_from_params()
1123 && !OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_EC_ENCODING, in ec_gen_set_group_from_params()
1128 && !OSSL_PARAM_BLD_push_utf8_string(bld, in ec_gen_set_group_from_params()
1134 if (!OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_GROUP_NAME, in ec_gen_set_group_from_params()
1140 if (!OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_EC_FIELD_TYPE, in ec_gen_set_group_from_params()
1150 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, gctx->p) in ec_gen_set_group_from_params()
1151 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, gctx->a) in ec_gen_set_group_from_params()
1152 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, gctx->b) in ec_gen_set_group_from_params()
[all …]
/freebsd/crypto/openssl/crypto/store/
H A Dstore_lib.c338 OSSL_PARAM_BLD *bld; in OSSL_STORE_find() local
351 if ((bld = OSSL_PARAM_BLD_new()) == NULL) { in OSSL_STORE_find()
363 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
373 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
376 && OSSL_PARAM_BLD_push_BN(bld, OSSL_STORE_PARAM_SERIAL, in OSSL_STORE_find()
381 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_DIGEST, in OSSL_STORE_find()
384 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
391 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_ALIAS, in OSSL_STORE_find()
398 params = OSSL_PARAM_BLD_to_param(bld); in OSSL_STORE_find()
403 OSSL_PARAM_BLD_free(bld); in OSSL_STORE_find()
/freebsd/crypto/openssl/include/crypto/
H A Ddh.h36 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]);
37 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[],
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_kats.c161 static int add_params(OSSL_PARAM_BLD *bld, const ST_KAT_PARAM *params, in add_params() argument
176 || !OSSL_PARAM_BLD_push_BN(bld, p->name, bn)) in add_params()
181 if (!OSSL_PARAM_BLD_push_utf8_string(bld, p->name, p->data, in add_params()
187 if (!OSSL_PARAM_BLD_push_octet_string(bld, p->name, p->data, in add_params()
193 if (!OSSL_PARAM_BLD_push_int(bld, p->name, *(int *)p->data)) in add_params()
222 OSSL_PARAM_BLD *bld = NULL; in kat_params_to_ossl_params() local
229 bld = OSSL_PARAM_BLD_new(); in kat_params_to_ossl_params()
230 if (bld == NULL) in kat_params_to_ossl_params()
235 if (!add_params(bld, pms, bnc)) { in kat_params_to_ossl_params()
241 params = OSSL_PARAM_BLD_to_param(bld); in kat_params_to_ossl_params()
[all …]

12