/freebsd/crypto/openssl/crypto/ |
H A D | param_build.c | 51 static OSSL_PARAM_BLD_DEF *param_push(OSSL_PARAM_BLD *bld, const char *key, in param_push() argument 66 bld->secure_blocks += pd->alloc_blocks; in param_push() 68 bld->total_blocks += pd->alloc_blocks; in param_push() 69 if (sk_OSSL_PARAM_BLD_DEF_push(bld->params, pd) <= 0) { in param_push() 76 static int param_push_num(OSSL_PARAM_BLD *bld, const char *key, in param_push_num() argument 79 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 D | param_build_set.c | 22 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 D | param_build.h | 23 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 D | param_build_test.c | 21 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", zbn)) in template_public_single_zero_test() 29 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_public_single_zero_test() 45 OSSL_PARAM_BLD_free(bld); in template_public_single_zero_test() 53 OSSL_PARAM_BLD *bld = NULL; in template_private_single_zero_test() local 58 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in template_private_single_zero_test() 60 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, "zeronumber", zbn)) in template_private_single_zero_test() 61 || !TEST_ptr(params_blt = OSSL_PARAM_BLD_to_param(bld))) in template_private_single_zero_test() 79 OSSL_PARAM_BLD_free(bld); in template_private_single_zero_test() [all …]
|
H A D | evp_pkey_provided_test.c | 454 OSSL_PARAM_BLD *bld = NULL; in test_evp_pkey_get_bn_param_large() 472 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_evp_pkey_get_bn_param_large() 476 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_N, n)) in test_evp_pkey_get_bn_param_large() 477 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_E, e)) in test_evp_pkey_get_bn_param_large() 478 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_RSA_D, d)) in test_evp_pkey_get_bn_param_large() 479 || !TEST_ptr(fromdata_params = OSSL_PARAM_BLD_to_param(bld)) in test_evp_pkey_get_bn_param_large() 498 OSSL_PARAM_BLD_free(bld); 515 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_dh_named_group() 556 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_fromdata_dh_named_group() 559 || !TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in test_fromdata_dh_named_group() 451 OSSL_PARAM_BLD *bld = NULL; test_evp_pkey_get_bn_param_large() local 512 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dh_named_group() local 722 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dh_fips186_4() local 1171 OSSL_PARAM_BLD *bld = NULL; test_fromdata_ec() local 1439 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dsa_fips186_4() local [all...] |
H A D | acvp_test.c | 156 OSSL_PARAM_BLD *bld = NULL; in ecdsa_create_pkey() local 159 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in ecdsa_create_pkey() 162 bld, OSSL_PKEY_PARAM_GROUP_NAME, curve_name, 0) > 0)) in ecdsa_create_pkey() 163 || !TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in ecdsa_create_pkey() 166 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in ecdsa_create_pkey() 176 OSSL_PARAM_BLD_free(bld); in ecdsa_create_pkey() 460 OSSL_PARAM_BLD *bld = NULL; in dsa_create_pkey() local 464 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in dsa_create_pkey() 467 || !TEST_true(OSSL_PARAM_BLD_push_int(bld, in dsa_create_pkey() 470 || !TEST_true(OSSL_PARAM_BLD_push_int(bld, in dsa_create_pkey() [all …]
|
H A D | evp_extra_test.c | 774 OSSL_PARAM_BLD *bld = NULL; in test_EVP_PKEY_ffc_priv_pub() local 795 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub() 796 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub() 797 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q)) in test_EVP_PKEY_ffc_priv_pub() 798 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g))) in test_EVP_PKEY_ffc_priv_pub() 800 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub() 805 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub() 807 bld = NULL; in test_EVP_PKEY_ffc_priv_pub() 814 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub() 815 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub() [all …]
|
H A D | endecode_test.c | 1065 static int do_create_ec_explicit_prime_params(OSSL_PARAM_BLD *bld, in do_create_ec_explicit_prime_params() argument 1111 && TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_create_ec_explicit_prime_params() 1114 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, prime)) in do_create_ec_explicit_prime_params() 1115 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, a)) in do_create_ec_explicit_prime_params() 1116 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, b)) in do_create_ec_explicit_prime_params() 1117 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, in do_create_ec_explicit_prime_params() 1119 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params() 1121 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params() 1123 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_COFACTOR, in do_create_ec_explicit_prime_params() 1127 static int create_ec_explicit_prime_params_namedcurve(OSSL_PARAM_BLD *bld) in create_ec_explicit_prime_params_namedcurve() argument [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | OSSL_PARAM_BLD.pod | 26 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/demos/pkey/ |
H A D | EVP_PKEY_DSA_paramfromdata.c | 27 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/include/internal/ |
H A D | param_build_set.h | 28 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_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
|
/freebsd/crypto/openssl/crypto/ffc/ |
H A D | ffc_params.c | 212 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/providers/fips/ |
H A D | self_test_kats.c | 149 static int add_params(OSSL_PARAM_BLD *bld, const ST_KAT_PARAM *params, in add_params() argument 165 || !OSSL_PARAM_BLD_push_BN(bld, p->name, bn)) in add_params() 170 if (!OSSL_PARAM_BLD_push_utf8_string(bld, p->name, p->data, in add_params() 176 if (!OSSL_PARAM_BLD_push_octet_string(bld, p->name, p->data, in add_params() 182 if (!OSSL_PARAM_BLD_push_int(bld, p->name, *(int *)p->data)) in add_params() 204 OSSL_PARAM_BLD *bld = NULL; in self_test_kdf() local 208 bld = OSSL_PARAM_BLD_new(); in self_test_kdf() 209 if (bld == NULL) in self_test_kdf() 223 if (!add_params(bld, t->params, bnctx)) in self_test_kdf() 225 params = OSSL_PARAM_BLD_to_param(bld); in self_test_kdf() [all …]
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_backend.c | 123 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in DEFINE_SPECIAL_STACK_OF_CONST() 138 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n) in DEFINE_SPECIAL_STACK_OF_CONST() 139 || !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_E, rsa_e)) in DEFINE_SPECIAL_STACK_OF_CONST() 145 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D, in DEFINE_SPECIAL_STACK_OF_CONST() 147 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST() 150 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST() 152 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST() 160 if (bld == NULL) in DEFINE_SPECIAL_STACK_OF_CONST() 172 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_rsa_pss_params_30_todata() argument 203 && !ossl_param_build_set_utf8_string(bld, params, key_md, mdname)) in ossl_rsa_pss_params_30_todata() [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_ddp_common.c | 1458 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 D | ice_vlan_mode.c | 45 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 D | ice_ddp_common.h | 426 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 D | ice_flex_pipe.c | 468 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/dh/ |
H A D | dh_backend.c | 97 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata() argument 101 if (!ossl_ffc_params_todata(ossl_dh_get0_params(dh), bld, params)) in ossl_dh_params_todata() 104 && !ossl_param_build_set_long(bld, params, OSSL_PKEY_PARAM_DH_PRIV_LEN, l)) in ossl_dh_params_todata() 109 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata() argument 120 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PRIV_KEY, priv)) in ossl_dh_key_todata() 123 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub)) in ossl_dh_key_todata()
|
/freebsd/crypto/openssl/providers/implementations/keymgmt/ |
H A D | ec_kmgmt.c | 1134 OSSL_PARAM_BLD *bld; in ec_gen_set_group_from_params() local 1138 bld = OSSL_PARAM_BLD_new(); in ec_gen_set_group_from_params() 1139 if (bld == NULL) in ec_gen_set_group_from_params() 1143 && !OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_EC_ENCODING, in ec_gen_set_group_from_params() 1148 && !OSSL_PARAM_BLD_push_utf8_string(bld, in ec_gen_set_group_from_params() 1154 if (!OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_GROUP_NAME, in ec_gen_set_group_from_params() 1160 if (!OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_EC_FIELD_TYPE, in ec_gen_set_group_from_params() 1170 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, gctx->p) in ec_gen_set_group_from_params() 1171 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, gctx->a) in ec_gen_set_group_from_params() 1172 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, gctx->b) in ec_gen_set_group_from_params() [all …]
|
H A D | dsa_kmgmt.c | 98 static int dsa_key_todata(DSA *dsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in dsa_key_todata() argument 109 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PRIV_KEY, priv)) in dsa_key_todata() 112 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub)) in dsa_key_todata()
|
/freebsd/crypto/openssl/crypto/store/ |
H A D | store_lib.c | 321 OSSL_PARAM_BLD *bld; in OSSL_STORE_find() local 334 if ((bld = OSSL_PARAM_BLD_new()) == NULL) { in OSSL_STORE_find() 345 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find() 354 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find() 357 && OSSL_PARAM_BLD_push_BN(bld, OSSL_STORE_PARAM_SERIAL, in OSSL_STORE_find() 362 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_DIGEST, in OSSL_STORE_find() 365 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find() 372 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_ALIAS, in OSSL_STORE_find() 379 params = OSSL_PARAM_BLD_to_param(bld); in OSSL_STORE_find() 384 OSSL_PARAM_BLD_free(bld); in OSSL_STORE_find()
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | dh.h | 36 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[],
|
H A D | rsa.h | 68 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], 72 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]);
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76x02_mcu.c | 163 u16 bld = le16_to_cpu(h->build_ver); in mt76x02_set_ethtool_fwver() local 169 (ver >> 12) & 0xf, (ver >> 8) & 0xf, ver & 0xf, bld); in mt76x02_set_ethtool_fwver()
|