Searched refs:params (Results 201 - 225 of 1067) sorted by relevance

1234567891011>>

/freebsd-current/crypto/openssl/providers/implementations/kdfs/
H A Dsshkdf.c100 const OSSL_PARAM params[])
105 if (!ossl_prov_is_running() || !kdf_sshkdf_set_ctx_params(ctx, params))
135 static int kdf_sshkdf_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
141 if (params == NULL)
144 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx))
147 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_KEY)) != NULL)
151 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_SSHKDF_XCGHASH))
156 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_SSHKDF_SESSION_ID))
161 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_SSHKDF_TYPE))
194 static int kdf_sshkdf_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
99 kdf_sshkdf_derive(void *vctx, unsigned char *key, size_t keylen, const OSSL_PARAM params[]) argument
[all...]
H A Dpbkdf2.c113 OSSL_PARAM params[2] = { OSSL_PARAM_END, OSSL_PARAM_END }; local
116 params[0] = OSSL_PARAM_construct_utf8_string(OSSL_KDF_PARAM_DIGEST,
118 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx))
145 const OSSL_PARAM params[])
150 if (!ossl_prov_is_running() || !kdf_pbkdf2_set_ctx_params(ctx, params))
169 static int kdf_pbkdf2_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
177 if (params == NULL)
180 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx))
183 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_PKCS5)) != NULL) {
189 if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_PASSWOR
144 kdf_pbkdf2_derive(void *vctx, unsigned char *key, size_t keylen, const OSSL_PARAM params[]) argument
231 kdf_pbkdf2_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
[all...]
/freebsd-current/crypto/openssl/providers/implementations/kem/
H A Drsa_kem.c22 #include <openssl/params.h>
121 const OSSL_PARAM params[], int operation)
136 return rsakem_set_ctx_params(prsactx, params);
140 const OSSL_PARAM params[])
142 return rsakem_init(vprsactx, vrsa, params, EVP_PKEY_OP_ENCAPSULATE);
146 const OSSL_PARAM params[])
148 return rsakem_init(vprsactx, vrsa, params, EVP_PKEY_OP_DECAPSULATE);
151 static int rsakem_get_ctx_params(void *vprsactx, OSSL_PARAM *params) argument
168 static int rsakem_set_ctx_params(void *vprsactx, const OSSL_PARAM params[]) argument
176 if (params
120 rsakem_init(void *vprsactx, void *vrsa, const OSSL_PARAM params[], int operation) argument
139 rsakem_encapsulate_init(void *vprsactx, void *vrsa, const OSSL_PARAM params[]) argument
145 rsakem_decapsulate_init(void *vprsactx, void *vrsa, const OSSL_PARAM params[]) argument
[all...]
/freebsd-current/crypto/openssl/test/
H A Dprovider_pkey_test.c13 #include <openssl/params.h>
186 OSSL_PARAM *params = NULL; local
196 if (!TEST_ptr(params = fake_rsa_key_params(0))
201 params))
207 OSSL_PARAM_free(params);
208 params = NULL;
211 if (!TEST_ptr(params = fake_rsa_key_params(0))
216 params))
222 OSSL_PARAM_free(params);
223 params
[all...]
/freebsd-current/crypto/openssl/demos/cipher/
H A Daesccm.c81 OSSL_PARAM params[3] = { local
98 params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_AEAD_IVLEN,
101 params[1] = OSSL_PARAM_construct_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG,
108 if (!EVP_EncryptInit_ex2(ctx, cipher, NULL, NULL, params))
136 params[0] = OSSL_PARAM_construct_octet_string(OSSL_CIPHER_PARAM_AEAD_TAG,
138 params[1] = OSSL_PARAM_construct_end();
140 if (!EVP_CIPHER_CTX_get_params(ctx, params))
166 OSSL_PARAM params[3] = { local
182 params[0] = OSSL_PARAM_construct_size_t(OSSL_CIPHER_PARAM_AEAD_IVLEN,
185 params[
[all...]
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_des.c75 const OSSL_PARAM params[], int enc)
103 return ossl_cipher_generic_set_ctx_params(ctx, params);
108 const OSSL_PARAM params[])
110 return des_init(vctx, key, keylen, iv, ivlen, params, 1);
115 const OSSL_PARAM params[])
117 return des_init(vctx, key, keylen, iv, ivlen, params, 0);
136 static int des_get_ctx_params(void *vctx, OSSL_PARAM params[]) argument
141 if (!ossl_cipher_generic_get_ctx_params(vctx, params))
144 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_RANDOM_KEY);
162 static int des_##lcmode##_get_params(OSSL_PARAM params[]) \
73 des_init(void *vctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[], int enc) argument
106 des_einit(void *vctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]) argument
113 des_dinit(void *vctx, const unsigned char *key, size_t keylen, const unsigned char *iv, size_t ivlen, const OSSL_PARAM params[]) argument
[all...]
/freebsd-current/crypto/heimdal/lib/kadm5/
H A Dcontext_s.c141 kadm5_config_params *params,
151 #define is_set(M) (params && params->mask & KADM5_CONFIG_ ## M)
153 (*ctx)->config.realm = strdup(params->realm);
157 (*ctx)->config.dbname = strdup(params->dbname);
159 (*ctx)->config.acl_file = strdup(params->acl_file);
161 (*ctx)->config.stash_file = strdup(params->stash_file);
140 _kadm5_s_init_context(kadm5_server_context **ctx, kadm5_config_params *params, krb5_context context) argument
H A Dmarshall.c328 kadm5_config_params *params,
335 ret = krb5_store_int32(sp, params->mask & (KADM5_CONFIG_REALM));
337 if (ret == 0 && params->mask & KADM5_CONFIG_REALM)
338 ret = krb5_store_string(sp, params->realm);
349 kadm5_config_params *params)
367 params->mask = mask;
369 if (params->mask & KADM5_CONFIG_REALM) {
370 ret = krb5_ret_string(sp, &params->realm);
371 if (params->realm == NULL) {
376 if (params
327 _kadm5_marshal_params(krb5_context context, kadm5_config_params *params, krb5_data *out) argument
347 _kadm5_unmarshal_params(krb5_context context, krb5_data *in, kadm5_config_params *params) argument
[all...]
/freebsd-current/crypto/openssl/providers/implementations/include/prov/
H A Ddigestcommon.h15 # include <openssl/params.h>
28 static int name##_get_params(OSSL_PARAM params[]) \
30 return ossl_digest_default_get_params(params, blksize, dgstsize, flags); \
91 ossl_unused const OSSL_PARAM params[]) \
104 static int name##_internal_init(void *ctx, const OSSL_PARAM params[]) \
108 && set_ctx_params(ctx, params); \
119 int ossl_digest_default_get_params(OSSL_PARAM params[], size_t blksz,
/freebsd-current/crypto/openssl/providers/implementations/macs/
H A Dpoly1305_prov.c12 #include <openssl/params.h>
94 size_t keylen, const OSSL_PARAM params[])
99 if (!ossl_prov_is_running() || !poly1305_set_ctx_params(ctx, params))
143 static int poly1305_get_params(OSSL_PARAM params[]) argument
147 if ((p = OSSL_PARAM_locate(params, OSSL_MAC_PARAM_SIZE)) != NULL)
163 static int poly1305_set_ctx_params(void *vmacctx, const OSSL_PARAM *params) argument
168 if ((p = OSSL_PARAM_locate_const(params, OSSL_MAC_PARAM_KEY)) != NULL
93 poly1305_init(void *vmacctx, const unsigned char *key, size_t keylen, const OSSL_PARAM params[]) argument
/freebsd-current/crypto/openssl/providers/implementations/signature/
H A Decdsa_sig.c21 #include <openssl/params.h>
129 const OSSL_PARAM params[], int operation)
153 if (!ecdsa_set_ctx_params(ctx, params))
159 static int ecdsa_sign_init(void *vctx, void *ec, const OSSL_PARAM params[]) argument
161 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_SIGN);
164 static int ecdsa_verify_init(void *vctx, void *ec, const OSSL_PARAM params[]) argument
166 return ecdsa_signverify_init(vctx, ec, params, EVP_PKEY_OP_VERIFY);
282 void *ec, const OSSL_PARAM params[],
290 if (!ecdsa_signverify_init(vctx, ec, params, operation)
302 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params))
128 ecdsa_signverify_init(void *vctx, void *ec, const OSSL_PARAM params[], int operation) argument
281 ecdsa_digest_signverify_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[], int operation) argument
311 ecdsa_digest_sign_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[]) argument
318 ecdsa_digest_verify_init(void *vctx, const char *mdname, void *ec, const OSSL_PARAM params[]) argument
438 ecdsa_get_ctx_params(void *vctx, OSSL_PARAM *params) argument
476 ecdsa_set_ctx_params(void *vctx, const OSSL_PARAM params[]) argument
544 ecdsa_get_ctx_md_params(void *vctx, OSSL_PARAM *params) argument
564 ecdsa_set_ctx_md_params(void *vctx, const OSSL_PARAM params[]) argument
[all...]
H A Dsm2_sig.c21 #include <openssl/params.h>
134 const OSSL_PARAM params[])
154 return sm2sig_set_ctx_params(psm2ctx, params);
205 void *ec, const OSSL_PARAM params[])
212 if (!sm2sig_signature_init(vpsm2ctx, ec, params)
240 if (!EVP_DigestInit_ex2(ctx->mdctx, ctx->md, params))
389 static int sm2sig_get_ctx_params(void *vpsm2ctx, OSSL_PARAM *params) argument
397 p = OSSL_PARAM_locate(params, OSSL_SIGNATURE_PARAM_ALGORITHM_ID);
402 p = OSSL_PARAM_locate(params, OSSL_SIGNATURE_PARAM_DIGEST_SIZE);
406 p = OSSL_PARAM_locate(params, OSSL_SIGNATURE_PARAM_DIGES
133 sm2sig_signature_init(void *vpsm2ctx, void *ec, const OSSL_PARAM params[]) argument
204 sm2sig_digest_signverify_init(void *vpsm2ctx, const char *mdname, void *ec, const OSSL_PARAM params[]) argument
428 sm2sig_set_ctx_params(void *vpsm2ctx, const OSSL_PARAM params[]) argument
498 sm2sig_get_ctx_md_params(void *vpsm2ctx, OSSL_PARAM *params) argument
518 sm2sig_set_ctx_md_params(void *vpsm2ctx, const OSSL_PARAM params[]) argument
[all...]
/freebsd-current/usr.sbin/cpucontrol/
H A Dvia.c77 via_update(const struct ucode_update_params *params) argument
99 dev = params->dev_path;
100 path = params->fw_path;
101 devfd = params->devfd;
102 fw_image = params->fwimage;
133 if (params->fwsize < sizeof(*fw_header)) {
147 if (total_size > params->fwsize) {
/freebsd-current/usr.sbin/mfiutil/
H A Dmfi_config.c470 /* params */
474 ld->params.primary_raid_level = DDF_RAID0;
475 ld->params.raid_level_qualifier = 0;
476 ld->params.secondary_raid_level = 0;
479 ld->params.primary_raid_level = DDF_RAID1;
480 ld->params.raid_level_qualifier = 0;
481 ld->params.secondary_raid_level = 0;
484 ld->params.primary_raid_level = DDF_RAID5;
485 ld->params.raid_level_qualifier = 3;
486 ld->params
[all...]
/freebsd-current/crypto/openssl/crypto/evp/
H A Dp_lib.c33 #include <openssl/params.h>
420 OSSL_PARAM params[] = { OSSL_PARAM_END, OSSL_PARAM_END }; local
423 params[0] = OSSL_PARAM_construct_octet_string(
428 if (EVP_PKEY_fromdata(ctx, &pkey, EVP_PKEY_KEYPAIR, params) != 1) {
528 static int get_raw_key_details(const OSSL_PARAM params[], void *arg) argument
534 if ((p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_PRIV_KEY))
540 if ((p = OSSL_PARAM_locate_const(params, OSSL_PKEY_PARAM_PUB_KEY))
624 OSSL_PARAM params[5], *p = params; local
659 if (EVP_PKEY_fromdata(ctx, &pkey, EVP_PKEY_KEYPAIR, params) <
2150 OSSL_PARAM params[2]; local
2199 OSSL_PARAM params[2]; local
2218 OSSL_PARAM params[2]; local
2244 OSSL_PARAM params[2]; local
2258 OSSL_PARAM params[2]; local
2271 OSSL_PARAM params[2]; local
2283 OSSL_PARAM params[2]; local
2296 OSSL_PARAM params[2]; local
2320 OSSL_PARAM params[2]; local
2333 OSSL_PARAM params[2]; local
2351 EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]) argument
2383 EVP_PKEY_get_params(const EVP_PKEY *pkey, OSSL_PARAM params[]) argument
[all...]
/freebsd-current/sys/dev/cxgbe/crypto/
H A Dt4_keyctx.c415 tls->params.cipher_key_len;
416 if (tls->params.cipher_algorithm == CRYPTO_AES_NIST_GCM_16) {
419 switch (tls->params.auth_algorithm) {
440 if (tls->params.tls_vminor == TLS_MINOR_VER_ONE)
449 switch (tls->params.cipher_algorithm) {
462 switch (tls->params.cipher_algorithm) {
464 switch (tls->params.auth_algorithm) {
484 switch (tls->params.cipher_algorithm) {
497 switch (tls->params.cipher_key_len) {
512 if (tls->params
[all...]
/freebsd-current/crypto/openssl/crypto/ec/
H A Dec_asn1.c384 ECPARAMETERS *params)
394 if (params == NULL) {
400 ret = params;
464 if (params == NULL)
470 ECPKPARAMETERS *params)
473 ECPKPARAMETERS *ret = params;
522 EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) argument
532 if (params->fieldID == NULL
533 || params->fieldID->fieldType == NULL
534 || params
383 EC_GROUP_get_ecparameters(const EC_GROUP *group, ECPARAMETERS *params) argument
469 EC_GROUP_get_ecpkparameters(const EC_GROUP *group, ECPKPARAMETERS *params) argument
850 EC_GROUP_new_from_ecpkparameters(const ECPKPARAMETERS *params) argument
892 ECPKPARAMETERS *params = NULL; local
[all...]
/freebsd-current/sys/dev/ice/
H A Dice_flow.c442 * @params: information about the flow to be processed
448 ice_flow_proc_seg_hdrs(struct ice_flow_prof_params *params) argument
453 ice_memset(params->ptypes, 0xff, sizeof(params->ptypes),
456 prof = params->prof;
458 for (i = 0; i < params->prof->segs_cnt; i++) {
467 ice_and_bitmap(params->ptypes, params->ptypes, src,
473 ice_and_bitmap(params->ptypes, params
562 ice_flow_xtract_fld(struct ice_hw *hw, struct ice_flow_prof_params *params, u8 seg, enum ice_flow_field fld) argument
719 ice_flow_create_xtrct_seq(struct ice_hw *hw, struct ice_flow_prof_params *params) argument
748 ice_flow_proc_segs(struct ice_hw *hw, struct ice_flow_prof_params *params) argument
910 struct ice_flow_prof_params *params; local
[all...]
/freebsd-current/contrib/wpa/src/drivers/
H A Ddriver_bsd.c342 bsd_set_key(void *priv, struct wpa_driver_set_key_params *params) argument
348 enum wpa_alg alg = params->alg;
349 const u8 *addr = params->addr;
350 int key_idx = params->key_idx;
351 int set_tx = params->set_tx;
352 const u8 *seq = params->seq;
353 size_t seq_len = params->seq_len;
354 const u8 *key = params->key;
355 size_t key_len = params->key_len;
441 bsd_configure_wpa(void *priv, struct wpa_bss_params *params) argument
532 bsd_set_ieee8021x(void *priv, struct wpa_bss_params *params) argument
1032 bsd_init(struct hostapd_data *hapd, struct wpa_init_params *params) argument
1235 wpa_driver_bsd_set_rsn_wpa_ie(struct bsd_driver_data * drv, struct wpa_driver_associate_params *params, const u8 *ie) argument
1263 wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params) argument
1358 wpa_driver_bsd_scan(void *priv, struct wpa_driver_scan_params *params) argument
[all...]
/freebsd-current/sys/dev/dpaa/
H A Dif_dtsec_rm.c148 t_FmPortParams params; local
153 memset(&params, 0, sizeof(params));
155 params.baseAddr = sc->sc_fm_base + sc->sc_port_rx_hw_id;
156 params.h_Fm = sc->sc_fmh;
157 params.portType = dtsec_fm_port_rx_type(sc->sc_eth_dev_type);
158 params.portId = sc->sc_eth_id;
159 params.independentModeEnable = false;
160 params.liodnBase = FM_PORT_LIODN_BASE;
161 params
197 t_FmPortParams params; local
[all...]
/freebsd-current/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_shim.c639 VCHIQ_SERVICE_PARAMS_T params; local
642 memset(&params, 0, sizeof(params));
643 params.fourcc = setup->service_id;
644 params.callback = shim_callback;
645 params.userdata = service;
646 params.version = setup->version.version;
647 params.version_min = setup->version.version_min;
649 status = vchiq_open_service(instance, &params,
672 VCHIQ_SERVICE_PARAMS_T params; local
[all...]
/freebsd-current/crypto/openssl/providers/implementations/exchange/
H A Ddh_exch.c23 #include <openssl/params.h>
96 static int dh_init(void *vpdhctx, void *vdh, const OSSL_PARAM params[]) argument
108 return dh_set_ctx_params(pdhctx, params)
309 static int dh_set_ctx_params(void *vpdhctx, const OSSL_PARAM params[]) argument
319 if (params == NULL)
322 p = OSSL_PARAM_locate_const(params, OSSL_EXCHANGE_PARAM_KDF_TYPE);
335 p = OSSL_PARAM_locate_const(params, OSSL_EXCHANGE_PARAM_KDF_DIGEST);
344 p = OSSL_PARAM_locate_const(params,
362 p = OSSL_PARAM_locate_const(params, OSSL_EXCHANGE_PARAM_KDF_OUTLEN);
371 p = OSSL_PARAM_locate_const(params, OSSL_EXCHANGE_PARAM_KDF_UK
445 dh_get_ctx_params(void *vpdhctx, OSSL_PARAM params[]) argument
[all...]
/freebsd-current/crypto/openssl/crypto/
H A Dparam_build.c14 #include <openssl/params.h>
48 STACK_OF(OSSL_PARAM_BLD_DEF) *params;
69 if (sk_OSSL_PARAM_BLD_DEF_push(bld->params, pd) <= 0) {
96 r->params = sk_OSSL_PARAM_BLD_DEF_new_null();
97 if (r->params == NULL) {
107 int i, n = sk_OSSL_PARAM_BLD_DEF_num(bld->params);
110 OPENSSL_free(sk_OSSL_PARAM_BLD_DEF_pop(bld->params));
118 sk_OSSL_PARAM_BLD_DEF_free(bld->params);
312 int i, num = sk_OSSL_PARAM_BLD_DEF_num(bld->params);
317 pd = sk_OSSL_PARAM_BLD_DEF_value(bld->params,
361 OSSL_PARAM *params, *last; local
[all...]
/freebsd-current/contrib/ncurses/form/
H A Dfty_enum.c69 enumParams *params = (enumParams *)arg; local
71 if (params)
83 kwds = params->kwds;
84 ccase = params->ccase;
85 cunique = params->cunique;
132 enumParams params;
134 params.kwds = va_arg(*ap, char **);
135 params.ccase = va_arg(*ap, int);
136 params.cunique = va_arg(*ap, int);
138 return Generic_Enum_Type((void *)&params);
131 enumParams params; local
[all...]
/freebsd-current/contrib/wpa/wpa_supplicant/
H A Ddriver_i.h52 struct wpa_driver_auth_params *params)
55 return wpa_s->driver->authenticate(wpa_s->drv_priv, params);
60 struct wpa_driver_associate_params *params)
63 return wpa_s->driver->associate(wpa_s->drv_priv, params);
76 struct wpa_driver_mesh_join_params *params)
79 return wpa_s->driver->join_mesh(wpa_s->drv_priv, params);
101 struct wpa_driver_scan_params *params)
108 return wpa_s->driver->scan2(wpa_s->drv_priv, params);
113 struct wpa_driver_scan_params *params)
116 return wpa_s->driver->sched_scan(wpa_s->drv_priv, params);
51 wpa_drv_authenticate(struct wpa_supplicant *wpa_s, struct wpa_driver_auth_params *params) argument
59 wpa_drv_associate(struct wpa_supplicant *wpa_s, struct wpa_driver_associate_params *params) argument
75 wpa_drv_join_mesh(struct wpa_supplicant *wpa_s, struct wpa_driver_mesh_join_params *params) argument
100 wpa_drv_scan(struct wpa_supplicant *wpa_s, struct wpa_driver_scan_params *params) argument
112 wpa_drv_sched_scan(struct wpa_supplicant *wpa_s, struct wpa_driver_scan_params *params) argument
153 struct wpa_driver_set_key_params params; local
216 wpa_drv_add_pmkid(struct wpa_supplicant *wpa_s, struct wpa_pmkid_params *params) argument
225 wpa_drv_remove_pmkid(struct wpa_supplicant *wpa_s, struct wpa_pmkid_params *params) argument
341 wpa_drv_set_ap(struct wpa_supplicant *wpa_s, struct wpa_driver_ap_params *params) argument
349 wpa_drv_sta_add(struct wpa_supplicant *wpa_s, struct hostapd_sta_add_params *params) argument
759 wpa_drv_macsec_init(struct wpa_supplicant *wpa_s, struct macsec_init_params *params) argument
1057 wpa_drv_get_bss_trans_status(struct wpa_supplicant *wpa_s, struct wpa_bss_trans_info *params) argument
1084 wpa_drv_update_connect_params( struct wpa_supplicant *wpa_s, struct wpa_driver_associate_params *params, enum wpa_drv_update_connect_params_mask mask) argument
1096 wpa_drv_send_external_auth_status(struct wpa_supplicant *wpa_s, struct external_auth *params) argument
[all...]

Completed in 310 milliseconds

1234567891011>>