Home
last modified time | relevance | path

Searched refs:return_size (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/crypto/openssl/crypto/
H A Dparams.c52 res.return_size = OSSL_PARAM_UNMODIFIED; in ossl_param_construct()
58 return p != NULL && p->return_size != OSSL_PARAM_UNMODIFIED; in OSSL_PARAM_modified()
65 p++->return_size = OSSL_PARAM_UNMODIFIED; in OSSL_PARAM_set_all_unmodified()
182 p->return_size = val_size; /* Expected size */ in general_set_int()
189 p->return_size = r ? p->data_size : val_size; in general_set_int()
208 p->return_size = val_size; /* Expected size */ in general_set_uint()
215 p->return_size = r ? p->data_size : val_size; in general_set_uint()
415 p->return_size = 0; in OSSL_PARAM_set_int32()
418 p->return_size = sizeof(int32_t); /* Minimum expected size */ in OSSL_PARAM_set_int32()
426 p->return_size = sizeof(int64_t); in OSSL_PARAM_set_int32()
[all …]
H A Dparams_from_text.c198 to->return_size = OSSL_PARAM_UNMODIFIED; in construct_from_text()
H A Dparam_build.c321 param[i].return_size = OSSL_PARAM_UNMODIFIED; in param_bld_convert()
/freebsd/crypto/openssl/test/
H A Dparams_test.c177 params->return_size = sizeof(obj->p1); in raw_get_params()
180 params->return_size = sizeof(obj->p2); in raw_get_params()
183 params->return_size = BN_num_bytes(obj->p3); in raw_get_params()
184 if (!TEST_size_t_ge(params->data_size, params->return_size)) in raw_get_params()
186 BN_bn2nativepad(obj->p3, params->data, params->return_size); in raw_get_params()
188 params->return_size = strlen(obj->p4); in raw_get_params()
189 if (!TEST_size_t_gt(params->data_size, params->return_size)) in raw_get_params()
193 params->return_size = strlen(obj->p5); in raw_get_params()
194 if (!TEST_size_t_gt(params->data_size, params->return_size)) in raw_get_params()
198 params->return_size = strlen(obj->p6); in raw_get_params()
[all …]
H A Dparams_api_test.c84 param->return_size = OSSL_PARAM_UNMODIFIED; in test_param_type_extra()
434 || !TEST_mem_eq(bnbuf, param.return_size, buf, param.return_size)) in test_param_bignum()
436 param.data_size = param.return_size; in test_param_bignum()
533 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
544 || !TEST_size_t_eq(cp->data_size, cp->return_size) in test_param_construct()
554 || !TEST_size_t_eq(cp->return_size, sizeof(double)) in test_param_construct()
562 || !TEST_size_t_eq(cp->return_size, sizeof("abcdef") - 1) in test_param_construct()
578 || !TEST_size_t_eq(cp->return_size, sizeof("tuvwxyz") - 1) in test_param_construct()
587 || !TEST_size_t_eq(cp->return_size, sizeof("abcdefghi"))) in test_param_construct()
590 cp->data_size = cp->return_size; in test_param_construct()
[all …]
H A Dp_test.c138 p->return_size = buf_l = strlen(buf) + 1; in p_get_params()
196 p->return_size = sizeof(digestsuccess); in p_get_params()
212 p->return_size = sizeof(stopsuccess); in p_get_params()
H A Dalgorithmid_test.c90 algid_prov_len = params[0].return_size; in test_spki_aid()
174 algid_prov_len = params[0].return_size; in test_x509_sig_aid()
H A Dtls-provider.c536 p->return_size = XOR_KEY_SIZE; in xor_get_params()
/freebsd/crypto/openssl/doc/man3/
H A DOSSL_PARAM.pod17 size_t return_size; /* returned size */
123 =item I<return_size>
134 I<return_size> should be ignored.
196 I<return_size> to the size of the data.
222 I<return_size> to the size of the data.
252 Apart from the I<return_size>, a I<responder> must never change the fields
272 set I<return_size> to the size of the item to be returned
279 requested data, it must set I<return_size> for each such
290 native endianness, and set I<return_size> to the same value as
349 params[i].return_size = 9; /* length of "foo value" string */
[all …]
H A DOSSL_PARAM_int.pod229 If the parameter's I<data> field is NULL, then only its I<return_size> field
238 If the parameter's I<data> field is NULL, then only its I<return_size> field
258 If the parameter's I<data> field is NULL, then only its I<return_size> field
273 If the parameter's I<data> field is NULL, then only its I<return_size> field
302 creation, via either the macros or construct calls, the I<return_size> field
304 I<return_size> field is changed.
H A DOSSL_PARAM_allocate_from_text.pod34 values from the item that was found, and I<< to->return_size >> is set
/freebsd/crypto/openssl/crypto/evp/
H A Dp_lib.c1406 size_t return_size = OSSL_PARAM_UNMODIFIED; in EVP_PKEY_get1_encoded_public_key() local
1415 NULL, 0, &return_size); in EVP_PKEY_get1_encoded_public_key()
1416 if (return_size == OSSL_PARAM_UNMODIFIED) in EVP_PKEY_get1_encoded_public_key()
1420 buf = OPENSSL_malloc(return_size); in EVP_PKEY_get1_encoded_public_key()
1426 buf, return_size, NULL)) { in EVP_PKEY_get1_encoded_public_key()
1431 return return_size; in EVP_PKEY_get1_encoded_public_key()
2171 if (!OSSL_PARAM_modified(params) || params[0].return_size == 0) in EVP_PKEY_get_bn_param()
2173 buf_sz = params[0].return_size; in EVP_PKEY_get_bn_param()
2218 *out_len = params[0].return_size; in EVP_PKEY_get_utf8_string_param()
2237 *out_len = params[0].return_size; in EVP_PKEY_get_utf8_string_param()
[all...]
H A Devp_lib.c143 && params[0].return_size != 0 in evp_cipher_param_to_asn1_ex()
144 && (der = OPENSSL_malloc(params[0].return_size)) != NULL) { in evp_cipher_param_to_asn1_ex()
146 params[0].data_size = params[0].return_size; in evp_cipher_param_to_asn1_ex()
152 params[0].return_size) != NULL) { in evp_cipher_param_to_asn1_ex()
H A Dkeymgmt_lib.c560 if (params[1].return_size <= 1) /* Only a NUL byte */ in evp_keymgmt_util_get_deflt_digest_name()
566 if (params[0].return_size <= 1) /* Only a NUL byte */ in evp_keymgmt_util_get_deflt_digest_name()
H A Dec_ctrl.c265 ukmlen = params[0].return_size; in EVP_PKEY_CTX_get0_ecdh_kdf_ukm()
H A Ddh_ctrl.c340 ukmlen = params[0].return_size; in EVP_PKEY_CTX_get0_dh_kdf_ukm()
H A Dpmeth_lib.c1075 if (os_params[0].return_size == OSSL_PARAM_UNMODIFIED) in evp_pkey_ctx_add1_octet_string()
1078 info_alloc = os_params[0].return_size + datalen; in evp_pkey_ctx_add1_octet_string()
1084 info_len = os_params[0].return_size; in evp_pkey_ctx_add1_octet_string()
1338 size_t tmp_id_len = params[0].return_size; in get1_id_data()
/freebsd/crypto/openssl/include/openssl/
H A Dcore.h87 size_t return_size; /* returned content size */ member
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_rsa.c238 if ((aid_len = params[0].return_size) == 0) in rsa_cms_sign()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_rc2.c151 p->return_size = (size_t)i; in rc2_get_ctx_params()
/freebsd/crypto/openssl/crypto/asn1/
H A Da_sign.c190 if ((aid_len = params[0].return_size) == 0) { in ASN1_item_sign_ctx()
/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Ddh_kmgmt.c331 p->return_size = ossl_dh_key2buf(dh, (unsigned char **)&p->data, in dh_get_params()
333 if (p->return_size == 0) in dh_get_params()
H A Dec_kmgmt.c746 p->return_size = EC_POINT_point2oct(ecg, ecp, in common_get_params()
749 if (p->return_size == 0) in common_get_params()
/freebsd/crypto/openssl/providers/implementations/kdfs/
H A Dhkdf.c345 p->return_size = 0; in kdf_hkdf_get_ctx_params()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_ameth.c683 if ((aid_len = params[0].return_size) == 0) in rsa_item_sign()

12