Lines Matching full:decoder

15 #include <openssl/decoder.h>
19 #include "crypto/decoder.h"
71 OSSL_DECODER *decoder = OSSL_DECODER_INSTANCE_get_decoder(decoder_inst); in decoder_construct_pkey() local
73 const OSSL_PROVIDER *decoder_prov = OSSL_DECODER_get0_provider(decoder); in decoder_construct_pkey()
112 * the decoder that passed the params. in decoder_construct_pkey()
143 * Otherwise, we export from the decoder and import the in decoder_construct_pkey()
163 (void)decoder->export_object(decoderctx, in decoder_construct_pkey()
229 static void collect_decoder(OSSL_DECODER *decoder, void *arg) in collect_decoder() argument
233 const OSSL_PROVIDER *prov = OSSL_DECODER_get0_provider(decoder); in collect_decoder()
246 * the decoder must tell us if it supports that selection to in collect_decoder()
247 * be accepted. If the decoder doesn't have |does_selection|, in collect_decoder()
250 if (decoder->does_selection != NULL in collect_decoder()
251 && !decoder->does_selection(provctx, data->ctx->selection)) in collect_decoder()
254 OSSL_TRACE_BEGIN(DECODER) { in collect_decoder()
256 "(ctx %p) Checking out decoder %p:\n" in collect_decoder()
258 (void *)data->ctx, (void *)decoder, in collect_decoder()
259 OSSL_DECODER_get0_name(decoder), in collect_decoder()
260 OSSL_DECODER_get0_properties(decoder)); in collect_decoder()
261 } OSSL_TRACE_END(DECODER); in collect_decoder()
267 if (OSSL_DECODER_is_a(decoder, name)) { in collect_decoder()
271 if ((decoderctx = decoder->newctx(provctx)) == NULL) { in collect_decoder()
275 if ((di = ossl_decoder_instance_new(decoder, decoderctx)) == NULL) { in collect_decoder()
276 decoder->freectx(decoderctx); in collect_decoder()
281 OSSL_TRACE_BEGIN(DECODER) { in collect_decoder()
283 "(ctx %p) Checking out decoder %p:\n" in collect_decoder()
285 (void *)data->ctx, (void *)decoder, in collect_decoder()
286 OSSL_DECODER_get0_name(decoder), in collect_decoder()
287 OSSL_DECODER_get0_properties(decoder)); in collect_decoder()
288 } OSSL_TRACE_END(DECODER); in collect_decoder()
302 /* Decoder not suitable - but not a fatal error */ in collect_decoder()
324 OSSL_TRACE_BEGIN(DECODER) { in ossl_decoder_ctx_setup_for_pkey()
334 } OSSL_TRACE_END(DECODER); in ossl_decoder_ctx_setup_for_pkey()
375 OSSL_TRACE_BEGIN(DECODER) { in ossl_decoder_ctx_setup_for_pkey()
385 } OSSL_TRACE_END(DECODER); in ossl_decoder_ctx_setup_for_pkey()
404 OSSL_TRACE_BEGIN(DECODER) { in ossl_decoder_ctx_setup_for_pkey()
408 } OSSL_TRACE_END(DECODER); in ossl_decoder_ctx_setup_for_pkey()
443 OSSL_TRACE_BEGIN(DECODER) { in OSSL_DECODER_CTX_new_for_pkey()
449 } OSSL_TRACE_END(DECODER); in OSSL_DECODER_CTX_new_for_pkey()
457 OSSL_TRACE_BEGIN(DECODER) { in OSSL_DECODER_CTX_new_for_pkey()
460 } OSSL_TRACE_END(DECODER); in OSSL_DECODER_CTX_new_for_pkey()