Home
last modified time | relevance | path

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

/openssl/crypto/
H A Dparam_build.c64 bld->secure_blocks += pd->alloc_blocks; in param_push()
66 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()
387 bld->total_blocks = 0; in OSSL_PARAM_BLD_to_param()
388 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()
89 if (bld != NULL) in ossl_param_build_set_bn()
90 return OSSL_PARAM_BLD_push_BN(bld, key, bn); in ossl_param_build_set_bn()
[all …]
/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 …]
/openssl/test/
H A Dparam_build_test.c21 OSSL_PARAM_BLD *bld = NULL; in template_public_single_zero_test() local
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
80 OSSL_PARAM_BLD_free(bld); in template_private_single_zero_test()
103 if (!TEST_ptr(bld) in template_public_test()
221 OSSL_PARAM_BLD_free(bld); in template_public_test()
384 OSSL_PARAM_BLD_free(bld); in template_private_test()
404 if (!TEST_ptr(bld)) in builder_limit_test()
435 OSSL_PARAM_BLD_free(bld); in builder_limit_test()
455 if (!TEST_ptr(bld) in builder_merge_test()
[all …]
H A Devp_pkey_provided_test.c544 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_rsa_derive_from_pq_sp800() local
634 OSSL_PARAM_BLD_free(bld); in test_fromdata_rsa_derive_from_pq_sp800()
640 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_rsa_derive_from_pq_multiprime() local
840 OSSL_PARAM_BLD_free(bld); in test_fromdata_rsa_derive_from_pq_multiprime()
849 OSSL_PARAM_BLD *bld = NULL; in test_evp_pkey_get_bn_param_large() local
893 OSSL_PARAM_BLD_free(bld); in test_evp_pkey_get_bn_param_large()
910 OSSL_PARAM_BLD *bld = NULL; in test_fromdata_dh_named_group() local
1108 OSSL_PARAM_BLD_free(bld); in test_fromdata_dh_named_group()
1285 OSSL_PARAM_BLD_free(bld); in test_fromdata_dh_fips186_4()
1773 OSSL_PARAM_BLD_free(bld); in test_fromdata_ec()
[all …]
H A Dacvp_test.c184 OSSL_PARAM_BLD *bld = NULL; in ecdsa_create_pkey() local
204 OSSL_PARAM_BLD_free(bld); in ecdsa_create_pkey()
444 OSSL_PARAM_BLD *bld = NULL; in eddsa_create_pkey() local
461 OSSL_PARAM_BLD_free(bld); in eddsa_create_pkey()
654 OSSL_PARAM_BLD *bld = NULL; in dsa_create_pkey() local
709 OSSL_PARAM_BLD_free(bld); in dsa_create_pkey()
1145 OSSL_PARAM_BLD *bld = NULL; in dh_create_pkey() local
1181 OSSL_PARAM_BLD_free(bld); in dh_create_pkey()
1256 OSSL_PARAM_BLD *bld = NULL; in rsa_create_pkey() local
1290 OSSL_PARAM_BLD_free(bld); in rsa_create_pkey()
[all …]
H A Dendecode_test.c1069 static int do_create_ec_explicit_prime_params(OSSL_PARAM_BLD *bld, in do_create_ec_explicit_prime_params() argument
1115 && TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_create_ec_explicit_prime_params()
1121 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, in do_create_ec_explicit_prime_params()
1123 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params()
1125 && TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_create_ec_explicit_prime_params()
1144 return do_create_ec_explicit_prime_params(bld, prime256v1_gen, in create_ec_explicit_prime_params_namedcurve()
1148 static int create_ec_explicit_prime_params(OSSL_PARAM_BLD *bld) in create_ec_explicit_prime_params() argument
1162 return do_create_ec_explicit_prime_params(bld, prime256v1_gen2, in create_ec_explicit_prime_params()
1206 && TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_create_ec_explicit_trinomial_params()
1212 && TEST_true(OSSL_PARAM_BLD_push_BN(bld, in do_create_ec_explicit_trinomial_params()
[all …]
H A Devp_extra_test.c1031 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
1033 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
1052 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
1054 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
1073 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
1075 bld = NULL; in test_EVP_PKEY_ffc_priv_pub()
1101 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub()
1167 OSSL_PARAM_BLD_free(bld); in test_EC_priv_pub()
1169 bld = NULL; in test_EC_priv_pub()
1190 bld = NULL; in test_EC_priv_pub()
[all …]
H A Dprovider_test.c169 OSSL_PARAM_BLD *bld = NULL; in test_provider_ex() local
172 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_provider_ex()
173 || !TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, "greeting", custom_buf, in test_provider_ex()
175 || !TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld))) { in test_provider_ex()
209 OSSL_PARAM_BLD_free(bld); in test_provider_ex()
H A Dectest.c2069 OSSL_PARAM_BLD *bld = NULL; in ossl_parameter_test() local
2095 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new())) in ossl_parameter_test()
2119 bld, OSSL_PKEY_PARAM_EC_COFACTOR, in ossl_parameter_test()
2138 if (!TEST_ptr(params_exp = OSSL_PARAM_BLD_to_param(bld)) in ossl_parameter_test()
2163 OSSL_PARAM_BLD_free(bld); in ossl_parameter_test()
2506 OSSL_PARAM_BLD *bld = NULL; in do_test_custom_explicit_fromdata() local
2526 || !TEST_ptr(bld = OSSL_PARAM_BLD_new())) in do_test_custom_explicit_fromdata()
2546 || !TEST_true(OSSL_PARAM_BLD_push_utf8_string(bld, in do_test_custom_explicit_fromdata()
2565 if (!TEST_true(OSSL_PARAM_BLD_push_octet_string(bld, in do_test_custom_explicit_fromdata()
2571 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in do_test_custom_explicit_fromdata()
[all …]
H A Ddhkem_test.inc559 OSSL_PARAM_BLD *bld = NULL;
569 bld = OSSL_PARAM_BLD_new();
570 if (bld == NULL)
574 if (!OSSL_PARAM_BLD_push_octet_string(bld, OSSL_PKEY_PARAM_PRIV_KEY,
581 if (!OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_PKEY_PARAM_GROUP_NAME,
584 if (!OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_PRIV_KEY, privbn))
589 if (!OSSL_PARAM_BLD_push_octet_string(bld, OSSL_PKEY_PARAM_PUB_KEY,
593 params = OSSL_PARAM_BLD_to_param(bld);
609 OSSL_PARAM_BLD_free(bld);
/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,
/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()
/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.
163 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
166 if (bld == NULL
167 || !OSSL_PARAM_BLD_push_BN(bld, "n", n)
168 || !OSSL_PARAM_BLD_push_uint(bld, "e", e)
169 || !OSSL_PARAM_BLD_push_BN(bld, "d", d)
177 OSSL_PARAM_BLD_free(bld);
187 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new();
191 || !OSSL_PARAM_BLD_push_BN(bld, "n", n)
[all …]
/openssl/crypto/ffc/
H A Dffc_params.c216 int ossl_ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld, in ossl_ffc_params_todata() argument
231 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_COFACTOR, in ossl_ffc_params_todata()
234 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_GINDEX, in ossl_ffc_params_todata()
237 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_PCOUNTER, in ossl_ffc_params_todata()
243 && !ossl_param_build_set_octet_string(bld, params, in ossl_ffc_params_todata()
252 || !ossl_param_build_set_utf8_string(bld, params, in ossl_ffc_params_todata()
258 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
262 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
266 if (!ossl_param_build_set_int(bld, params, in ossl_ffc_params_todata()
272 && !ossl_param_build_set_utf8_string(bld, params, in ossl_ffc_params_todata()
[all …]
/openssl/providers/fips/
H A Dself_test_kats.c211 OSSL_PARAM_BLD *bld = NULL; in self_test_kdf() local
215 bld = OSSL_PARAM_BLD_new(); in self_test_kdf()
216 if (bld == NULL) in self_test_kdf()
230 if (!add_params(bld, t->params, bnctx)) in self_test_kdf()
232 params = OSSL_PARAM_BLD_to_param(bld); in self_test_kdf()
252 OSSL_PARAM_BLD_free(bld); in self_test_kdf()
379 OSSL_PARAM_BLD *bld = NULL; in self_test_ka() local
391 bld = OSSL_PARAM_BLD_new(); in self_test_ka()
392 if (bld == NULL) in self_test_ka()
398 params = OSSL_PARAM_BLD_to_param(bld); in self_test_ka()
[all …]
/openssl/crypto/dh/
H A Ddh_backend.c91 int ossl_dh_params_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_dh_params_todata() argument
95 if (!ossl_ffc_params_todata(ossl_dh_get0_params(dh), bld, params)) in ossl_dh_params_todata()
98 && !ossl_param_build_set_long(bld, params, OSSL_PKEY_PARAM_DH_PRIV_LEN, l)) in ossl_dh_params_todata()
103 int ossl_dh_key_todata(DH *dh, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in ossl_dh_key_todata() argument
114 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PRIV_KEY, priv)) in ossl_dh_key_todata()
117 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub)) in ossl_dh_key_todata()
/openssl/crypto/rsa/
H A Drsa_backend.c259 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in DEFINE_SPECIAL_STACK_OF_CONST()
274 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n) in DEFINE_SPECIAL_STACK_OF_CONST()
281 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D, in DEFINE_SPECIAL_STACK_OF_CONST()
283 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
286 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
288 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST()
296 if (bld == NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
308 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_rsa_pss_params_30_todata() argument
341 && !ossl_param_build_set_utf8_string(bld, params, in ossl_rsa_pss_params_30_todata()
344 && !ossl_param_build_set_utf8_string(bld, params, in ossl_rsa_pss_params_30_todata()
[all …]
/openssl/providers/implementations/keymgmt/
H A Dec_kmgmt.c1146 OSSL_PARAM_BLD *bld; in ec_gen_set_group_from_params() local
1150 bld = OSSL_PARAM_BLD_new(); in ec_gen_set_group_from_params()
1151 if (bld == NULL) in ec_gen_set_group_from_params()
1160 && !OSSL_PARAM_BLD_push_utf8_string(bld, in ec_gen_set_group_from_params()
1182 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_P, gctx->p) in ec_gen_set_group_from_params()
1183 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_A, gctx->a) in ec_gen_set_group_from_params()
1184 || !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_B, gctx->b) in ec_gen_set_group_from_params()
1189 && !OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_EC_COFACTOR, in ec_gen_set_group_from_params()
1194 && !OSSL_PARAM_BLD_push_octet_string(bld, OSSL_PKEY_PARAM_EC_SEED, in ec_gen_set_group_from_params()
1203 params = OSSL_PARAM_BLD_to_param(bld); in ec_gen_set_group_from_params()
[all …]
H A Ddsa_kmgmt.c101 static int dsa_key_todata(DSA *dsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in dsa_key_todata() argument
112 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PRIV_KEY, priv)) in dsa_key_todata()
115 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_PUB_KEY, pub)) in dsa_key_todata()
/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.h74 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[],
78 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]);
/openssl/crypto/store/
H A Dstore_lib.c339 OSSL_PARAM_BLD *bld; in OSSL_STORE_find() local
352 if ((bld = OSSL_PARAM_BLD_new()) == NULL) { in OSSL_STORE_find()
363 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
372 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
375 && OSSL_PARAM_BLD_push_BN(bld, OSSL_STORE_PARAM_SERIAL, in OSSL_STORE_find()
380 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_DIGEST, in OSSL_STORE_find()
383 && OSSL_PARAM_BLD_push_octet_string(bld, in OSSL_STORE_find()
390 if (OSSL_PARAM_BLD_push_utf8_string(bld, OSSL_STORE_PARAM_ALIAS, in OSSL_STORE_find()
397 params = OSSL_PARAM_BLD_to_param(bld); in OSSL_STORE_find()
402 OSSL_PARAM_BLD_free(bld); in OSSL_STORE_find()

Completed in 73 milliseconds