/third_party/openssl/include/openssl/ |
D | core_dispatch.h | 230 OSSL_CORE_MAKE_FUNC(void,provider_teardown,(void *provctx)) 233 provider_gettable_params,(void *provctx)) 235 OSSL_CORE_MAKE_FUNC(int,provider_get_params,(void *provctx, 239 (void *provctx, int operation_id, int *no_store)) 242 (void *provctx, int operation_id, const OSSL_ALGORITHM *)) 245 (void *provctx)) 247 OSSL_CORE_MAKE_FUNC(int, provider_get_capabilities, (void *provctx, 250 OSSL_CORE_MAKE_FUNC(int, provider_self_test, (void *provctx)) 287 OSSL_CORE_MAKE_FUNC(void *, digest_newctx, (void *provctx)) 295 (void *provctx, const unsigned char *in, size_t inl, [all …]
|
/third_party/openssl/providers/ |
D | baseprov.c | 45 static const OSSL_PARAM *base_gettable_params(void *provctx) in base_gettable_params() argument 50 static int base_get_params(void *provctx, OSSL_PARAM params[]) in base_get_params() argument 94 static const OSSL_ALGORITHM *base_query(void *provctx, int operation_id, in base_query() argument 109 static void base_teardown(void *provctx) in base_teardown() argument 111 BIO_meth_free(ossl_prov_ctx_get0_core_bio_method(provctx)); in base_teardown() 112 ossl_prov_ctx_free(provctx); in base_teardown() 129 void **provctx) in ossl_base_provider_init() argument 164 if ((*provctx = ossl_prov_ctx_new()) == NULL in ossl_base_provider_init() 166 ossl_prov_ctx_free(*provctx); in ossl_base_provider_init() 167 *provctx = NULL; in ossl_base_provider_init() [all …]
|
D | legacyprov.c | 45 static const OSSL_PARAM *legacy_gettable_params(void *provctx) in legacy_gettable_params() argument 50 static int legacy_get_params(void *provctx, OSSL_PARAM params[]) in legacy_get_params() argument 151 static const OSSL_ALGORITHM *legacy_query(void *provctx, int operation_id, in legacy_query() argument 166 static void legacy_teardown(void *provctx) in legacy_teardown() argument 168 OSSL_LIB_CTX_free(PROV_LIBCTX_OF(provctx)); in legacy_teardown() 169 ossl_prov_ctx_free(provctx); in legacy_teardown() 184 void **provctx) in OSSL_provider_init() argument 188 if ((*provctx = ossl_prov_ctx_new()) == NULL in OSSL_provider_init() 191 legacy_teardown(*provctx); in OSSL_provider_init() 192 *provctx = NULL; in OSSL_provider_init() [all …]
|
/third_party/openssl/providers/implementations/exchange/ |
D | kdf_exch.c | 36 void *provctx; member 41 static void *kdf_newctx(const char *kdfname, void *provctx) in kdf_newctx() argument 53 kdfctx->provctx = provctx; in kdf_newctx() 55 kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, NULL); in kdf_newctx() 71 static void *kdf_##funcname##_newctx(void *provctx) \ 73 return kdf_newctx(kdfname, provctx); \ 173 void *provctx, in kdf_settable_ctx_params() argument 176 EVP_KDF *kdf = EVP_KDF_fetch(PROV_LIBCTX_OF(provctx), kdfname, in kdf_settable_ctx_params() 191 void *provctx) \ 193 return kdf_settable_ctx_params(vpkdfctx, provctx, kdfname); \
|
/third_party/openssl/providers/implementations/storemgmt/ |
D | file_store_any2obj.c | 48 static void *any2obj_newctx(void *provctx) in any2obj_newctx() argument 50 return provctx; in any2obj_newctx() 57 static int any2obj_decode_final(void *provctx, int objtype, BUF_MEM *mem, in any2obj_decode_final() argument 83 static int der2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in der2obj_decode() argument 87 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in der2obj_decode() 104 return any2obj_decode_final(provctx, OSSL_OBJECT_UNKNOWN, mem, in der2obj_decode() 109 static int msblob2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in msblob2obj_decode() argument 113 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in msblob2obj_decode() 168 return any2obj_decode_final(provctx, OSSL_OBJECT_PKEY, mem, in msblob2obj_decode() 178 static int pvk2obj_decode(void *provctx, OSSL_CORE_BIO *cin, int selection, in pvk2obj_decode() argument [all …]
|
D | file_store.c | 67 void *provctx; member 125 void *provctx) in new_file_ctx() argument 132 ctx->provctx = provctx; in new_file_ctx() 153 void *provctx) in file_open_stream() argument 157 if ((ctx = new_file_ctx(IS_FILE, uri, provctx)) == NULL) { in file_open_stream() 170 static void *file_open_dir(const char *path, const char *uri, void *provctx) in file_open_dir() argument 174 if ((ctx = new_file_ctx(IS_DIR, uri, provctx)) == NULL) { in file_open_dir() 195 static void *file_open(void *provctx, const char *uri) in file_open() argument 283 ctx = file_open_dir(path, uri, provctx); in file_open() 285 || (ctx = file_open_stream(bio, uri, provctx)) == NULL) in file_open() [all …]
|
/third_party/openssl/providers/implementations/kdfs/ |
D | pbkdf2.c | 54 void *provctx; member 66 static void *kdf_pbkdf2_new(void *provctx) in kdf_pbkdf2_new() argument 78 ctx->provctx = provctx; in kdf_pbkdf2_new() 104 void *provctx = ctx->provctx; in kdf_pbkdf2_reset() local 107 ctx->provctx = provctx; in kdf_pbkdf2_reset() 114 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pbkdf2_init() local 118 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pbkdf2_init() 173 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pbkdf2_set_ctx_params() local 180 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pbkdf2_set_ctx_params()
|
D | pkcs12kdf.c | 36 void *provctx; member 138 static void *kdf_pkcs12_new(void *provctx) in kdf_pkcs12_new() argument 150 ctx->provctx = provctx; in kdf_pkcs12_new() 175 void *provctx = ctx->provctx; in kdf_pkcs12_reset() local 178 ctx->provctx = provctx; in kdf_pkcs12_reset() 228 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pkcs12_set_ctx_params() local 233 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_pkcs12_set_ctx_params() 255 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_pkcs12_settable_ctx_params() argument 279 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_pkcs12_gettable_ctx_params() argument
|
D | sshkdf.c | 42 void *provctx; member 53 static void *kdf_sshkdf_new(void *provctx) in kdf_sshkdf_new() argument 63 ctx->provctx = provctx; in kdf_sshkdf_new() 80 void *provctx = ctx->provctx; in kdf_sshkdf_reset() local 87 ctx->provctx = provctx; in kdf_sshkdf_reset() 139 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_sshkdf_set_ctx_params() local 144 if (!ossl_prov_digest_load_from_params(&ctx->digest, params, provctx)) in kdf_sshkdf_set_ctx_params()
|
D | krb5kdf.c | 51 void *provctx; member 59 static void *krb5kdf_new(void *provctx) in krb5kdf_new() argument 70 ctx->provctx = provctx; in krb5kdf_new() 87 void *provctx = ctx->provctx; in krb5kdf_reset() local 93 ctx->provctx = provctx; in krb5kdf_reset() 138 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(ctx->provctx); in krb5kdf_set_ctx_params() local 143 if (!ossl_prov_cipher_load_from_params(&ctx->cipher, params, provctx)) in krb5kdf_set_ctx_params() 159 ossl_unused void *provctx) in krb5kdf_settable_ctx_params() argument 190 ossl_unused void *provctx) in krb5kdf_gettable_ctx_params() argument
|
D | pbkdf1.c | 36 void *provctx; member 90 static void *kdf_pbkdf1_new(void *provctx) in kdf_pbkdf1_new() argument 102 ctx->provctx = provctx; in kdf_pbkdf1_new() 127 void *provctx = ctx->provctx; in kdf_pbkdf1_reset() local 130 ctx->provctx = provctx; in kdf_pbkdf1_reset() 180 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_pbkdf1_set_ctx_params()
|
D | tls1_prf.c | 83 void *provctx; member 98 static void *kdf_tls1_prf_new(void *provctx) in kdf_tls1_prf_new() argument 109 ctx->provctx = provctx; in kdf_tls1_prf_new() 126 void *provctx = ctx->provctx; in kdf_tls1_prf_reset() local 133 ctx->provctx = provctx; in kdf_tls1_prf_reset() 171 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in kdf_tls1_prf_set_ctx_params() 220 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_tls1_prf_settable_ctx_params() argument 242 ossl_unused void *ctx, ossl_unused void *provctx) in kdf_tls1_prf_gettable_ctx_params() argument
|
D | kbkdf.c | 58 void *provctx; member 107 static void *kbkdf_new(void *provctx) in kbkdf_new() argument 120 ctx->provctx = provctx; in kbkdf_new() 138 void *provctx = ctx->provctx; in kbkdf_reset() local 146 ctx->provctx = provctx; in kbkdf_reset() 282 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in kbkdf_set_ctx_params() 344 ossl_unused void *provctx) in kbkdf_settable_ctx_params() argument 376 ossl_unused void *provctx) in kbkdf_gettable_ctx_params() argument
|
/third_party/openssl/providers/implementations/keymgmt/ |
D | ecx_kmgmt.c | 90 static void *x25519_new_key(void *provctx) in x25519_new_key() argument 94 return ossl_ecx_key_new(PROV_LIBCTX_OF(provctx), ECX_KEY_TYPE_X25519, 0, in x25519_new_key() 98 static void *x448_new_key(void *provctx) in x448_new_key() argument 102 return ossl_ecx_key_new(PROV_LIBCTX_OF(provctx), ECX_KEY_TYPE_X448, 0, in x448_new_key() 106 static void *ed25519_new_key(void *provctx) in ed25519_new_key() argument 110 return ossl_ecx_key_new(PROV_LIBCTX_OF(provctx), ECX_KEY_TYPE_ED25519, 0, in ed25519_new_key() 114 static void *ed448_new_key(void *provctx) in ed448_new_key() argument 118 return ossl_ecx_key_new(PROV_LIBCTX_OF(provctx), ECX_KEY_TYPE_ED448, 0, in ed448_new_key() 358 static const OSSL_PARAM *x25519_gettable_params(void *provctx) in x25519_gettable_params() argument 363 static const OSSL_PARAM *x448_gettable_params(void *provctx) in x448_gettable_params() argument [all …]
|
D | mac_legacy_kmgmt.c | 123 static void *mac_new(void *provctx) in mac_new() argument 125 return ossl_mac_key_new(PROV_LIBCTX_OF(provctx), 0); in mac_new() 128 static void *mac_new_cmac(void *provctx) in mac_new_cmac() argument 130 return ossl_mac_key_new(PROV_LIBCTX_OF(provctx), 1); in mac_new_cmac() 334 static const OSSL_PARAM *mac_gettable_params(void *provctx) in mac_gettable_params() argument 343 static const OSSL_PARAM *cmac_gettable_params(void *provctx) in cmac_gettable_params() argument 369 static const OSSL_PARAM *mac_settable_params(void *provctx) in mac_settable_params() argument 378 static void *mac_gen_init_common(void *provctx, int selection) in mac_gen_init_common() argument 380 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(provctx); in mac_gen_init_common() 393 static void *mac_gen_init(void *provctx, int selection, in mac_gen_init() argument [all …]
|
/third_party/openssl/test/ |
D | tls-provider.c | 27 void **provctx); 174 static int tls_prov_get_capabilities(void *provctx, const char *capability, in tls_prov_get_capabilities() argument 227 void *provctx; member 230 static void *xor_newctx(void *provctx) in xor_newctx() argument 237 pxorctx->provctx = provctx; in xor_newctx() 358 genctx = xor_gen_init(pxorctx->provctx, OSSL_KEYMGMT_SELECT_KEYPAIR, NULL); in xor_encapsulate() 370 derivectx = xor_newctx(pxorctx->provctx); in xor_encapsulate() 411 peerkey = xor_newdata(pxorctx->provctx); in xor_decapsulate() 417 derivectx = xor_newctx(pxorctx->provctx); in xor_decapsulate() 454 static void *xor_newdata(void *provctx) in xor_newdata() argument [all …]
|
D | filterprov.c | 56 static const OSSL_PARAM *filter_gettable_params(void *provctx) in filter_gettable_params() argument 63 static int filter_get_params(void *provctx, OSSL_PARAM params[]) in filter_get_params() argument 70 static int filter_get_capabilities(void *provctx, const char *capability, in filter_get_capabilities() argument 78 static const OSSL_ALGORITHM *filter_query(void *provctx, in filter_query() argument 97 static void filter_unquery(void *provctx, int operation_id, in filter_unquery() argument 114 static void filter_teardown(void *provctx) in filter_teardown() argument 137 void **provctx) in filter_provider_init() argument 148 *provctx = OSSL_PROVIDER_get0_provider_ctx(ourglobals.deflt); in filter_provider_init()
|
/third_party/openssl/providers/implementations/macs/ |
D | gmac_prov.c | 42 void *provctx; member 58 static void *gmac_new(void *provctx) in gmac_new() argument 70 macctx->provctx = provctx; in gmac_new() 83 dst = gmac_new(src->provctx); in gmac_dup() 172 static const OSSL_PARAM *gmac_gettable_params(void *provctx) in gmac_gettable_params() argument 195 ossl_unused void *provctx) in gmac_settable_ctx_params() argument 207 OSSL_LIB_CTX *provctx = PROV_LIBCTX_OF(macctx->provctx); in gmac_set_ctx_params() local 216 if (!ossl_prov_cipher_load_from_params(&macctx->cipher, params, provctx)) in gmac_set_ctx_params()
|
D | cmac_prov.c | 46 void *provctx; member 51 static void *cmac_new(void *provctx) in cmac_new() argument 63 macctx->provctx = provctx; in cmac_new() 88 dst = cmac_new(src->provctx); in cmac_dup() 154 ossl_unused void *provctx) in cmac_gettable_ctx_params() argument 181 ossl_unused void *provctx) in cmac_settable_ctx_params() argument 192 OSSL_LIB_CTX *ctx = PROV_LIBCTX_OF(macctx->provctx); in cmac_set_ctx_params()
|
D | kmac_prov.c | 118 void *provctx; member 162 static struct kmac_data_st *kmac_new(void *provctx) in kmac_new() argument 174 kctx->provctx = provctx; in kmac_new() 178 static void *kmac_fetch_new(void *provctx, const OSSL_PARAM *params) in kmac_fetch_new() argument 180 struct kmac_data_st *kctx = kmac_new(provctx); in kmac_fetch_new() 185 PROV_LIBCTX_OF(provctx))) { in kmac_fetch_new() 194 static void *kmac128_new(void *provctx) in kmac128_new() argument 201 return kmac_fetch_new(provctx, kmac128_params); in kmac128_new() 204 static void *kmac256_new(void *provctx) in kmac256_new() argument 211 return kmac_fetch_new(provctx, kmac256_params); in kmac256_new() [all …]
|
/third_party/openssl/providers/implementations/encode_decode/ |
D | decode_pvk2key.c | 57 PROV_CTX *provctx; member 64 pvk2key_newctx(void *provctx, const struct keytype_desc_st *desc) in pvk2key_newctx() argument 69 ctx->provctx = provctx; in pvk2key_newctx() 87 BIO *in = ossl_bio_new_from_core_bio(ctx->provctx, cin); in pvk2key_decode() 107 PROV_LIBCTX_OF(ctx->provctx), NULL); in pvk2key_decode() 202 ossl_rsa_set0_libctx(key, PROV_LIBCTX_OF(ctx->provctx)); in rsa_adjust() 219 static void *pvk2##keytype##_newctx(void *provctx) \ 221 return pvk2key_newctx(provctx, &pvk2##keytype##_desc); \
|
D | decode_spki2typespki.c | 32 PROV_CTX *provctx; member 35 static void *spki2typespki_newctx(void *provctx) in spki2typespki_newctx() argument 40 ctx->provctx = provctx; in spki2typespki_newctx() 66 if (!ossl_read_der(ctx->provctx, cin, &der, &len)) in spki2typespki_decode() 70 PROV_LIBCTX_OF(ctx->provctx)); in spki2typespki_decode()
|
D | encode_key2ms.c | 31 PROV_CTX *provctx; member 41 BIO *out = ossl_bio_new_from_core_bio(ctx->provctx, cout); in write_msblob() 57 OSSL_LIB_CTX *libctx = PROV_LIBCTX_OF(ctx->provctx); in write_pvk() 59 out = ossl_bio_new_from_core_bio(ctx->provctx, cout); in write_pvk() 71 static struct key2ms_ctx_st *key2ms_newctx(void *provctx) in key2ms_newctx() argument 76 ctx->provctx = provctx; in key2ms_newctx() 91 static const OSSL_PARAM *key2pvk_settable_ctx_params(ossl_unused void *provctx) in key2pvk_settable_ctx_params() argument
|
D | decode_pem2der.c | 31 static int read_pem(PROV_CTX *provctx, OSSL_CORE_BIO *cin, in read_pem() argument 35 BIO *in = ossl_bio_new_from_core_bio(provctx, cin); in read_pem() 54 PROV_CTX *provctx; member 57 static void *pem2der_newctx(void *provctx) in pem2der_newctx() argument 62 ctx->provctx = provctx; in pem2der_newctx() 143 ok = read_pem(ctx->provctx, cin, &pem_name, &pem_header, in pem2der_decode()
|
/third_party/openssl/providers/fips/ |
D | fipsprov.c | 165 static const OSSL_PARAM *fips_gettable_params(void *provctx) in fips_gettable_params() argument 170 static int fips_get_params(void *provctx, OSSL_PARAM params[]) in fips_get_params() argument 173 FIPS_GLOBAL *fgbl = ossl_lib_ctx_get_data(ossl_prov_ctx_get0_libctx(provctx), in fips_get_params() 209 static int fips_self_test(void *provctx) in fips_self_test() argument 211 FIPS_GLOBAL *fgbl = ossl_lib_ctx_get_data(ossl_prov_ctx_get0_libctx(provctx), in fips_self_test() 457 static const OSSL_ALGORITHM *fips_query(void *provctx, int operation_id, in fips_query() argument 490 static void fips_teardown(void *provctx) in fips_teardown() argument 492 OSSL_LIB_CTX_free(PROV_LIBCTX_OF(provctx)); in fips_teardown() 493 ossl_prov_ctx_free(provctx); in fips_teardown() 496 static void fips_intern_teardown(void *provctx) in fips_intern_teardown() argument [all …]
|