Home
last modified time | relevance | path

Searched refs:encoder (Results 1 – 25 of 34) sorted by relevance

12

/openssl/crypto/encode_decode/
H A Dencoder_meth.c32 if ((encoder = OPENSSL_zalloc(sizeof(*encoder))) == NULL) in ossl_encoder_new()
39 return encoder; in ossl_encoder_new()
54 if (encoder == NULL) in OSSL_ENCODER_free()
64 OPENSSL_free(encoder); in OSSL_ENCODER_free()
278 if (!((encoder->newctx == NULL && encoder->freectx == NULL) in encoder_from_algorithm()
279 || (encoder->newctx != NULL && encoder->freectx != NULL) in encoder_from_algorithm()
280 || (encoder->import_object != NULL && encoder->free_object != NULL) in encoder_from_algorithm()
294 return encoder; in encoder_from_algorithm()
577 if (encoder != NULL && encoder->gettable_params != NULL) { in OSSL_ENCODER_gettable_params()
587 if (encoder != NULL && encoder->get_params != NULL) in OSSL_ENCODER_get_params()
[all …]
H A Dencoder_lib.c196 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()
237 encoder_inst->encoder = encoder; in ossl_encoder_instance_new()
248 if (encoder_inst->encoder != NULL) 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()
295 prov = OSSL_ENCODER_get0_provider(encoder); in OSSL_ENCODER_CTX_add_encoder()
312 encoder->freectx(encoderctx); in OSSL_ENCODER_CTX_add_encoder()
[all …]
H A Dencoder_pkey.c87 static void collect_encoder(OSSL_ENCODER *encoder, void *arg) in collect_encoder() argument
97 prov = OSSL_ENCODER_get0_provider(encoder); in collect_encoder()
111 match = (data->id_names[i] == encoder->base.id); in collect_encoder()
113 match = OSSL_ENCODER_is_a(encoder, in collect_encoder()
116 || (encoder->does_selection != NULL in collect_encoder()
119 && encoder->import_object == NULL)) in collect_encoder()
123 if (OSSL_ENCODER_CTX_add_encoder(data->ctx, encoder)) in collect_encoder()
185 OSSL_ENCODER *encoder = in encoder_construct_pkey() local
189 const OSSL_PROVIDER *e_prov = OSSL_ENCODER_get0_provider(encoder); in encoder_construct_pkey()
215 OSSL_ENCODER *encoder = in encoder_destruct_pkey() local
[all …]
H A Dencoder_local.h58 OSSL_ENCODER *encoder; /* Never NULL */ member
164 ossl_encoder_parsed_properties(const OSSL_ENCODER *encoder);
/openssl/doc/man3/
H A DOSSL_ENCODER.pod22 #include <openssl/encoder.h>
28 int OSSL_ENCODER_up_ref(OSSL_ENCODER *encoder);
29 void OSSL_ENCODER_free(OSSL_ENCODER *encoder);
38 int OSSL_ENCODER_names_do_all(const OSSL_ENCODER *encoder,
57 in L<provider-encoder(7)/Names and properties>.
60 I<encoder>.
63 I<encoder>, and when the count reaches zero, frees it.
67 I<encoder>.
70 with the given I<encoder>.
84 OSSL_ENCODER_do_all_provided() traverses all encoder
[all …]
H A DOSSL_ENCODER_CTX.pod30 #include <openssl/encoder.h>
35 const OSSL_PARAM *OSSL_ENCODER_settable_ctx_params(OSSL_ENCODER *encoder);
75 encoder implementations, which means that the output from one encoder may be
89 encoder that is going to be used, and that may be useful for the
108 I<ctx> with a encoder, to be used to encode an input object.
112 encoder chains.
115 be specified, and determines if a complete encoder chain is available.
156 OSSL_ENCODER_INSTANCE_get_encoder() can be used to get the encoder
157 implementation of the encoder instance I<encoder_inst>.
163 for the encoder implementation of the encoder instance I<encoder_inst>.
[all …]
H A DOSSL_ENCODER_CTX_new_for_pkey.pod15 #include <openssl/encoder.h>
41 B<OSSL_ENCODER_CTX>, finds all applicable encoder implementations and sets
51 applicable encoder implementations that are used to process the I<pkey> into
56 If no suitable encoder implementation is found,
58 with no associated encoder (L<OSSL_ENCODER_CTX_get_num_encoders(3)> returns
60 the B<OSSL_ENCODER_CTX> and missing encoder implementation, and allows it to
114 These are only 'hints' since the encoder implementations are free to
H A DOSSL_ENCODER_to_bio.pod12 #include <openssl/encoder.h>
47 =for comment Know your encoder!
51 it in text or binary mode as is appropriate for the encoder output type.
H A DOSSL_DECODER.pod57 in L<provider-encoder(7)/Names and properties>.
H A DOSSL_DECODER_CTX_new_for_pkey.pod71 the B<OSSL_ENCODER_CTX> and missing encoder implementation, and allows it to
/openssl/include/openssl/
H A Dencoder.h31 int OSSL_ENCODER_up_ref(OSSL_ENCODER *encoder);
32 void OSSL_ENCODER_free(OSSL_ENCODER *encoder);
34 const OSSL_PROVIDER *OSSL_ENCODER_get0_provider(const OSSL_ENCODER *encoder);
35 const char *OSSL_ENCODER_get0_properties(const OSSL_ENCODER *encoder);
38 int OSSL_ENCODER_is_a(const OSSL_ENCODER *encoder, const char *name);
41 void (*fn)(OSSL_ENCODER *encoder, void *arg),
43 int OSSL_ENCODER_names_do_all(const OSSL_ENCODER *encoder,
46 const OSSL_PARAM *OSSL_ENCODER_gettable_params(OSSL_ENCODER *encoder);
47 int OSSL_ENCODER_get_params(OSSL_ENCODER *encoder, OSSL_PARAM params[]);
49 const OSSL_PARAM *OSSL_ENCODER_settable_ctx_params(OSSL_ENCODER *encoder);
[all …]
H A Ddecoder.h31 int OSSL_DECODER_up_ref(OSSL_DECODER *encoder);
32 void OSSL_DECODER_free(OSSL_DECODER *encoder);
34 const OSSL_PROVIDER *OSSL_DECODER_get0_provider(const OSSL_DECODER *encoder);
35 const char *OSSL_DECODER_get0_properties(const OSSL_DECODER *encoder);
38 int OSSL_DECODER_is_a(const OSSL_DECODER *encoder, const char *name);
41 void (*fn)(OSSL_DECODER *encoder, void *arg),
43 int OSSL_DECODER_names_do_all(const OSSL_DECODER *encoder,
49 const OSSL_PARAM *OSSL_DECODER_settable_ctx_params(OSSL_DECODER *encoder);
/openssl/doc/designs/quic-design/
H A Djson-encoder.md7 The JSON encoder exists to support qlog implementation. There is no intention to
8 implement a decoder at this time. The encoder is intended to support automation
60 Since the JSON encoder is for internal use only, its structure is defined in
62 The JSON encoder maintains an internal write buffer and a small state tracking
68 The encoder supports JSON-SEQ (RFC 7464), as this is an optimal format for
85 Error handling is deferred to improve ergonomics. If any call to a JSON encoder
H A Dqlog.md7 - A JSON encoder API and implementation, which is used by the qlog
10 The API for the JSON encoder is detailed in [a separate document](json-encoder.md).
/openssl/test/
H A Dprovfetchtest.c236 OSSL_ENCODER *encoder = NULL; in fetch_test() local
259 encoder = OSSL_ENCODER_fetch(libctx, "DUMMY", in fetch_test()
261 if (!TEST_ptr(encoder)) in fetch_test()
284 OSSL_ENCODER_free(encoder); in fetch_test()
H A Dendecode_test.c134 typedef int (encoder)(const char *file, const int line, typedef
158 encoder *encode_cb, decoder *decode_cb, in test_encode_decode()
/openssl/crypto/comp/
H A Dc_brotli.c109 BrotliEncoderState *encoder; member
120 state->encoder = BrotliEncoderCreateInstance(brotli_alloc, brotli_free, NULL); in brotli_stateful_init()
121 if (state->encoder == NULL) in brotli_stateful_init()
132 BrotliEncoderDestroyInstance(state->encoder); in brotli_stateful_init()
143 BrotliEncoderDestroyInstance(state->encoder); in brotli_stateful_finish()
171 done = BrotliEncoderCompressStream(state->encoder, BROTLI_OPERATION_FLUSH, in brotli_stateful_compress_block()
176 || BrotliEncoderHasMoreOutput(state->encoder)) in brotli_stateful_compress_block()
/openssl/include/crypto/
H A Dencoder.h16 int ossl_encoder_get_number(const OSSL_ENCODER *encoder);
H A Ddecoder.h32 int ossl_decoder_get_number(const OSSL_DECODER *encoder);
/openssl/doc/internal/man3/
H A Devp_md_get_number.pod26 int ossl_encoder_get_number(const OSSL_ENCODER *encoder);
86 Returns the internal dynamic number assigned to the given I<encoder>.
/openssl/doc/man7/
H A Dprovider-encoder.pod5 provider-encoder - The OSSL_ENCODER library E<lt>-E<gt> provider functions
21 /* Functions to construct / destruct / manipulate the encoder context */
55 The encoder doesn't need to know more about the B<OSSL_CORE_BIO>
77 encoder to be used for data that's been exported from another
309 OSSL_FUNC_encoder_does_selection() returns 1 if the encoder implementation
H A Dfips_module.pod277 property defined for them. These are the encoder and decoder algorithms that
279 file. The encoder and decoder algorithms are not in the FIPS module itself but
404 then it is likely that you will need to use an encoder to do this. Similarly
408 encoder/decoder will need to be available in the library context associated with
H A Dopenssl-env.pod135 Traces encoder operations.
H A Dopenssl-glossary.pod67 An encoder is a type of algorithm used for encoding keys and parameters to some
/openssl/apps/
H A Dlist.c64 IS_FETCHABLE(encoder, OSSL_ENCODER) in IS_FETCHABLE()
511 static void collect_encoders(OSSL_ENCODER *encoder, void *stack) in collect_encoders() argument
515 if (is_encoder_fetchable(encoder) in collect_encoders()
516 && sk_OSSL_ENCODER_push(encoder_stack, encoder) > 0) in collect_encoders()
517 OSSL_ENCODER_up_ref(encoder); in collect_encoders()

Completed in 60 milliseconds

12