Home
last modified time | relevance | path

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

12

/freebsd-14.2/crypto/openssl/crypto/
H A Dparam_build.c66 bld->secure_blocks += pd->alloc_blocks; in param_push()
68 bld->total_blocks += pd->alloc_blocks; in param_push()
105 static void free_all_params(OSSL_PARAM_BLD *bld) in free_all_params() argument
113 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld) in OSSL_PARAM_BLD_free() argument
115 if (bld == NULL) in OSSL_PARAM_BLD_free()
117 free_all_params(bld); in OSSL_PARAM_BLD_free()
118 sk_OSSL_PARAM_BLD_DEF_free(bld->params); in OSSL_PARAM_BLD_free()
119 OPENSSL_free(bld); in OSSL_PARAM_BLD_free()
385 bld->total_blocks = 0; in OSSL_PARAM_BLD_to_param()
386 bld->secure_blocks = 0; in OSSL_PARAM_BLD_to_param()
[all …]
H A Dparam_build_set.c25 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()
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()
47 if (bld != NULL) in ossl_param_build_set_utf8_string()
60 if (bld != NULL) in ossl_param_build_set_octet_string()
72 if (bld != NULL) in ossl_param_build_set_bn_pad()
73 return OSSL_PARAM_BLD_push_BN_pad(bld, key, bn, sz); in ossl_param_build_set_bn_pad()
87 if (bld != NULL) in ossl_param_build_set_bn()
88 return OSSL_PARAM_BLD_push_BN(bld, key, bn); in ossl_param_build_set_bn()
[all …]
/freebsd-14.2/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);
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,
41 int OSSL_PARAM_BLD_push_size_t(OSSL_PARAM_BLD *bld, const char *key,
[all …]
/freebsd-14.2/crypto/openssl/test/
H A Dparam_build_test.c21 OSSL_PARAM_BLD *bld = NULL; in template_public_single_zero_test() local
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
79 OSSL_PARAM_BLD_free(bld); in template_private_single_zero_test()
101 if (!TEST_ptr(bld) in template_public_test()
209 OSSL_PARAM_BLD_free(bld); in template_public_test()
357 OSSL_PARAM_BLD_free(bld); in template_private_test()
375 if (!TEST_ptr(bld)) in builder_limit_test()
406 OSSL_PARAM_BLD_free(bld); in builder_limit_test()
426 if (!TEST_ptr(bld) in builder_merge_test()
[all …]
H A Devp_pkey_provided_test.c454 OSSL_PARAM_BLD *bld = NULL; in test_evp_pkey_get_bn_param_large() local
472 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_evp_pkey_get_bn_param_large()
498 OSSL_PARAM_BLD_free(bld); in test_evp_pkey_get_bn_param_large()
515 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_dh_named_group() local
713 OSSL_PARAM_BLD_free(bld); in test_fromdata_dh_named_group()
728 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_dh_fips186_4() local
890 OSSL_PARAM_BLD_free(bld); in test_fromdata_dh_fips186_4()
1183 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_ec() local
1376 OSSL_PARAM_BLD_free(bld); in test_fromdata_ec()
1463 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_dsa_fips186_4() local
[all …]
H A Dacvp_test.c156 OSSL_PARAM_BLD *bld = NULL; in ecdsa_create_pkey() local
159 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) 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
515 OSSL_PARAM_BLD_free(bld); in dsa_create_pkey()
901 OSSL_PARAM_BLD *bld = NULL; in dh_create_pkey() local
937 OSSL_PARAM_BLD_free(bld); in dh_create_pkey()
1012 OSSL_PARAM_BLD *bld = NULL; in rsa_create_pkey() local
1046 OSSL_PARAM_BLD_free(bld); in rsa_create_pkey()
1065 OSSL_PARAM_BLD *bld = NULL; in rsa_keygen_test() local
[all …]
H A Dendecode_test.c1065 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()
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()
1140 return do_create_ec_explicit_prime_params(bld, prime256v1_gen, in create_ec_explicit_prime_params_namedcurve()
1144 static int create_ec_explicit_prime_params(OSSL_PARAM_BLD *bld) in create_ec_explicit_prime_params() argument
1158 return do_create_ec_explicit_prime_params(bld, prime256v1_gen2, in create_ec_explicit_prime_params()
1202 && TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_create_ec_explicit_trinomial_params()
1208 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, in do_create_ec_explicit_trinomial_params()
[all …]
H A Devp_extra_test.c805 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
807 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
826 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
828 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
847 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
849 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
875 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
941 OSSL_PARAM_BLD_free(bld); in test_EC_priv_pub()
943 bld = NULL; in test_EC_priv_pub()
964 bld = NULL; in test_EC_priv_pub()
[all …]
/freebsd-14.2/crypto/openssl/doc/man3/
H A DOSSL_PARAM_BLD.pod27 void OSSL_PARAM_BLD_free(OSSL_PARAM_BLD *bld);
59 I<bld> into an allocated OSSL_PARAM array.
150 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
153 if (bld == NULL
154 || !OSSL_PARAM_BLD_push_BN(bld, "n", n)
155 || !OSSL_PARAM_BLD_push_uint(bld, "e", e)
156 || !OSSL_PARAM_BLD_push_BN(bld, "d", d)
164 OSSL_PARAM_BLD_free(bld);
174 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
178 || !OSSL_PARAM_BLD_push_BN(bld, "n", n)
[all …]
/freebsd-14.2/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-14.2/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_multi_key_bn(OSSL_PARAM_BLD *bld, OSSL_PARAM *p,
/freebsd-14.2/crypto/openssl/crypto/ffc/
H A Dffc_params.c212 int ossl_ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld, in ossl_ffc_params_todata() argument
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()
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()
257 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
261 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
265 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
271 && !ossl_param_build_set_utf8_string(bld, params, in ossl_ffc_params_todata()
[all …]
/freebsd-14.2/crypto/openssl/providers/fips/
H A Dself_test_kats.c204 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()
245 OSSL_PARAM_BLD_free(bld); in self_test_kdf()
372 OSSL_PARAM_BLD *bld = NULL; in self_test_ka() local
381 bld = OSSL_PARAM_BLD_new(); in self_test_ka()
382 if (bld == NULL) in self_test_ka()
433 OSSL_PARAM_BLD_free(bld); in self_test_ka()
444 OSSL_PARAM_BLD *bld = NULL; in self_test_sign() local
467 if (bld == NULL) in self_test_sign()
[all …]
/freebsd-14.2/crypto/openssl/crypto/rsa/
H A Drsa_backend.c123 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
205 && !ossl_param_build_set_utf8_string(bld, params, in ossl_rsa_pss_params_30_todata()
[all …]
/freebsd-14.2/crypto/openssl/crypto/dh/
H A Ddh_backend.c97 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-14.2/sys/dev/ice/
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.c1458 struct ice_buf_build *bld; in ice_pkg_buf_alloc() local
1461 bld = (struct ice_buf_build *)ice_malloc(hw, sizeof(*bld)); in ice_pkg_buf_alloc()
1462 if (!bld) in ice_pkg_buf_alloc()
1468 return bld; in ice_pkg_buf_alloc()
1699 ice_free(hw, bld); in ice_pkg_buf_free()
1722 if (!bld) in ice_pkg_buf_reserve_section()
1854 if (!bld) in ice_pkg_buf_unreserve_section()
1886 if (!bld) in ice_pkg_buf_get_free_space()
1907 if (!bld) in ice_pkg_buf_get_active_sections()
1922 if (bld) in ice_pkg_buf()
[all …]
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() local
486 if (!bld) { 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() local
585 if (!bld) { in ice_destroy_tunnel()
638 ice_pkg_buf_free(hw, bld); in ice_destroy_tunnel()
735 struct ice_buf_build *bld; in ice_ptg_update_xlt1() local
743 if (!bld) in ice_ptg_update_xlt1()
753 ice_pkg_buf_free(hw, bld); in ice_ptg_update_xlt1()
1024 struct ice_buf_build *bld; in ice_vsig_update_xlt2_sect() local
[all …]
/freebsd-14.2/crypto/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c1134 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()
1148 && !OSSL_PARAM_BLD_push_utf8_string(bld, 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()
1177 && !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_COFACTOR, in ec_gen_set_group_from_params()
1182 && !OSSL_PARAM_BLD_push_octet_string(bld, OSSL_PKEY_PARAM_EC_SEED, in ec_gen_set_group_from_params()
1191 params = OSSL_PARAM_BLD_to_param(bld); in ec_gen_set_group_from_params()
[all …]
H A Ddsa_kmgmt.c98 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-14.2/crypto/openssl/crypto/store/
H A Dstore_lib.c321 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-14.2/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[],
H A Drsa.h68 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[],
72 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]);
/freebsd-14.2/sys/contrib/dev/mediatek/mt76/
H A Dmt76x02_mcu.c163 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()

12