Home
last modified time | relevance | path

Searched refs:namemap (Results 1 – 14 of 14) sorted by relevance

/openssl/crypto/
H A Dcore_namemap.c61 if (namemap != NULL) in ossl_stored_namemap_new()
64 return namemap; in ossl_stored_namemap_new()
71 if (namemap != NULL) { in ossl_stored_namemap_free()
89 if (namemap == NULL) in ossl_namemap_empty()
99 return namemap == NULL || tsan_load(&namemap->max_number) == 0; in ossl_namemap_empty()
149 if (namemap == NULL) in ossl_namemap_name2num()
153 if (namemap == NULL) in ossl_namemap_name2num()
507 return namemap; in ossl_namemap_stored()
517 if ((namemap = OPENSSL_zalloc(sizeof(*namemap))) == NULL) in ossl_namemap_new()
529 return namemap; in ossl_namemap_new()
[all …]
H A Dcontext.c28 void *namemap; member
150 ctx->namemap = ossl_stored_namemap_new(ctx); in context_init()
151 if (ctx->namemap == NULL) in context_init()
286 if (ctx->namemap != NULL) { in context_deinit_objs()
287 ossl_stored_namemap_free(ctx->namemap); in context_deinit_objs()
288 ctx->namemap = NULL; in context_deinit_objs()
575 return ctx->namemap; in ossl_lib_ctx_get_data()
/openssl/include/internal/
H A Dnamemap.h17 void ossl_namemap_free(OSSL_NAMEMAP *namemap);
18 int ossl_namemap_empty(OSSL_NAMEMAP *namemap);
20 int ossl_namemap_add_name(OSSL_NAMEMAP *namemap, int number, const char *name);
27 int ossl_namemap_name2num(const OSSL_NAMEMAP *namemap, const char *name);
28 int ossl_namemap_name2num_n(const OSSL_NAMEMAP *namemap,
30 const char *ossl_namemap_num2name(const OSSL_NAMEMAP *namemap, int number,
32 int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number,
40 int ossl_namemap_add_names(OSSL_NAMEMAP *namemap, int number,
/openssl/crypto/store/
H A Dstore_meth.c143 id = ossl_namemap_name2num(namemap, methdata->scheme); in get_loader_from_store()
161 OSSL_NAMEMAP *namemap; in put_loader_in_store() local
164 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_loader_in_store()
165 || (id = ossl_namemap_name2num(namemap, scheme)) == 0) in put_loader_in_store()
261 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_loader() local
263 int id = ossl_namemap_add_name(namemap, 0, scheme); in construct_loader()
297 if (store == NULL || namemap == NULL) { in inner_loader_fetch()
337 id = ossl_namemap_name2num(namemap, scheme); in inner_loader_fetch()
359 scheme = ossl_namemap_num2name(namemap, id, 0); in inner_loader_fetch()
447 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_STORE_LOADER_is_a() local
[all …]
/openssl/crypto/encode_decode/
H A Ddecoder_meth.c147 if (namemap == 0) in get_decoder_from_store()
149 id = ossl_namemap_name2num_n(namemap, names, l); in get_decoder_from_store()
170 OSSL_NAMEMAP *namemap; in put_decoder_in_store() local
304 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_decoder() local
350 if (store == NULL || namemap == NULL) { in inner_ossl_decoder_fetch()
390 id = ossl_namemap_name2num(namemap, name); in inner_ossl_decoder_fetch()
407 name = ossl_namemap_num2name(namemap, id, 0); in inner_ossl_decoder_fetch()
509 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_DECODER_is_a() local
519 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in resolve_name() local
521 return ossl_namemap_name2num(namemap, name); in resolve_name()
[all …]
H A Dencoder_meth.c147 if (namemap == 0) in get_encoder_from_store()
149 id = ossl_namemap_name2num_n(namemap, methdata->names, l); in get_encoder_from_store()
170 OSSL_NAMEMAP *namemap; in put_encoder_in_store() local
186 if ((namemap = ossl_namemap_stored(methdata->libctx)) == NULL in put_encoder_in_store()
187 || (id = ossl_namemap_name2num_n(namemap, names, l)) == 0) in put_encoder_in_store()
314 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_encoder() local
360 if (store == NULL || namemap == NULL) { in inner_ossl_encoder_fetch()
400 id = ossl_namemap_name2num(namemap, name); in inner_ossl_encoder_fetch()
416 name = ossl_namemap_num2name(namemap, id, 0); in inner_ossl_encoder_fetch()
518 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in OSSL_ENCODER_is_a() local
[all …]
H A Dencoder_pkey.c238 OSSL_NAMEMAP *namemap; in ossl_encoder_ctx_setup_for_pkey() local
287 namemap = ossl_namemap_stored(libctx); in ossl_encoder_ctx_setup_for_pkey()
298 encoder_data.id_names[i] = ossl_namemap_name2num(namemap, name); in ossl_encoder_ctx_setup_for_pkey()
H A Ddecoder_pkey.c319 OSSL_NAMEMAP *namemap = ossl_namemap_stored(data->libctx); in check_keymgmt() local
320 data->keytype_id = ossl_namemap_name2num(namemap, data->keytype); in check_keymgmt()
329 data->sm2_id = ossl_namemap_name2num(namemap, "SM2"); in check_keymgmt()
/openssl/doc/internal/man3/
H A Dossl_namemap_new.pod18 void ossl_namemap_free(OSSL_NAMEMAP *namemap);
19 int ossl_namemap_empty(OSSL_NAMEMAP *namemap);
23 int ossl_namemap_name2num(const OSSL_NAMEMAP *namemap, const char *name);
24 int ossl_namemap_name2num_n(const OSSL_NAMEMAP *namemap,
26 int ossl_namemap_doall_names(const OSSL_NAMEMAP *namemap, int number,
30 int ossl_namemap_add_names(OSSL_NAMEMAP *namemap, int number,
48 ossl_namemap_stored() finds or auto-creates the default namemap in the
68 I<number> in the given I<namemap> and calls the function I<fn> for
74 separated by I<separator>, and adds each to the I<namemap>, all with
75 the same number. If some of them already exist in the I<namemap>,
[all …]
/openssl/crypto/evp/
H A Devp_fetch.c140 if (namemap == 0) in get_evp_method_from_store()
142 name_id = ossl_namemap_name2num_n(namemap, names, l); in get_evp_method_from_store()
165 OSSL_NAMEMAP *namemap; in put_evp_method_in_store() local
212 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in construct_evp_method() local
257 if (store == NULL || namemap == NULL) { in inner_evp_generic_fetch()
329 name_id = ossl_namemap_name2num(namemap, name); in inner_evp_generic_fetch()
354 name = ossl_namemap_num2name(namemap, name_id, 0); in inner_evp_generic_fetch()
638 OSSL_NAMEMAP *namemap = ossl_namemap_stored(libctx); in evp_is_a() local
641 number = ossl_namemap_name2num(namemap, legacy_name); in evp_is_a()
642 return ossl_namemap_name2num(namemap, name) == number; in evp_is_a()
[all …]
H A Dnames.c79 OSSL_NAMEMAP *namemap; in evp_get_cipherbyname_ex() local
97 namemap = ossl_namemap_stored(libctx); in evp_get_cipherbyname_ex()
99 id = ossl_namemap_name2num(namemap, name); in evp_get_cipherbyname_ex()
114 if (!ossl_namemap_doall_names(namemap, id, cipher_from_name, &cp)) in evp_get_cipherbyname_ex()
138 OSSL_NAMEMAP *namemap; in evp_get_digestbyname_ex() local
156 namemap = ossl_namemap_stored(libctx); in evp_get_digestbyname_ex()
158 id = ossl_namemap_name2num(namemap, name); in evp_get_digestbyname_ex()
173 if (!ossl_namemap_doall_names(namemap, id, digest_from_name, &dp)) in evp_get_digestbyname_ex()
H A Dp_lib.c1294 OSSL_NAMEMAP *namemap; in legacy_asn1_ctrl_to_param() local
1300 namemap = ossl_namemap_stored(libctx); in legacy_asn1_ctrl_to_param()
1307 mdnum = ossl_namemap_name2num(namemap, mdname); in legacy_asn1_ctrl_to_param()
1315 if (!ossl_namemap_doall_names(namemap, mdnum, mdname2nid, &nid)) in legacy_asn1_ctrl_to_param()
/openssl/providers/
H A Dfips.module.sources428 include/internal/namemap.h
H A Dfips-sources.checksums428 f6f30785e3eced1ccdd4b149286ff2b8bbb860eb7e070cbe54c997aa022854da include/internal/namemap.h

Completed in 33 milliseconds