/test/ |
A D | endecoder_legacy_test.c | 73 const char *keytype; member 216 const char *keytype; member 280 if (strcmp(keys[i].keytype, type) == 0) in lookup_key() 433 static int test_DER(const char *keytype, int evp_type, in test_DER() argument 536 test_stanza->keytype, structure); in test_key() 556 test_stanza->keytype, structure); in test_key() 574 test_stanza->keytype, structure); in test_key() 593 test_stanza->keytype, structure); in test_key() 666 test_stanza->keytype, structure); in test_key() 698 if (strcmp(keys[i].keytype, "DH") == 0) { in OPT_TEST_DECLARE_USAGE() [all …]
|
A D | fake_rsaprov.c | 1109 #define DO_PrivateKeyInfo(keytype) \ argument 1110 "PrivateKeyInfo", keytype##_evp_type, \ 1121 #define DO_SubjectPublicKeyInfo(keytype) \ argument 1122 "SubjectPublicKeyInfo", keytype##_evp_type, \ 1150 #define MAKE_DECODER(keytype_name, keytype, type, kind) \ argument 1151 static struct keytype_desc_st kind##_##keytype##_desc = \ 1153 DO_##kind(keytype) }; \ 1155 static OSSL_FUNC_decoder_newctx_fn kind##_der2##keytype##_newctx; \ 1157 static void *kind##_der2##keytype##_newctx(void *provctx) \ 1161 static int kind##_der2##keytype##_does_selection(void *provctx, \ [all …]
|
A D | evp_pkey_dhkem_test.c | 399 int keytype = tstid >= TEST_KEM_ENCAP_DECAP; in test_nopublic() local 400 const TEST_ENCAPDATA *t = &ec_encapdata[keytype]; in test_nopublic() 401 int expected = (keytype == TEST_KEYTYPE_X25519); in test_nopublic() 433 int keytype = tstid >= TEST_KEM_ENCAP_DECAP; in test_noauthpublic() local 434 const TEST_ENCAPDATA *t = &ec_encapdata[keytype]; in test_noauthpublic() 435 EVP_PKEY_CTX *ctx = rctx[keytype]; in test_noauthpublic() 436 int expected = (keytype == TEST_KEYTYPE_X25519); in test_noauthpublic()
|
A D | lms_test.c | 128 static EVP_PKEY *key_decode_from_bio(BIO *bio, const char *keytype) in key_decode_from_bio() argument 135 keytype, in key_decode_from_bio() 149 const char *keytype) in key_decode_from_data() argument 156 key = key_decode_from_bio(bio, keytype); in key_decode_from_data()
|
A D | tls-provider.c | 2479 #define DO_PrivateKeyInfo(keytype) \ argument 2491 #define DO_SubjectPublicKeyInfo(keytype) \ argument 2520 #define MAKE_DECODER(keytype_name, keytype, type, kind) \ argument 2521 static struct keytype_desc_st kind##_##keytype##_desc = \ 2522 { keytype_name, xor_##keytype##_keymgmt_functions, \ 2523 DO_##kind(keytype) }; \ 2525 static OSSL_FUNC_decoder_newctx_fn kind##_der2##keytype##_newctx; \ 2527 static void *kind##_der2##keytype##_newctx(void *provctx) \ 2531 static int kind##_der2##keytype##_does_selection(void *provctx, \ 2535 &kind##_##keytype##_desc); \ [all …]
|
A D | evp_extra_test2.c | 292 static int do_pkey_tofrom_data_select(EVP_PKEY *key, const char *keytype) in do_pkey_tofrom_data_select() argument 298 const char *privtag = strcmp(keytype, "RSA") == 0 ? "d" : "priv"; in do_pkey_tofrom_data_select() 299 const int use_octstring = strcmp(keytype, "X25519") == 0; in do_pkey_tofrom_data_select() 320 if (!TEST_ptr(fromctx = EVP_PKEY_CTX_new_from_name(mainctx, keytype, NULL)) in do_pkey_tofrom_data_select()
|
A D | evp_extra_test.c | 847 const char *keytype; member 893 static EVP_PKEY *load_example_key(const char *keytype, in load_example_key() argument 899 OSSL_DECODER_CTX_new_for_pkey(&pkey, "DER", NULL, keytype, 0, in load_example_key() 1043 static EVP_PKEY *make_key_fromdata(char *keytype, OSSL_PARAM *params) in make_key_fromdata() argument 1105 static int test_EVP_PKEY_ffc_priv_pub(char *keytype) in test_EVP_PKEY_ffc_priv_pub() argument 1134 || !TEST_ptr(just_params = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub() 1176 || !TEST_ptr(params_and_pub = make_key_fromdata(keytype, params))) in test_EVP_PKEY_ffc_priv_pub() 4216 const char *keytype = NULL; in test_pkey_ctx_fail_without_provider() local 4236 keytype = "RSA"; in test_pkey_ctx_fail_without_provider() 4240 keytype = "SM2"; in test_pkey_ctx_fail_without_provider() [all …]
|
A D | slh_dsa_test.c | 39 const char *keytype = public ? OSSL_PKEY_PARAM_PUB_KEY : OSSL_PKEY_PARAM_PRIV_KEY; in slh_dsa_key_from_data() local 42 params[0] = OSSL_PARAM_construct_octet_string(keytype, (uint8_t *)data, datalen); in slh_dsa_key_from_data()
|
A D | endecode_test.c | 148 const char *keytype, int selection, const char *pass); 321 const char *keytype, int selection, in decode_EVP_PKEY_prov() argument 354 keytype, in decode_EVP_PKEY_prov()
|
/test/recipes/30-test_evp_data/ |
A D | evppkey_ecx.txt | 92 Reason = operation not supported for this keytype 96 Reason = operation not supported for this keytype 182 Reason = operation not supported for this keytype 186 Reason = operation not supported for this keytype
|
A D | evppkey_rsa.txt | 290 Reason = operation not supported for this keytype
|
A D | evppkey_rsa_common.txt | 366 Reason = operation not supported for this keytype
|