| /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 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 122 OSSL_PARAM_BLD_push_int(OSSL_PARAM_BLD * bld,const char * key,int num) OSSL_PARAM_BLD_push_int() argument 132 OSSL_PARAM_BLD_push_uint(OSSL_PARAM_BLD * bld,const char * key,unsigned int num) OSSL_PARAM_BLD_push_uint() argument 144 OSSL_PARAM_BLD_push_long(OSSL_PARAM_BLD * bld,const char * key,long int num) OSSL_PARAM_BLD_push_long() argument 155 OSSL_PARAM_BLD_push_ulong(OSSL_PARAM_BLD * bld,const char * key,unsigned long int num) OSSL_PARAM_BLD_push_ulong() argument 167 OSSL_PARAM_BLD_push_int32(OSSL_PARAM_BLD * bld,const char * key,int32_t num) OSSL_PARAM_BLD_push_int32() argument 178 OSSL_PARAM_BLD_push_uint32(OSSL_PARAM_BLD * bld,const char * key,uint32_t num) OSSL_PARAM_BLD_push_uint32() argument 190 OSSL_PARAM_BLD_push_int64(OSSL_PARAM_BLD * bld,const char * key,int64_t num) OSSL_PARAM_BLD_push_int64() argument 201 OSSL_PARAM_BLD_push_uint64(OSSL_PARAM_BLD * bld,const char * key,uint64_t num) OSSL_PARAM_BLD_push_uint64() argument 213 OSSL_PARAM_BLD_push_size_t(OSSL_PARAM_BLD * bld,const char * key,size_t num) OSSL_PARAM_BLD_push_size_t() argument 225 OSSL_PARAM_BLD_push_time_t(OSSL_PARAM_BLD * bld,const char * key,time_t num) OSSL_PARAM_BLD_push_time_t() argument 237 OSSL_PARAM_BLD_push_double(OSSL_PARAM_BLD * bld,const char * key,double num) OSSL_PARAM_BLD_push_double() argument 248 push_BN(OSSL_PARAM_BLD * bld,const char * key,const BIGNUM * bn,size_t sz,int type) push_BN() argument 293 OSSL_PARAM_BLD_push_BN(OSSL_PARAM_BLD * bld,const char * key,const BIGNUM * bn) OSSL_PARAM_BLD_push_BN() argument 308 OSSL_PARAM_BLD_push_BN_pad(OSSL_PARAM_BLD * bld,const char * key,const BIGNUM * bn,size_t sz) OSSL_PARAM_BLD_push_BN_pad() argument 322 OSSL_PARAM_BLD_push_utf8_string(OSSL_PARAM_BLD * bld,const char * key,const char * buf,size_t bsize) OSSL_PARAM_BLD_push_utf8_string() argument 343 OSSL_PARAM_BLD_push_utf8_ptr(OSSL_PARAM_BLD * bld,const char * key,char * buf,size_t bsize) OSSL_PARAM_BLD_push_utf8_ptr() argument 362 OSSL_PARAM_BLD_push_octet_string(OSSL_PARAM_BLD * bld,const char * key,const void * buf,size_t bsize) OSSL_PARAM_BLD_push_octet_string() argument 381 OSSL_PARAM_BLD_push_octet_ptr(OSSL_PARAM_BLD * bld,const char * key,void * buf,size_t bsize) OSSL_PARAM_BLD_push_octet_ptr() argument 398 param_bld_convert(OSSL_PARAM_BLD * bld,OSSL_PARAM * param,OSSL_PARAM_ALIGNED_BLOCK * blk,OSSL_PARAM_ALIGNED_BLOCK * secure) param_bld_convert() argument 451 OSSL_PARAM_BLD_to_param(OSSL_PARAM_BLD * bld) OSSL_PARAM_BLD_to_param() 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_PARA argument 69 ossl_param_build_set_bn_pad(OSSL_PARAM_BLD * bld,OSSL_PARAM * p,const char * key,const BIGNUM * bn,size_t sz) ossl_param_build_set_bn_pad() argument 86 ossl_param_build_set_bn(OSSL_PARAM_BLD * bld,OSSL_PARAM * p,const char * key,const BIGNUM * bn) ossl_param_build_set_bn() argument 98 ossl_param_build_set_multi_key_bn(OSSL_PARAM_BLD * bld,OSSL_PARAM * params,const char * names[],STACK_OF (BIGNUM_const)* stk) ossl_param_build_set_multi_key_bn() 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", 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() 88 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new(); template_public_test() local 239 OSSL_PARAM_BLD *bld = NULL; template_private_test() local 400 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new(); builder_limit_test() local 445 OSSL_PARAM_BLD *bld = OSSL_PARAM_BLD_new(); builder_merge_test() local [all...] |
| H A D | evp_pkey_provided_test.c | 546 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() 635 OSSL_PARAM_BLD *bld = NULL; test_fromdata_rsa_derive_from_pq_multiprime() local 834 OSSL_PARAM_BLD *bld = NULL; test_evp_pkey_get_bn_param_large() local 895 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dh_named_group() local 1134 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dh_fips186_4() local 1603 OSSL_PARAM_BLD *bld = NULL; test_fromdata_ec() local 1887 OSSL_PARAM_BLD *bld = NULL; test_fromdata_dsa_fips186_4() local [all...] |
| H A D | acvp_test.c | 185 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 D | endecode_test.c | 1110 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 1189 create_ec_explicit_prime_params(OSSL_PARAM_BLD * bld) create_ec_explicit_prime_params() argument 1208 do_create_ec_explicit_trinomial_params(OSSL_PARAM_BLD * bld,const unsigned char * gen,size_t gen_len) do_create_ec_explicit_trinomial_params() argument 1288 create_ec_explicit_trinomial_params_namedcurve(OSSL_PARAM_BLD * bld) create_ec_explicit_trinomial_params_namedcurve() argument 1302 create_ec_explicit_trinomial_params(OSSL_PARAM_BLD * bld) create_ec_explicit_trinomial_params() argument [all...] |
| H A D | evp_extra_test.c | 1135 OSSL_PARAM_BLD *bld = NULL; in test_EVP_PKEY_ffc_priv_pub() local 1156 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub() 1157 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_P, p)) in test_EVP_PKEY_ffc_priv_pub() 1158 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_Q, q)) in test_EVP_PKEY_ffc_priv_pub() 1159 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_G, g))) in test_EVP_PKEY_ffc_priv_pub() 1161 if (!TEST_ptr(params = OSSL_PARAM_BLD_to_param(bld)) in test_EVP_PKEY_ffc_priv_pub() 1166 OSSL_PARAM_BLD_free(bld); in test_EVP_PKEY_ffc_priv_pub() 1168 bld = NULL; in test_EVP_PKEY_ffc_priv_pub() 1175 if (!TEST_ptr(bld = OSSL_PARAM_BLD_new()) in test_EVP_PKEY_ffc_priv_pub() 1176 || !TEST_true(OSSL_PARAM_BLD_push_BN(bld, OSSL_PKEY_PARAM_FFC_ in test_EVP_PKEY_ffc_priv_pub() 1272 OSSL_PARAM_BLD *bld = NULL; test_EC_priv_pub() local 1441 OSSL_PARAM_BLD *bld = NULL; test_evp_get_ec_pub() local 3779 OSSL_PARAM_BLD *bld = NULL; test_DSA_get_set_params() local 3847 OSSL_PARAM_BLD *bld = NULL; test_RSA_get_set_params() local [all...] |
| H A D | provider_test.c | 168 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()
|
| /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_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/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/contrib/llvm-project/clang/lib/CIR/Lowering/ |
| H A D | LoweringHelpers.cpp | 149 mlir::Value getConstAPInt(mlir::OpBuilder &bld, mlir::Location loc, in getConstAPInt() argument 151 return bld.create<mlir::LLVM::ConstantOp>(loc, typ, val); in getConstAPInt() 154 mlir::Value getConst(mlir::OpBuilder &bld, mlir::Location loc, mlir::Type typ, in getConst() argument 156 return bld.create<mlir::LLVM::ConstantOp>(loc, typ, val); in getConst() 159 mlir::Value createShL(mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs) { in createShL() argument 162 mlir::Value rhsVal = getConst(bld, lhs.getLoc(), lhs.getType(), rhs); in createShL() 163 return bld.create<mlir::LLVM::ShlOp>(lhs.getLoc(), lhs, rhsVal); in createShL() 166 mlir::Value createAShR(mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs) { in createAShR() argument 169 mlir::Value rhsVal = getConst(bld, lhs.getLoc(), lhs.getType(), rhs); in createAShR() 170 return bld.create<mlir::LLVM::AShrOp>(lhs.getLoc(), lhs, rhsVal); in createAShR() [all …]
|
| /freebsd/crypto/openssl/crypto/ffc/ |
| H A D | ffc_params.c | 219 int ossl_ffc_params_todata(const FFC_PARAMS *ffc, OSSL_PARAM_BLD *bld, in ossl_ffc_params_todata() 225 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_P, ffc->p)) in ossl_ffc_params_todata() 228 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_Q, ffc->q)) in ossl_ffc_params_todata() 231 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_G, ffc->g)) in ossl_ffc_params_todata() 234 && !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_FFC_COFACTOR, in ossl_ffc_params_todata() 237 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_GINDEX, in ossl_ffc_params_todata() 240 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_PCOUNTER, in ossl_ffc_params_todata() 243 if (!ossl_param_build_set_int(bld, params, OSSL_PKEY_PARAM_FFC_H, ffc->h)) in ossl_ffc_params_todata() 246 && !ossl_param_build_set_octet_string(bld, params, in ossl_ffc_params_todata() 255 || !ossl_param_build_set_utf8_string(bld, param in ossl_ffc_params_todata() 215 ossl_ffc_params_todata(const FFC_PARAMS * ffc,OSSL_PARAM_BLD * bld,OSSL_PARAM params[]) ossl_ffc_params_todata() argument [all...] |
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/ |
| H A D | LoweringHelpers.h | 40 mlir::Value getConstAPInt(mlir::OpBuilder &bld, mlir::Location loc, 43 mlir::Value getConst(mlir::OpBuilder &bld, mlir::Location loc, mlir::Type typ, 46 mlir::Value createShL(mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs); 48 mlir::Value createAShR(mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs); 50 mlir::Value createAnd(mlir::OpBuilder &bld, mlir::Value lhs, 53 mlir::Value createLShR(mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs);
|
| /freebsd/crypto/openssl/crypto/dh/ |
| H A D | dh_backend.c | 90 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 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/rsa/ |
| H A D | rsa_backend.c | 260 int ossl_rsa_todata(RSA *rsa, OSSL_PARAM_BLD *bld, OSSL_PARAM params[], in DEFINE_SPECIAL_STACK_OF_CONST() 275 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_N, rsa_n) in DEFINE_SPECIAL_STACK_OF_CONST() 276 || !ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_E, rsa_e)) in DEFINE_SPECIAL_STACK_OF_CONST() 282 if (!ossl_param_build_set_bn(bld, params, OSSL_PKEY_PARAM_RSA_D, in DEFINE_SPECIAL_STACK_OF_CONST() 284 || !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() 289 || !ossl_param_build_set_multi_key_bn(bld, params, in DEFINE_SPECIAL_STACK_OF_CONST() 297 if (bld == NULL) in DEFINE_SPECIAL_STACK_OF_CONST() 309 OSSL_PARAM_BLD *bld, OSSL_PARAM params[]) in ossl_rsa_pss_params_30_todata() argument 339 && !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 D | ec_kmgmt.c | 1114 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 D | store_lib.c | 338 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 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[],
|
| /freebsd/crypto/openssl/providers/fips/ |
| H A D | self_test_kats.c | 161 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 …]
|