Lines Matching refs:data

30     /* Processing data passed down through recursion */
35 /* Processing data passed up through recursion */
43 static int encoder_process(struct encoder_process_data_st *data);
47 struct encoder_process_data_st data;
49 memset(&data, 0, sizeof(data));
50 data.ctx = ctx;
51 data.bio = out;
52 data.current_encoder_inst_index = OSSL_ENCODER_CTX_get_num_encoders(ctx);
54 if (data.current_encoder_inst_index == 0) {
62 return encoder_process(&data) > 0;
128 memcpy(*pdata, buf->data, buf->length);
131 /* In this case, we steal the data from BIO_s_mem() */
132 *pdata = (unsigned char *)buf->data;
133 buf->data = NULL;
391 static int encoder_process(struct encoder_process_data_st *data)
404 if (data->next_encoder_inst == NULL) {
407 data->count_output_structure =
408 data->ctx->output_structure == NULL ? -1 : 0;
412 for (i = data->current_encoder_inst_index; i-- > 0;) {
420 OSSL_ENCODER_INSTANCE_get_encoder(data->next_encoder_inst);
423 sk_OSSL_ENCODER_INSTANCE_value(data->ctx->encoder_insts, i);
433 new_data.ctx = data->ctx;
436 new_data.count_output_structure = data->count_output_structure;
437 new_data.level = data->level + 1;
442 data->level, (void *)data->ctx,
454 if (data->ctx->output_type != NULL
456 data->ctx->output_type) != 0) {
460 data->level,
461 current_output_type, data->ctx->output_type);
470 data->level,
482 if (data->ctx->output_structure != NULL
484 if (OPENSSL_strcasecmp(data->ctx->output_structure,
489 data->level,
491 data->ctx->output_structure);
496 data->count_output_structure++;
505 data->prev_encoder_inst = new_data.prev_encoder_inst;
506 data->running_output = new_data.running_output;
507 data->running_output_length = new_data.running_output_length;
526 data->level, new_data.level);
540 data->level, (void *)data->ctx);
555 * |data->count_output_structure| is one of these values:
564 if (data->count_output_structure == 0)
568 data->ctx->construct(current_encoder_inst,
569 data->ctx->construct_data);
571 /* Also set the data type, using the encoder implementation name */
572 data->data_type = OSSL_ENCODER_get0_name(current_encoder);
581 if (!ossl_assert(data->running_output != NULL)) {
595 OSSL_ENCODER_INSTANCE_get_output_structure(data->prev_encoder_inst);
599 (char *)data->data_type, 0);
607 data->running_output,
608 data->running_output_length);
626 current_out = data->bio;
636 data->ctx->selection,
638 &data->ctx->pwdata);
642 data->level, (void *)data->ctx,
648 data->prev_encoder_inst = current_encoder_inst;
654 OPENSSL_free(data->running_output);
655 data->running_output = NULL;
659 * That'll be the data for an object abstraction in the next round.
665 data->running_output = (unsigned char *)buf->data;
666 data->running_output_length = buf->length;
672 data->ctx->cleanup(data->ctx->construct_data);