/openssl/crypto/evp/ |
H A D | keymgmt_lib.c | 55 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() 119 return pk->keydata; in evp_keymgmt_util_export_to_provider() 257 if (keydata != NULL) { in evp_keymgmt_util_cache_keydata() 267 p->keydata = keydata; in evp_keymgmt_util_cache_keydata() 313 void *keydata = NULL; in evp_keymgmt_util_fromdata() local 319 keydata = NULL; in evp_keymgmt_util_fromdata() 321 return keydata; in evp_keymgmt_util_fromdata() 514 keydata = NULL; in evp_keymgmt_util_gen() [all …]
|
H A D | keymgmt_meth.c | 314 void evp_keymgmt_freedata(const EVP_KEYMGMT *keymgmt, void *keydata) in evp_keymgmt_freedata() argument 317 keymgmt->free(keydata); in evp_keymgmt_freedata() 393 return keymgmt->get_params(keydata, params); in evp_keymgmt_get_params() 410 return keymgmt->set_params(keydata, params); in evp_keymgmt_set_params() 425 return keymgmt->has(keydata, selection); in evp_keymgmt_has() 428 int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_validate() argument 434 return keymgmt->validate(keydata, selection, checktype); in evp_keymgmt_validate() 447 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_import() argument 452 return keymgmt->import(keydata, selection, params); in evp_keymgmt_import() 463 int evp_keymgmt_export(const EVP_KEYMGMT *keymgmt, void *keydata, in evp_keymgmt_export() argument [all …]
|
H A D | p_lib.c | 265 keydata1 = a->keydata; in evp_pkey_cmp_any() 267 keydata2 = b->keydata; in evp_pkey_cmp_any() 1758 x->keydata = NULL; in evp_pkey_free_it() 1820 void *keydata = NULL; in evp_pkey_export_to_provider() local 1890 keydata = op->keydata; in evp_pkey_export_to_provider() 1907 keydata = NULL; in evp_pkey_export_to_provider() 1919 keydata = NULL; in evp_pkey_export_to_provider() 1929 keydata = NULL; in evp_pkey_export_to_provider() 1970 if (keydata == NULL) in evp_pkey_export_to_provider() 1979 return keydata; in evp_pkey_export_to_provider() [all …]
|
H A D | pmeth_check.c | 31 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 D | pmeth_gn.c | 170 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 D | keymgmt_internal_test.c | 103 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 D | fake_rsaprov.c | 33 unsigned char *keydata = OPENSSL_zalloc(1); in fake_rsa_keymgmt_new() local 35 TEST_ptr(keydata); in fake_rsa_keymgmt_new() 42 return keydata; in fake_rsa_keymgmt_new() 45 static void fake_rsa_keymgmt_free(void *keydata) in fake_rsa_keymgmt_free() argument 47 OPENSSL_free(keydata); in fake_rsa_keymgmt_free() 70 unsigned char *fake_rsa_key = keydata; in fake_rsa_keymgmt_import() 132 unsigned char *keydata; in fake_rsa_gen() local 141 *keydata = 2; in fake_rsa_gen() 142 return keydata; in fake_rsa_gen() 194 unsigned char *keydata = provkey; in fake_rsa_sig_sign_init() local [all …]
|
H A D | evp_extra_test2.c | 245 static APK_DATA keydata[] = { variable 403 const APK_DATA *ak = &keydata[i]; in test_d2i_AutoPrivateKey_ex() 570 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[id].kder, keydata[id].size))) in test_d2i_PrivateKey_ex() 597 if (!TEST_ptr(key_bio = BIO_new_mem_buf(keydata[testid].kder, keydata[testid].size))) in test_PEM_read_bio_negative() 938 const unsigned char *pdata = keydata[0].kder; in test_pkey_todata_null() 961 const unsigned char *pdata = keydata[0].kder; in test_pkey_export_null() 979 const unsigned char *pdata = keydata[0].kder; in test_pkey_export() 980 int pdata_len = keydata[0].size; in test_pkey_export() 993 pdata = keydata[0].kder; in test_pkey_export() 994 pdata_len = keydata[0].size; in test_pkey_export() [all …]
|
H A D | algorithmid_test.c | 29 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/crypto/encode_decode/ |
H A D | decoder_pkey.c | 138 void *keydata = NULL; in decoder_construct_pkey() local 149 keydata = evp_keymgmt_load(keymgmt, object_ref, object_ref_sz); in decoder_construct_pkey() 154 import_data.keydata = NULL; in decoder_construct_pkey() 165 keydata = import_data.keydata; in decoder_construct_pkey() 166 import_data.keydata = NULL; in decoder_construct_pkey() 169 if (keydata != NULL in decoder_construct_pkey() 170 && (pkey = evp_keymgmt_util_make_pkey(keymgmt, keydata)) == NULL) in decoder_construct_pkey() 171 evp_keymgmt_freedata(keymgmt, keydata); in decoder_construct_pkey()
|
/openssl/providers/implementations/keymgmt/ |
H A D | ecx_kmgmt.c | 122 static int ecx_has(const void *keydata, int selection) in ecx_has() argument 124 const ECX_KEY *key = keydata; in ecx_has() 191 static int ecx_import(void *keydata, int selection, const OSSL_PARAM params[]) in ecx_import() argument 193 ECX_KEY *key = keydata; in ecx_import() 230 static int ecx_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in ecx_export() argument 233 ECX_KEY *key = keydata; in ecx_export() 748 const ECX_KEY *ecx = keydata; in ecx_validate() 774 static int x25519_validate(const void *keydata, int selection, int checktype) in x25519_validate() argument 779 static int x448_validate(const void *keydata, int selection, int checktype) in x448_validate() argument 781 return ecx_validate(keydata, selection, ECX_KEY_TYPE_X448, X448_KEYLEN); in x448_validate() [all …]
|
H A D | mac_legacy_kmgmt.c | 138 static int mac_has(const void *keydata, int selection) in mac_has() argument 140 const MAC_KEY *key = keydata; in mac_has() 231 static int mac_import(void *keydata, int selection, const OSSL_PARAM params[]) in mac_import() argument 233 MAC_KEY *key = keydata; in mac_import() 273 static int mac_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in mac_export() argument 276 MAC_KEY *key = keydata; in mac_export() 354 static int mac_set_params(void *keydata, const OSSL_PARAM params[]) in mac_set_params() argument 356 MAC_KEY *key = keydata; in mac_set_params()
|
H A D | rsa_kmgmt.c | 110 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 D | dsa_kmgmt.c | 125 static void dsa_freedata(void *keydata) in dsa_freedata() argument 127 DSA_free(keydata); in dsa_freedata() 130 static int dsa_has(const void *keydata, int selection) in dsa_has() argument 132 const DSA *dsa = keydata; in dsa_has() 191 static int dsa_import(void *keydata, int selection, const OSSL_PARAM params[]) in dsa_import() argument 193 DSA *dsa = keydata; in dsa_import() 214 static int dsa_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in dsa_export() argument 217 DSA *dsa = keydata; in dsa_export() 374 static int dsa_validate(const void *keydata, int selection, int checktype) in dsa_validate() argument 376 const DSA *dsa = keydata; in dsa_validate()
|
H A D | ec_kmgmt.c | 290 void ec_freedata(void *keydata) in ec_freedata() argument 292 EC_KEY_free(keydata); in ec_freedata() 296 int ec_has(const void *keydata, int selection) in ec_has() argument 298 const EC_KEY *ec = keydata; in ec_has() 385 EC_KEY *ec = keydata; in common_import() 427 return common_import(keydata, selection, params, 0); in ec_import() 435 return common_import(keydata, selection, params, 1); in sm2_import() 444 EC_KEY *ec = keydata; in ec_export() 891 const EC_KEY *eck = keydata; in sm2_validate() 928 int ec_validate(const void *keydata, int selection, int checktype) in ec_validate() argument [all …]
|
H A D | dh_kmgmt.c | 124 static void dh_freedata(void *keydata) in dh_freedata() argument 126 DH_free(keydata); in dh_freedata() 129 static int dh_has(const void *keydata, int selection) in dh_has() argument 131 const DH *dh = keydata; in dh_has() 190 static int dh_import(void *keydata, int selection, const OSSL_PARAM params[]) in dh_import() argument 192 DH *dh = keydata; in dh_import() 214 static int dh_export(void *keydata, int selection, OSSL_CALLBACK *param_cb, in dh_export() argument 217 DH *dh = keydata; in dh_export() 406 static int dh_validate(const void *keydata, int selection, int checktype) in dh_validate() argument 408 const DH *dh = keydata; in dh_validate()
|
H A D | kdf_legacy_kmgmt.c | 94 static int kdf_has(const void *keydata, int selection) in kdf_has() argument
|
/openssl/providers/implementations/encode_decode/ |
H A D | decode_pvk2key.c | 179 void *keydata; in pvk2key_export_object() local 181 if (reference_sz == sizeof(keydata) && export != NULL) { in pvk2key_export_object() 183 keydata = *(void **)reference; in pvk2key_export_object() 185 return export(keydata, ctx->selection, export_cb, export_cbarg); in pvk2key_export_object()
|
H A D | decode_msblob2key.c | 211 void *keydata; in msblob2key_export_object() local 213 if (reference_sz == sizeof(keydata) && export != NULL) { in msblob2key_export_object() 215 keydata = *(void **)reference; in msblob2key_export_object() 217 return export(keydata, ctx->selection, export_cb, export_cbarg); in msblob2key_export_object()
|
/openssl/crypto/store/ |
H A D | store_result.c | 193 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 D | evp.h | 591 void *keydata; member 627 ((pk)->pkey.ptr != NULL || (pk)->keydata != NULL) 630 ((pk)->keydata != NULL) 691 void *keydata; member 770 void *keydata; member 776 void *keydata); 796 void *keydata, 807 void *keydata, OSSL_PARAM params[]); 825 int evp_keymgmt_validate(const EVP_KEYMGMT *keymgmt, void *keydata, 831 int evp_keymgmt_import(const EVP_KEYMGMT *keymgmt, void *keydata, [all …]
|
/openssl/doc/man7/ |
H A D | provider-keymgmt.pod | 17 /* Key object (keydata) creation and destruction */ 19 void OSSL_FUNC_keymgmt_free(void *keydata); 35 int OSSL_FUNC_keymgmt_get_params(void *keydata, OSSL_PARAM params[]); 41 int OSSL_FUNC_keymgmt_has(const void *keydata, int selection); 51 int OSSL_FUNC_keymgmt_export(void *keydata, int selection, 126 represented as I<keydata> in this manual. 215 OSSL_FUNC_keymgmt_free() should free the passed I<keydata>. 264 with the given I<keydata>, see L</Common Information Parameters>. 274 with the given I<keydata>, see L</Common Information Parameters>. 329 from I<keydata>, create an B<OSSL_PARAM> array with them and call [all …]
|
/openssl/doc/internal/man3/ |
H A D | evp_keymgmt_newdata.pod | 19 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,
|
H A D | evp_keymgmt_util_export_to_provider.pod | 28 EVP_KEYMGMT *keymgmt, void *keydata); 36 I<keymgmt> and I<keydata> from I<pk>. This is used as a
|
/openssl/include/openssl/ |
H A D | core_dispatch.h | 590 OSSL_CORE_MAKE_FUNC(void, keymgmt_free, (void *keydata)) 596 (void *keydata, OSSL_PARAM params[])) 603 (void *keydata, const OSSL_PARAM params[])) 614 OSSL_CORE_MAKE_FUNC(int, keymgmt_has, (const void *keydata, int selection)) 618 OSSL_CORE_MAKE_FUNC(int, keymgmt_validate, (const void *keydata, int selection, 633 (void *keydata, int selection, const OSSL_PARAM params[])) 637 (void *keydata, int selection,
|