Lines Matching defs:encoder

12 #include <openssl/encoder.h>
27 /* Index of the current encoder instance to be processed */
39 /* Data type = the name of the first succeeding encoder implementation */
182 static OSSL_ENCODER_INSTANCE *ossl_encoder_instance_new(OSSL_ENCODER *encoder,
191 if (!ossl_assert(encoder != NULL)) {
201 if (!OSSL_ENCODER_up_ref(encoder)) {
206 prov = OSSL_ENCODER_get0_provider(encoder);
208 props = ossl_encoder_parsed_properties(encoder);
211 "there are no property definitions with encoder %s",
212 OSSL_ENCODER_get0_name(encoder));
222 "for encoder %s (properties: %s)",
223 OSSL_ENCODER_get0_name(encoder),
224 OSSL_ENCODER_get0_properties(encoder));
234 encoder_inst->encoder = encoder;
245 if (encoder_inst->encoder != NULL)
246 encoder_inst->encoder->freectx(encoder_inst->encoderctx);
248 OSSL_ENCODER_free(encoder_inst->encoder);
249 encoder_inst->encoder = NULL;
270 "(ctx %p) Added encoder instance %p (encoder %p):\n"
272 (void *)ctx, (void *)ei, (void *)ei->encoder,
273 OSSL_ENCODER_get0_name(ei->encoder),
274 OSSL_ENCODER_get0_properties(ei->encoder));
280 int OSSL_ENCODER_CTX_add_encoder(OSSL_ENCODER_CTX *ctx, OSSL_ENCODER *encoder)
287 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) {
292 prov = OSSL_ENCODER_get0_provider(encoder);
295 if ((encoderctx = encoder->newctx(provctx)) == NULL
297 ossl_encoder_instance_new(encoder, encoderctx)) == NULL)
309 encoder->freectx(encoderctx);
364 return encoder_inst->encoder;
441 "[%d] (ctx %p) Considering encoder instance %p (encoder %p)\n",
448 * encoder matches the desired output type.
450 * we instead check if the output type of the current encoder matches
451 * the name of the next encoder (the one found by the parent call).
459 "[%d] Skipping because current encoder output type (%s) != desired output type (%s)\n",
469 "[%d] Skipping because current encoder output type (%s) != name of encoder %p\n",
478 * If the caller and the current encoder specify an output structure,
480 * the current encoder.
488 "[%d] Skipping because current encoder output structure (%s) != ctx output structure (%s)\n",
500 * Recurse to process the encoder implementations before the current
516 * suitable encoder at this recursion level.
531 * If |i < 0|, we didn't find any useful encoder in this recursion, so
539 "[%d] (ctx %p) No suitable encoder found\n",
550 * We have reached the beginning of the encoder instance sequence,
559 * matched by any of the encoder instances that were
562 * of the encoder instances matched it
571 /* Also set the data type, using the encoder implementation name */
615 /* Calling the encoder implementation */
622 * If we're at the last encoder instance to use, we're setting up
641 "[%d] (ctx %p) Running encoder instance %p => %d\n",