Home
last modified time | relevance | path

Searched refs:keydata (Results 1 – 25 of 32) sorted by relevance

12

/openssl/crypto/evp/
H A Dkeymgmt_lib.c55 data->keydata = NULL; in evp_keymgmt_util_try_import()
68 pkey->keydata = keydata; in evp_keymgmt_util_assign_pkey()
78 || keydata == NULL in evp_keymgmt_util_make_pkey()
120 return pk->keydata; in evp_keymgmt_util_export_to_provider()
261 if (keydata != NULL) { in evp_keymgmt_util_cache_keydata()
271 p->keydata = keydata; in evp_keymgmt_util_cache_keydata()
318 void *keydata = NULL; in evp_keymgmt_util_fromdata() local
324 keydata = NULL; in evp_keymgmt_util_fromdata()
326 return keydata; in evp_keymgmt_util_fromdata()
521 keydata = NULL; in evp_keymgmt_util_gen()
[all …]
H A Dkeymgmt_meth.c377 void evp_keymgmt_freedata(const EVP_KEYMGMT *keymgmt, void *keydata) in evp_keymgmt_freedata() argument
380 keymgmt->free(keydata); in evp_keymgmt_freedata()
473 return keymgmt->get_params(keydata, params); in evp_keymgmt_get_params()
490 return keymgmt->set_params(keydata, params); in evp_keymgmt_set_params()
505 return keymgmt->has(keydata, selection); in evp_keymgmt_has()
508 int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_validate() argument
514 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_validate()
527 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_import() argument
532 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import()
547 int evp_keymgmt_export(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_export() argument
[all …]
H A Dp_lib.c273 keydata1 = a->keydata; in evp_pkey_cmp_any()
275 keydata2 = b->keydata; in evp_pkey_cmp_any()
1782 x->keydata = NULL; in evp_pkey_free_it()
1850 void *keydata = NULL; in evp_pkey_export_to_provider() local
1929 keydata = op->keydata; in evp_pkey_export_to_provider()
1946 keydata = NULL; in evp_pkey_export_to_provider()
1958 keydata = NULL; in evp_pkey_export_to_provider()
1968 keydata = NULL; in evp_pkey_export_to_provider()
2010 if (keydata == NULL) in evp_pkey_export_to_provider()
2019 return keydata; in evp_pkey_export_to_provider()
[all …]
H A Dpmeth_check.c31 void *keydata; in try_provided_check() local
37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check()
39 if (keydata == NULL) { in try_provided_check()
44 return evp_keymgmt_validate(keymgmt, keydata, selection, checktype); in try_provided_check()
H A Dpmeth_gn.c170 void *keydata = in EVP_PKEY_generate() local
181 ctx->op.keymgmt.genctx, keydata); in EVP_PKEY_generate()
366 void *keydata = NULL; in EVP_PKEY_fromdata() local
385 keydata = evp_keymgmt_util_fromdata(*ppkey, ctx->keymgmt, selection, params); in EVP_PKEY_fromdata()
386 if (keydata == NULL) { in EVP_PKEY_fromdata()
/openssl/test/
H A Dkeymgmt_internal_test.c103 unsigned long *keydata = arg; in export_cb() local
106 if (keydata == NULL) in export_cb()
110 || !TEST_true(get_ulong_via_BN(p, &keydata[N])) in export_cb()
112 || !TEST_true(get_ulong_via_BN(p, &keydata[E])) in export_cb()
114 || !TEST_true(get_ulong_via_BN(p, &keydata[D]))) in export_cb()
118 || !TEST_true(get_ulong_via_BN(p, &keydata[P])) in export_cb()
120 || !TEST_true(get_ulong_via_BN(p, &keydata[Q])) in export_cb()
122 || !TEST_true(get_ulong_via_BN(p, &keydata[F3]))) in export_cb()
126 || !TEST_true(get_ulong_via_BN(p, &keydata[DP])) in export_cb()
128 || !TEST_true(get_ulong_via_BN(p, &keydata[DQ])) in export_cb()
[all …]
H A Dfake_rsaprov.c61 static void fake_rsa_keymgmt_free(void *keydata) in fake_rsa_keymgmt_free() argument
63 OPENSSL_free(keydata); in fake_rsa_keymgmt_free()
86 struct fake_rsa_keydata *fake_rsa_key = keydata; in fake_rsa_keymgmt_import()
252 struct fake_rsa_keydata *keydata; in fake_rsa_gen() local
258 if (!TEST_ptr(keydata = fake_rsa_keymgmt_new(NULL))) in fake_rsa_gen()
261 keydata->status = 2; in fake_rsa_gen()
262 return keydata; in fake_rsa_gen()
317 struct fake_rsa_keydata *keydata = provkey; in fake_rsa_sig_sign_init() local
324 if (!TEST_ptr(keydata) || !TEST_int_gt(keydata->status, 0)) in fake_rsa_sig_sign_init()
380 struct fake_rsa_keydata *keydata = provkey; in fake_rsa_dgstsgnvfy_init() local
[all …]
H A Devp_extra_test2.c258 static APK_DATA keydata[] = { variable
595 const APK_DATA *ak = &keydata[i]; in test_d2i_AutoPrivateKey_ex()
762 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[id].kder, keydata[id].size))) in test_d2i_PrivateKey_ex()
789 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[testid].kder, keydata[testid].size))) in test_PEM_read_bio_negative()
1217 const unsigned char *pdata = keydata[0].kder; in test_pkey_todata_null()
1240 const unsigned char *pdata = keydata[0].kder; in test_pkey_export_null()
1258 const unsigned char *pdata = keydata[0].kder; in test_pkey_export()
1259 int pdata_len = keydata[0].size; in test_pkey_export()
1272 pdata = keydata[0].kder; in test_pkey_export()
1273 pdata_len = keydata[0].size; in test_pkey_export()
[all …]
H A Dalgorithmid_test.c29 void *keydata = NULL; in test_spki_aid() local
60 if ((keydata = evp_pkey_export_to_provider(pkey, NULL, in test_spki_aid()
88 if (!TEST_true(evp_keymgmt_get_params(keymgmt, keydata, params))) in test_spki_aid()
/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c136 static int mac_has(const void *keydata, int selection) in mac_has() argument
138 const MAC_KEY *key = keydata; in mac_has()
225 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() argument
227 MAC_KEY *key = keydata; in mac_import()
267 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in mac_export() argument
270 MAC_KEY *key = keydata; in mac_export()
351 static int mac_set_params(void *keydata, const OSSL_PARAM params[]) in mac_set_params() argument
353 MAC_KEY *key = keydata; in mac_set_params()
H A Drsa_kmgmt.c110 static void rsa_freedata(void *keydata) in rsa_freedata() argument
112 RSA_free(keydata); in rsa_freedata()
115 static int rsa_has(const void *keydata, int selection) in rsa_has() argument
117 const RSA *rsa = keydata; in rsa_has()
173 static int rsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in rsa_import() argument
175 RSA *rsa = keydata; in rsa_import()
203 static int rsa_export(void *keydata, int selection, in rsa_export() argument
206 RSA *rsa = keydata; in rsa_export()
392 static int rsa_validate(const void *keydata, int selection, int checktype) in rsa_validate() argument
394 const RSA *rsa = keydata; in rsa_validate()
H A Ddsa_kmgmt.c128 static void dsa_freedata(void *keydata) in dsa_freedata() argument
130 DSA_free(keydata); in dsa_freedata()
133 static int dsa_has(const void *keydata, int selection) in dsa_has() argument
135 const DSA *dsa = keydata; in dsa_has()
194 static int dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in dsa_import() argument
196 DSA *dsa = keydata; in dsa_import()
218 static int dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in dsa_export() argument
221 DSA *dsa = keydata; in dsa_export()
381 static int dsa_validate(const void *keydata, int selection, int checktype) in dsa_validate() argument
383 const DSA *dsa = keydata; in dsa_validate()
H A Decx_kmgmt.c127 static int ecx_has(const void *keydata, int selection) in ecx_has() argument
129 const ECX_KEY *key = keydata; in ecx_has()
196 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() argument
198 ECX_KEY *key = keydata; in ecx_import()
235 static int ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in ecx_export() argument
238 ECX_KEY *key = keydata; in ecx_export()
936 static int ecx_validate(const void *keydata, int selection, int type, in ecx_validate() argument
939 const ECX_KEY *ecx = keydata; in ecx_validate()
979 static int x448_validate(const void *keydata, int selection, int checktype) in x448_validate() argument
981 return ecx_validate(keydata, selection, ECX_KEY_TYPE_X448, X448_KEYLEN); in x448_validate()
[all …]
H A Dec_kmgmt.c301 void ec_freedata(void *keydata) in ec_freedata() argument
303 EC_KEY_free(keydata); in ec_freedata()
307 int ec_has(const void *keydata, int selection) in ec_has() argument
309 const EC_KEY *ec = keydata; in ec_has()
396 EC_KEY *ec = keydata; in common_import()
438 return common_import(keydata, selection, params, 0); in ec_import()
446 return common_import(keydata, selection, params, 1); in sm2_import()
455 EC_KEY *ec = keydata; in ec_export()
901 const EC_KEY *eck = keydata; in sm2_validate()
938 int ec_validate(const void *keydata, int selection, int checktype) in ec_validate() argument
[all …]
H A Ddh_kmgmt.c125 static void dh_freedata(void *keydata) in dh_freedata() argument
127 DH_free(keydata); in dh_freedata()
130 static int dh_has(const void *keydata, int selection) in dh_has() argument
132 const DH *dh = keydata; in dh_has()
191 static int dh_import(void *keydata, int selection, const OSSL_PARAM params[]) in dh_import() argument
193 DH *dh = keydata; in dh_import()
215 static int dh_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in dh_export() argument
218 DH *dh = keydata; in dh_export()
412 static int dh_validate(const void *keydata, int selection, int checktype) in dh_validate() argument
414 const DH *dh = keydata; in dh_validate()
H A Dtemplate_kmgmt.c96 static int template_has(const void *keydata, int selection) in template_has() argument
100 debug_print("has %p\n", keydata); in template_has()
101 if (ossl_prov_is_running() && keydata != NULL) { in template_has()
H A Dkdf_legacy_kmgmt.c92 static int kdf_has(const void *keydata, int selection) in kdf_has() argument
/openssl/crypto/store/
H A Dstore_result.c193 void *keydata = NULL; in try_key_ref() local
202 while (keymgmt != NULL && keydata == NULL && try_fallback-- > 0) { in try_key_ref()
214 keydata = evp_keymgmt_load(keymgmt, data->ref, data->ref_size); in try_key_ref()
221 import_data.keydata = NULL; in try_key_ref()
235 keydata = import_data.keydata; in try_key_ref()
238 if (keydata == NULL && try_fallback > 0) { in try_key_ref()
248 if (keydata != NULL) { in try_key_ref()
250 pk = evp_keymgmt_util_make_pkey(keymgmt, keydata); in try_key_ref()
/openssl/include/crypto/
H A Devp.h597 void *keydata; member
634 ((pk)->pkey.ptr != NULL || (pk)->keydata != NULL)
637 ((pk)->keydata != NULL)
700 void *keydata; member
774 void *keydata; member
780 void *keydata);
792 void *keydata, int selection);
802 void *keydata,
813 void *keydata, OSSL_PARAM params[]);
839 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata,
[all …]
/openssl/doc/internal/man3/
H A Devp_keymgmt_newdata.pod19 void *keydata, OSSL_PARAM params[]);
22 int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keydata,
25 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata,
29 int evp_keymgmt_export(const EVP_KEYMGMT *keymgmt, void *keydata,
/openssl/providers/implementations/encode_decode/
H A Ddecode_pvk2key.c217 void *keydata; in pvk2key_export_object() local
219 if (reference_sz == sizeof(keydata) && export != NULL) { in pvk2key_export_object()
225 keydata = *(void **)reference; in pvk2key_export_object()
227 return export(keydata, selection, export_cb, export_cbarg); in pvk2key_export_object()
H A Ddecode_msblob2key.c221 void *keydata; in msblob2key_export_object() local
223 if (reference_sz == sizeof(keydata) && export != NULL) { in msblob2key_export_object()
229 keydata = *(void **)reference; in msblob2key_export_object()
231 return export(keydata, selection, export_cb, export_cbarg); in msblob2key_export_object()
/openssl/crypto/encode_decode/
H A Ddecoder_pkey.c140 void *keydata = NULL; in decoder_construct_pkey() local
151 keydata = evp_keymgmt_load(keymgmt, object_ref, object_ref_sz); in decoder_construct_pkey()
156 import_data.keydata = NULL; in decoder_construct_pkey()
171 keydata = import_data.keydata; in decoder_construct_pkey()
172 import_data.keydata = NULL; in decoder_construct_pkey()
175 if (keydata != NULL in decoder_construct_pkey()
176 && (pkey = evp_keymgmt_util_make_pkey(keymgmt, keydata)) == NULL) in decoder_construct_pkey()
177 evp_keymgmt_freedata(keymgmt, keydata); in decoder_construct_pkey()
/openssl/doc/man7/
H A Dprovider-keymgmt.pod17 /* Key object (keydata) creation and destruction */
19 void OSSL_FUNC_keymgmt_free(void *keydata);
38 int OSSL_FUNC_keymgmt_get_params(void *keydata, OSSL_PARAM params[]);
44 int OSSL_FUNC_keymgmt_has(const void *keydata, int selection);
55 int OSSL_FUNC_keymgmt_export(void *keydata, int selection,
135 represented as I<keydata> in this manual.
224 OSSL_FUNC_keymgmt_free() should free the passed I<keydata>.
281 with the given I<keydata>, see L</Common Information Parameters>.
291 with the given I<keydata>, see L</Common Information Parameters>.
346 from I<keydata>, create an L<OSSL_PARAM(3)> array with them and call
[all …]
/openssl/include/openssl/
H A Dcore_dispatch.h624 OSSL_CORE_MAKE_FUNC(void, keymgmt_free, (void *keydata))
630 (void *keydata, OSSL_PARAM params[]))
637 (void *keydata, const OSSL_PARAM params[]))
648 OSSL_CORE_MAKE_FUNC(int, keymgmt_has, (const void *keydata, int selection))
652 OSSL_CORE_MAKE_FUNC(int, keymgmt_validate, (const void *keydata, int selection,
667 (void *keydata, int selection, const OSSL_PARAM params[]))
671 (void *keydata, int selection,

Completed in 77 milliseconds

12