Home
last modified time | relevance | path

Searched refs:newctx (Results 1 – 23 of 23) sorted by relevance

/freebsd/crypto/openssl/test/
H A Dasn1_stable_parse_test.c42 OSSL_LIB_CTX *newctx = OSSL_LIB_CTX_new(); in test_asn1_stable_parse() local
44 if (!TEST_ptr(newctx)) in test_asn1_stable_parse()
47 if (!TEST_int_eq(OSSL_LIB_CTX_load_config(newctx, config_file), 0)) in test_asn1_stable_parse()
60 OSSL_LIB_CTX_free(newctx); in test_asn1_stable_parse()
/freebsd/crypto/openssh/openbsd-compat/
H A Dport-linux.c181 char *oldctx, *newctx, *cx, *cx2; in ssh_selinux_change_context() local
207 xasprintf(&newctx, "%.*s%s%s", (int)(cx - oldctx + 1), oldctx, in ssh_selinux_change_context()
210 debug3_f("setting context from '%s' to '%s'", oldctx, newctx); in ssh_selinux_change_context()
211 if (setcon(newctx) < 0) in ssh_selinux_change_context()
213 newctx, oldctx, strerror(errno)); in ssh_selinux_change_context()
215 free(newctx); in ssh_selinux_change_context()
/freebsd/crypto/openssl/crypto/encode_decode/
H A Dencoder_local.h33 OSSL_FUNC_encoder_newctx_fn *newctx; member
47 OSSL_FUNC_decoder_newctx_fn *newctx; member
H A Ddecoder_meth.c244 if (decoder->newctx == NULL) in ossl_decoder_from_algorithm()
245 decoder->newctx = OSSL_FUNC_decoder_newctx(fns); in ossl_decoder_from_algorithm()
291 if (!((decoder->newctx == NULL && decoder->freectx == NULL) in ossl_decoder_from_algorithm()
292 || (decoder->newctx != NULL && decoder->freectx != NULL)) in ossl_decoder_from_algorithm()
H A Dencoder_meth.c244 if (encoder->newctx == NULL) in encoder_from_algorithm()
245 encoder->newctx = in encoder_from_algorithm()
299 if (!((encoder->newctx == NULL && encoder->freectx == NULL) in encoder_from_algorithm()
300 || (encoder->newctx != NULL && encoder->freectx != NULL) in encoder_from_algorithm()
H A Ddecoder_lib.c325 if ((decoderctx = decoder->newctx(provctx)) == NULL in OSSL_DECODER_CTX_add_decoder()
405 if ((decoderctx = decoder->newctx(provctx)) == NULL) in collect_extra_decoder()
H A Ddecoder_pkey.c271 if ((decoderctx = decoder->newctx(provctx)) == NULL) { in collect_decoder()
H A Dencoder_lib.c295 if ((encoderctx = encoder->newctx(provctx)) == NULL in OSSL_ENCODER_CTX_add_encoder()
/freebsd/crypto/openssl/crypto/evp/
H A Devp_local.h144 OSSL_FUNC_keyexch_newctx_fn *newctx; member
164 OSSL_FUNC_signature_newctx_fn *newctx; member
199 OSSL_FUNC_asym_cipher_newctx_fn *newctx; member
220 OSSL_FUNC_kem_newctx_fn *newctx; member
H A Dkdf_meth.c81 if (kdf->newctx != NULL) in evp_kdf_from_algorithm()
83 kdf->newctx = OSSL_FUNC_kdf_newctx(fns); in evp_kdf_from_algorithm()
H A Dmac_meth.c82 if (mac->newctx != NULL) in evp_mac_from_algorithm()
84 mac->newctx = OSSL_FUNC_mac_newctx(fns); in evp_mac_from_algorithm()
H A Dkem.c138 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov)); in evp_kem_init()
280 if (kem->newctx != NULL) in evp_kem_from_algorithm()
282 kem->newctx = OSSL_FUNC_kem_newctx(fns); in evp_kem_from_algorithm()
H A Devp_rand.c33 OSSL_FUNC_rand_newctx_fn *newctx; member
140 if (rand->newctx != NULL) in evp_rand_from_algorithm()
142 rand->newctx = OSSL_FUNC_rand_newctx(fns); in evp_rand_from_algorithm()
357 if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx, in EVP_RAND_CTX_new()
H A Dasymcipher.c145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init()
346 if (cipher->newctx != NULL) in evp_asym_cipher_from_algorithm()
348 cipher->newctx = OSSL_FUNC_asym_cipher_newctx(fns); in evp_asym_cipher_from_algorithm()
H A Dexchange.c64 if (exchange->newctx != NULL) in evp_keyexch_from_algorithm()
66 exchange->newctx = OSSL_FUNC_keyexch_newctx(fns); in evp_keyexch_from_algorithm()
336 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov)); in EVP_PKEY_derive_init_ex()
H A Dsignature.c66 if (signature->newctx != NULL) in evp_signature_from_algorithm()
68 signature->newctx = OSSL_FUNC_signature_newctx(fns); in evp_signature_from_algorithm()
520 signature->newctx(ossl_provider_ctx(signature->prov), ctx->propquery); in evp_pkey_signature_init()
H A Dkdf_lib.c32 || (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL in EVP_KDF_CTX_new()
H A Ddigest.c278 ctx->algctx = ctx->digest->newctx(ossl_provider_ctx(type->prov)); in evp_md_init_internal()
968 if (md->newctx == NULL) { in evp_md_from_algorithm()
969 md->newctx = OSSL_FUNC_digest_newctx(fns); in evp_md_from_algorithm()
H A Dmac_lib.c27 || (ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL in EVP_MAC_CTX_new()
H A Devp_enc.c210 ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_cipher_init_internal()
1554 if (cipher->newctx != NULL) in evp_cipher_from_algorithm()
1556 cipher->newctx = OSSL_FUNC_cipher_newctx(fns); in evp_cipher_from_algorithm()
H A Dm_sigver.c206 = signature->newctx(ossl_provider_ctx(signature->prov), props); in do_sigver_init()
/freebsd/crypto/openssl/doc/internal/man3/
H A Devp_generic_fetch.pod120 OSSL_FUNC_foo_newctx_fn *newctx;
146 foo->newctx = OSSL_FUNC_foo_newctx(fns);
252 c->provctx = c->foo->newctx();
/freebsd/crypto/openssl/include/crypto/
H A Devp.h208 OSSL_FUNC_mac_newctx_fn *newctx; member
230 OSSL_FUNC_kdf_newctx_fn *newctx; member
274 OSSL_FUNC_digest_newctx_fn *newctx; member
330 OSSL_FUNC_cipher_newctx_fn *newctx; member