Home
last modified time | relevance | path

Searched refs:data_size (Results 1 – 25 of 74) sorted by relevance

123

/openssl/crypto/
H A Dparams.c75 res.data_size = data_size; in ossl_param_construct()
406 switch (p->data_size) { in OSSL_PARAM_get_int32()
427 switch (p->data_size) { in OSSL_PARAM_get_int32()
452 switch (p->data_size) { in OSSL_PARAM_get_int32()
482 switch (p->data_size) { in OSSL_PARAM_set_int32()
498 switch (p->data_size) { in OSSL_PARAM_set_int32()
517 switch (p->data_size) { in OSSL_PARAM_set_int32()
560 switch (p->data_size) { in OSSL_PARAM_get_uint32()
580 switch (p->data_size) { in OSSL_PARAM_get_uint32()
1320 sz = p->data_size; in get_string_internal()
[all …]
H A Dparams_from_text.c100 if (p->data_size > 0) { in prepare_from_text()
101 if (buf_bits > p->data_size * 8) { in prepare_from_text()
107 *buf_n = p->data_size; in prepare_from_text()
195 to->data_size = buf_n; in construct_from_text()
248 if (p->data_size > sizeof(int64_t)) { in OSSL_PARAM_print_to_bio()
261 if (p->data_size > sizeof(int64_t)) { in OSSL_PARAM_print_to_bio()
274 ok = BIO_dump(bio, p->data, p->data_size); in OSSL_PARAM_print_to_bio()
277 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio()
281 ok = BIO_dump(bio, (char *)p->data, p->data_size); in OSSL_PARAM_print_to_bio()
295 p->data_type, p->data_size); in OSSL_PARAM_print_to_bio()
H A Dparams_dup.c51 last->data_size = secure_buffer_sz; in ossl_param_set_secure_block()
78 param_sz = in->data_size; in ossl_param_dup()
233 OPENSSL_secure_clear_free(p->data, p->data_size); in OSSL_PARAM_free()
H A Dparam_build_set.c76 if (sz > p->data_size) { in ossl_param_build_set_bn_pad()
80 p->data_size = sz; in ossl_param_build_set_bn_pad()
/openssl/providers/implementations/ciphers/
H A Dciphercommon_ccm.c83 if ((p->data_size & 1) || (p->data_size < 4) || p->data_size > 16) { in ossl_ccm_set_ctx_params()
93 memcpy(ctx->buf, p->data, p->data_size); in ossl_ccm_set_ctx_params()
96 ctx->m = p->data_size; in ossl_ccm_set_ctx_params()
124 sz = ccm_tls_init(ctx, p->data, p->data_size); in ossl_ccm_set_ctx_params()
138 if (ccm_tls_iv_set_fixed(ctx, p->data, p->data_size) == 0) { in ossl_ccm_set_ctx_params()
170 if (ccm_get_ivlen(ctx) > p->data_size) { in ossl_ccm_get_ctx_params()
174 if (!OSSL_PARAM_set_octet_string(p, ctx->iv, p->data_size) in ossl_ccm_get_ctx_params()
175 && !OSSL_PARAM_set_octet_ptr(p, &ctx->iv, p->data_size)) { in ossl_ccm_get_ctx_params()
183 if (ccm_get_ivlen(ctx) > p->data_size) { in ossl_ccm_get_ctx_params()
187 if (!OSSL_PARAM_set_octet_string(p, ctx->iv, p->data_size) in ossl_ccm_get_ctx_params()
[all …]
H A Dcipher_chacha20_poly1305.c137 if (p->data_size == 0 || p->data_size > POLY1305_BLOCK_SIZE) { in chacha20_poly1305_get_ctx_params()
141 memcpy(p->data, ctx->tag, p->data_size); in chacha20_poly1305_get_ctx_params()
202 if (p->data_size == 0 || p->data_size > POLY1305_BLOCK_SIZE) { in chacha20_poly1305_set_ctx_params()
211 memcpy(ctx->tag, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
213 ctx->tag_len = p->data_size; in chacha20_poly1305_set_ctx_params()
222 len = hw->tls_init(&ctx->base, p->data, p->data_size); in chacha20_poly1305_set_ctx_params()
236 if (hw->tls_iv_set_fixed(&ctx->base, p->data, p->data_size) == 0) { in chacha20_poly1305_set_ctx_params()
H A Dciphercommon_gcm.c186 if (ctx->ivlen > p->data_size) { in ossl_gcm_get_ctx_params()
200 if (ctx->ivlen > p->data_size) { in ossl_gcm_get_ctx_params()
219 sz = p->data_size; in ossl_gcm_get_ctx_params()
236 || !getivgen(ctx, p->data, p->data_size)) in ossl_gcm_get_ctx_params()
299 sz = gcm_tls_init(ctx, p->data, p->data_size); in ossl_gcm_set_ctx_params()
312 if (gcm_tls_iv_set_fixed(ctx, p->data, p->data_size) == 0) { in ossl_gcm_set_ctx_params()
321 || !setivinv(ctx, p->data, p->data_size)) in ossl_gcm_set_ctx_params()
H A Dcipher_aes_ocb.c370 if (p->data_size > OCB_MAX_TAG_LEN) { in aes_ocb_set_ctx_params()
374 ctx->taglen = p->data_size; in aes_ocb_set_ctx_params()
380 if (p->data_size != ctx->taglen) { in aes_ocb_set_ctx_params()
384 memcpy(ctx->tag, p->data, p->data_size); in aes_ocb_set_ctx_params()
442 if (ctx->base.ivlen > p->data_size) { in aes_ocb_get_ctx_params()
454 if (ctx->base.ivlen > p->data_size) { in aes_ocb_get_ctx_params()
470 if (!ctx->base.enc || p->data_size != ctx->taglen) { in aes_ocb_get_ctx_params()
H A Dcipher_aes_cbc_hmac_sha.c106 hw->init_mac_key(ctx, p->data, p->data_size); in aes_set_ctx_params()
137 mb_param.len = p->data_size; in aes_set_ctx_params()
168 mb_param.len = pin->data_size; in aes_set_ctx_params()
180 if (hw->set_tls1_aad(ctx, p->data, p->data_size) <= 0) in aes_set_ctx_params()
H A Dcipher_rc4_hmac_md5.c189 sz = GET_HW(ctx)->tls_init(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
202 GET_HW(ctx)->init_mackey(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
/openssl/test/
H A Dparam_build_test.c150 || !TEST_size_t_eq(p->data_size, sizeof(int)) in template_public_test()
157 || !TEST_size_t_eq(p->data_size, sizeof(int32_t)) in template_public_test()
163 || !TEST_size_t_eq(p->data_size, sizeof(int64_t)) in template_public_test()
170 || !TEST_size_t_eq(p->data_size, sizeof(long int)) in template_public_test()
177 || !TEST_size_t_eq(p->data_size, sizeof(time_t)) in template_public_test()
185 || !TEST_size_t_eq(p->data_size, sizeof(double)) in template_public_test()
306 || !TEST_size_t_eq(p->data_size, sizeof(int)) in template_private_test()
314 || !TEST_size_t_eq(p->data_size, sizeof(int32_t)) in template_private_test()
337 || !TEST_size_t_eq(p->data_size, sizeof(size_t)) in template_private_test()
486 || !TEST_size_t_eq(p->data_size, sizeof(int)) in builder_merge_test()
[all …]
H A Dquic_stream_test.c481 const size_t data_size = 10000; in test_rstream_random() local
486 if (!TEST_ptr(bulk_data = OPENSSL_malloc(data_size)) in test_rstream_random()
487 || !TEST_ptr(read_buf = OPENSSL_malloc(data_size)) in test_rstream_random()
494 for (i = 0; i < data_size; ++i) in test_rstream_random()
524 if (off + size > data_size) in test_rstream_random()
525 off = data_size - size; in test_rstream_random()
541 data_size, in test_rstream_random()
546 || !TEST_size_t_le(readbytes + read_off, data_size) in test_rstream_random()
558 if (!fin_set && queued_max >= data_size - test_random() % 200) { in test_rstream_random()
574 if (read_off == data_size && fin_set && !fin) { in test_rstream_random()
[all …]
H A Dparams_test.c142 params->data_size, NULL))) in raw_set_params()
147 params->data_size))) in raw_set_params()
156 OPENSSL_strnlen(params->data, params->data_size); in raw_set_params()
165 obj->p6_l = params->data_size; in raw_set_params()
184 if (!TEST_size_t_ge(params->data_size, params->return_size)) in raw_get_params()
189 if (!TEST_size_t_gt(params->data_size, params->return_size)) in raw_get_params()
194 if (!TEST_size_t_gt(params->data_size, params->return_size)) in raw_get_params()
631 if (param.data_size == 0) { in check_int_from_text()
650 if (param.data_size != a.expected_bufsize) { in check_int_from_text()
653 (int)a.expected_bufsize, (int)param.data_size); in check_int_from_text()
H A Dparams_api_test.c82 if (param->data_size == sizeof(int32_t)) in test_param_type_null()
84 else if (param->data_size == sizeof(uint64_t)) in test_param_type_null()
90 if (param->data_size == sizeof(uint32_t)) in test_param_type_null()
92 else if (param->data_size == sizeof(uint64_t)) in test_param_type_null()
507 param.data_size = sizeof(bnbuf); in test_param_bignum()
517 param.data_size = param.return_size; in test_param_bignum()
541 param.data_size = sizeof(bnbuf); in test_param_signed_bignum()
554 param.data_size = param.return_size; in test_param_signed_bignum()
713 cp->data_size = cp->return_size; in test_param_construct()
733 cp->data_size = cp->return_size; in test_param_construct()
[all …]
H A Dp_test.c139 if (p->data_size >= buf_l) in p_get_params()
194 if (p->data_size >= sizeof(digestsuccess)) { in p_get_params()
210 if (p->data_size >= sizeof(stopsuccess)) { in p_get_params()
/openssl/apps/lib/
H A Dapp_params.c62 if (param->data_size == 0) in describe_param_type()
66 param->data_size); in describe_param_type()
124 BIO_printf(bio_out, "<%zu bytes>\n", p->data_size); in print_param_value()
128 p->data_type, p->data_size); in print_param_value()
/openssl/providers/implementations/macs/
H A Dblake2_mac_impl.c210 && !blake2_setkey(macctx, p->data, p->data_size)) in blake2_mac_set_ctx_params()
219 if (p->data_size > BLAKE2_PERSONALBYTES) { in blake2_mac_set_ctx_params()
223 BLAKE2_PARAM_SET_PERSONAL(&macctx->params, p->data, p->data_size); in blake2_mac_set_ctx_params()
231 if (p->data_size > BLAKE2_SALTBYTES) { in blake2_mac_set_ctx_params()
235 BLAKE2_PARAM_SET_SALT(&macctx->params, p->data, p->data_size); in blake2_mac_set_ctx_params()
H A Dgmac_prov.c231 || !gmac_setkey(macctx, p->data, p->data_size)) in gmac_set_ctx_params()
239 p->data_size, NULL) <= 0 in gmac_set_ctx_params()
/openssl/doc/man3/
H A DOSSL_PARAM.pod16 size_t data_size; /* data size */
99 =item I<data_size>
103 and I<data_size> is its size in bytes.
106 The I<data_size> needs special attention with the parameter type
116 In this case, I<data_size> is ignored.
120 If I<data_size> is zero, it means that an arbitrary data size is
128 In case the I<data_size> is an unsuitable size for the data, the
195 I<data_size> is not relevant. However, the I<responder> will set
221 I<data_size> is not relevant. However, the I<responder> will set
287 if the I<data_size> isn't a suitable size (even if I<data_size> is
[all …]
/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c194 key->priv_key = OPENSSL_secure_malloc(p->data_size > 0 ? p->data_size : 1); in mac_key_fromdata()
197 memcpy(key->priv_key, p->data, p->data_size); in mac_key_fromdata()
198 key->priv_key_len = p->data_size; in mac_key_fromdata()
428 gctx->priv_key = OPENSSL_secure_malloc(p->data_size); in mac_gen_set_params()
431 memcpy(gctx->priv_key, p->data, p->data_size); in mac_gen_set_params()
432 gctx->priv_key_len = p->data_size; in mac_gen_set_params()
/openssl/crypto/rsa/
H A Drsa_acvp_test_params.c48 d->data_size = p->data_size; in ossl_rsa_acvp_test_gen_params_new()
49 d->data = OPENSSL_memdup(p->data, p->data_size); in ossl_rsa_acvp_test_gen_params_new()
/openssl/include/internal/
H A Dssl3_cbc.h37 size_t data_size,
/openssl/providers/implementations/digests/
H A Dmd5_sha1_prov.c53 p->data_size, p->data); in md5_sha1_set_ctx_params()
/openssl/fuzz/
H A Dprovider.c353 p->data_size = data_len; in fuzz_params()
361 p->data_size = data_len; in fuzz_params()
369 p->data_size = data_len; in fuzz_params()
377 p->data_size = data_len; in fuzz_params()
/openssl/include/openssl/
H A Dcore.h89 size_t data_size; /* data size */ member

Completed in 66 milliseconds

123