Home
last modified time | relevance | path

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

/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()
H A Dfake_rsaprov.c364 unsigned char *newctx; in fake_rsa_sig_dupctx() local
369 if (!TEST_ptr(newctx = OPENSSL_zalloc(1))) in fake_rsa_sig_dupctx()
372 *newctx = *sigctx; in fake_rsa_sig_dupctx()
373 return newctx; in fake_rsa_sig_dupctx()
/openssl/crypto/encode_decode/
H A Dencoder_local.h32 OSSL_FUNC_encoder_newctx_fn *newctx; member
46 OSSL_FUNC_decoder_newctx_fn *newctx; member
H A Ddecoder_meth.c223 if (decoder->newctx == NULL) in ossl_decoder_from_algorithm()
224 decoder->newctx = OSSL_FUNC_decoder_newctx(fns); in ossl_decoder_from_algorithm()
270 if (!((decoder->newctx == NULL && decoder->freectx == NULL) in ossl_decoder_from_algorithm()
271 || (decoder->newctx != NULL && decoder->freectx != NULL)) in ossl_decoder_from_algorithm()
H A Dencoder_meth.c223 if (encoder->newctx == NULL) in encoder_from_algorithm()
224 encoder->newctx = in encoder_from_algorithm()
278 if (!((encoder->newctx == NULL && encoder->freectx == NULL) in encoder_from_algorithm()
279 || (encoder->newctx != NULL && encoder->freectx != NULL) in encoder_from_algorithm()
H A Ddecoder_lib.c301 dest->decoderctx = dest->decoder->newctx(provctx); in ossl_decoder_instance_dup()
356 if ((decoderctx = decoder->newctx(provctx)) == NULL in OSSL_DECODER_CTX_add_decoder()
438 if ((decoderctx = decoder->newctx(provctx)) == NULL) in collect_extra_decoder()
H A Dencoder_lib.c298 if ((encoderctx = encoder->newctx(provctx)) == NULL in OSSL_ENCODER_CTX_add_encoder()
H A Ddecoder_pkey.c235 if ((decoderctx = decoder->newctx(provctx)) == NULL) { in collect_decoder_keymgmt()
/openssl/crypto/evp/
H A Devp_local.h148 OSSL_FUNC_keyexch_newctx_fn *newctx; member
167 OSSL_FUNC_signature_newctx_fn *newctx; member
210 OSSL_FUNC_asym_cipher_newctx_fn *newctx; member
230 OSSL_FUNC_kem_newctx_fn *newctx; member
H A Dmac_meth.c79 if (mac->newctx != NULL) in evp_mac_from_algorithm()
81 mac->newctx = OSSL_FUNC_mac_newctx(fns); in evp_mac_from_algorithm()
H A Dkdf_meth.c80 if (kdf->newctx != NULL) in evp_kdf_from_algorithm()
82 kdf->newctx = OSSL_FUNC_kdf_newctx(fns); in evp_kdf_from_algorithm()
H A Devp_rand.c32 OSSL_FUNC_rand_newctx_fn *newctx; member
142 if (rand->newctx != NULL) in evp_rand_from_algorithm()
144 rand->newctx = OSSL_FUNC_rand_newctx(fns); in evp_rand_from_algorithm()
370 if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx, in EVP_RAND_CTX_new()
H A Dkem.c151 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov)); in evp_kem_init()
312 if (kem->newctx != NULL) in evp_kem_from_algorithm()
314 kem->newctx = OSSL_FUNC_kem_newctx(fns); in evp_kem_from_algorithm()
H A Dasymcipher.c145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init()
359 if (cipher->newctx != NULL) in evp_asym_cipher_from_algorithm()
361 cipher->newctx = OSSL_FUNC_asym_cipher_newctx(fns); in evp_asym_cipher_from_algorithm()
H A Dexchange.c59 if (exchange->newctx != NULL) in evp_keyexch_from_algorithm()
61 exchange->newctx = OSSL_FUNC_keyexch_newctx(fns); in evp_keyexch_from_algorithm()
335 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov)); in EVP_PKEY_derive_init_ex()
H A Dkdf_lib.c32 || (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL in EVP_KDF_CTX_new()
H A Dsignature.c68 if (signature->newctx != NULL) in evp_signature_from_algorithm()
70 signature->newctx = OSSL_FUNC_signature_newctx(fns); in evp_signature_from_algorithm()
701 signature->newctx(ossl_provider_ctx(signature->prov), ctx->propquery); in evp_pkey_signature_init()
H A Dmac_lib.c28 if ((ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL in EVP_MAC_CTX_new()
H A Ddigest.c290 ctx->algctx = ctx->digest->newctx(ossl_provider_ctx(type->prov)); in evp_md_init_internal()
1048 if (md->newctx == NULL) { in evp_md_from_algorithm()
1049 md->newctx = OSSL_FUNC_digest_newctx(fns); in evp_md_from_algorithm()
H A Devp_enc.c220 ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_cipher_init_internal()
1597 if (cipher->newctx != NULL) in evp_cipher_from_algorithm()
1599 cipher->newctx = OSSL_FUNC_cipher_newctx(fns); in evp_cipher_from_algorithm()
H A Dm_sigver.c199 = signature->newctx(ossl_provider_ctx(signature->prov), props); in do_sigver_init()
/openssl/doc/internal/man3/
H A Devp_generic_fetch.pod103 OSSL_FUNC_foo_newctx_fn *newctx;
134 foo->newctx = OSSL_FUNC_foo_newctx(fns);
247 c->provctx = c->foo->newctx();
/openssl/include/crypto/
H A Devp.h217 OSSL_FUNC_mac_newctx_fn *newctx; member
238 OSSL_FUNC_kdf_newctx_fn *newctx; member
281 OSSL_FUNC_digest_newctx_fn *newctx; member
338 OSSL_FUNC_cipher_newctx_fn *newctx; member
/openssl/doc/designs/
H A Dxof.md177 EVP_MD_CTX_copy_ex(ctx, newctx);

Completed in 51 milliseconds