Lines Matching refs:encoder
187 static OSSL_ENCODER_INSTANCE *ossl_encoder_instance_new(OSSL_ENCODER *encoder, in ossl_encoder_instance_new() argument
196 if (!ossl_assert(encoder != NULL)) { in ossl_encoder_instance_new()
204 if (!OSSL_ENCODER_up_ref(encoder)) { in ossl_encoder_instance_new()
209 prov = OSSL_ENCODER_get0_provider(encoder); in ossl_encoder_instance_new()
211 props = ossl_encoder_parsed_properties(encoder); in ossl_encoder_instance_new()
215 OSSL_ENCODER_get0_name(encoder)); in ossl_encoder_instance_new()
226 OSSL_ENCODER_get0_name(encoder), in ossl_encoder_instance_new()
227 OSSL_ENCODER_get0_properties(encoder)); in ossl_encoder_instance_new()
237 encoder_inst->encoder = encoder; in ossl_encoder_instance_new()
248 if (encoder_inst->encoder != NULL) in ossl_encoder_instance_free()
249 encoder_inst->encoder->freectx(encoder_inst->encoderctx); in ossl_encoder_instance_free()
251 OSSL_ENCODER_free(encoder_inst->encoder); in ossl_encoder_instance_free()
252 encoder_inst->encoder = NULL; in ossl_encoder_instance_free()
275 (void *)ctx, (void *)ei, (void *)ei->encoder, in ossl_encoder_ctx_add_encoder_inst()
276 OSSL_ENCODER_get0_name(ei->encoder), in ossl_encoder_ctx_add_encoder_inst()
277 OSSL_ENCODER_get0_properties(ei->encoder)); in ossl_encoder_ctx_add_encoder_inst()
283 int OSSL_ENCODER_CTX_add_encoder(OSSL_ENCODER_CTX *ctx, OSSL_ENCODER *encoder) in OSSL_ENCODER_CTX_add_encoder() argument
290 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder()
295 prov = OSSL_ENCODER_get0_provider(encoder); in OSSL_ENCODER_CTX_add_encoder()
298 if ((encoderctx = encoder->newctx(provctx)) == NULL in OSSL_ENCODER_CTX_add_encoder()
300 ossl_encoder_instance_new(encoder, encoderctx)) == NULL) in OSSL_ENCODER_CTX_add_encoder()
312 encoder->freectx(encoderctx); in OSSL_ENCODER_CTX_add_encoder()
367 return encoder_inst->encoder; in OSSL_ENCODER_INSTANCE_get_encoder()