Home
last modified time | relevance | path

Searched refs:algctx (Results 1 – 20 of 20) sorted by relevance

/freebsd-14.2/crypto/openssl/crypto/evp/
H A Dkdf_lib.c36 kdf->freectx(ctx->algctx); in EVP_KDF_CTX_new()
49 ctx->meth->freectx(ctx->algctx); in EVP_KDF_CTX_free()
50 ctx->algctx = NULL; in EVP_KDF_CTX_free()
59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup()
75 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
76 if (dst->algctx == NULL) { in EVP_KDF_CTX_dup()
119 ctx->meth->reset(ctx->algctx); in EVP_KDF_CTX_reset()
132 && ctx->meth->get_ctx_params(ctx->algctx, params)) in EVP_KDF_CTX_get_kdf_size()
146 return ctx->meth->derive(ctx->algctx, key, keylen, params); in EVP_KDF_derive()
165 return ctx->meth->get_ctx_params(ctx->algctx, params); in EVP_KDF_CTX_get_params()
[all …]
H A Dmac_lib.c31 mac->freectx(ctx->algctx); in EVP_MAC_CTX_new()
44 ctx->meth->freectx(ctx->algctx); in EVP_MAC_CTX_free()
45 ctx->algctx = NULL; in EVP_MAC_CTX_free()
55 if (src->algctx == NULL) in EVP_MAC_CTX_dup()
71 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup()
72 if (dst->algctx == NULL) { in EVP_MAC_CTX_dup()
89 if (ctx->algctx != NULL) { in get_size_t_ctx_param()
94 if (ctx->meth->get_ctx_params(ctx->algctx, params)) in get_size_t_ctx_param()
121 return ctx->meth->init(ctx->algctx, key, keylen, params); in EVP_MAC_init()
126 return ctx->meth->update(ctx->algctx, data, datalen); in EVP_MAC_update()
[all …]
H A Ddigest.c45 if (ctx->algctx != NULL) { in evp_md_ctx_clear_digest()
48 ctx->algctx = NULL; in evp_md_ctx_clear_digest()
172 if (ctx->algctx != NULL) { in evp_md_init_internal()
179 ctx->algctx = NULL; in evp_md_init_internal()
266 ctx->algctx = NULL; in evp_md_init_internal()
277 if (ctx->algctx == NULL) { in evp_md_init_internal()
279 if (ctx->algctx == NULL) { in evp_md_init_internal()
558 out->algctx = NULL; in EVP_MD_CTX_copy_ex()
563 if (in->algctx != NULL) { in EVP_MD_CTX_copy_ex()
564 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()
[all …]
H A Dpmeth_lib.c166 && ctx->op.kex.algctx != NULL) in evp_pkey_ctx_state()
384 ctx->op.sig.algctx = NULL; in evp_pkey_ctx_free_old_ops()
390 ctx->op.kex.algctx = NULL; in evp_pkey_ctx_free_old_ops()
396 ctx->op.encap.algctx = NULL; in evp_pkey_ctx_free_old_ops()
403 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops()
515 rctx->op.kex.algctx in EVP_PKEY_CTX_dup()
536 rctx->op.sig.algctx in EVP_PKEY_CTX_dup()
557 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup()
928 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_CTX_get_signature_md()
1171 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_CTX_set_hkdf_mode()
[all …]
H A Dm_sigver.c54 if (ctx->algctx != NULL) { in do_sigver_init()
60 ctx->digest->freectx(ctx->algctx); in do_sigver_init()
61 ctx->algctx = NULL; in do_sigver_init()
205 locpctx->op.sig.algctx in do_sigver_init()
207 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init()
413 || pctx->op.sig.algctx == NULL in EVP_DigestSignUpdate()
443 || pctx->op.sig.algctx == NULL in EVP_DigestVerifyUpdate()
476 || pctx->op.sig.algctx == NULL in EVP_DigestSignFinal()
574 && pctx->op.sig.algctx != NULL in EVP_DigestSign()
603 || pctx->op.sig.algctx == NULL in EVP_DigestVerifyFinal()
[all …]
H A Devp_rand.c95 return rand->meth->enable_locking(rand->algctx); in EVP_RAND_enable_locking()
104 return rand->meth->lock(rand->algctx); in evp_rand_lock()
112 rand->meth->unlock(rand->algctx); in evp_rand_unlock()
354 parent_ctx = parent->algctx; in EVP_RAND_CTX_new()
361 rand->freectx(ctx->algctx); in EVP_RAND_CTX_new()
385 ctx->meth->freectx(ctx->algctx); in EVP_RAND_CTX_free()
386 ctx->algctx = NULL; in EVP_RAND_CTX_free()
401 return ctx->meth->get_ctx_params(ctx->algctx, params); in evp_rand_get_ctx_params_locked()
419 return ctx->meth->set_ctx_params(ctx->algctx, params); in evp_rand_set_ctx_params_locked()
526 return ctx->meth->uninstantiate(ctx->algctx); in evp_rand_uninstantiate_locked()
[all …]
H A Devp_enc.c38 if (ctx->algctx != NULL) { in EVP_CIPHER_CTX_reset()
40 ctx->cipher->freectx(ctx->algctx); in EVP_CIPHER_CTX_reset()
41 ctx->algctx = NULL; in EVP_CIPHER_CTX_reset()
209 if (ctx->algctx == NULL) { in evp_cipher_init_internal()
211 if (ctx->algctx == NULL) { in evp_cipher_init_internal()
268 return ctx->cipher->einit(ctx->algctx, in evp_cipher_init_internal()
283 return ctx->cipher->dinit(ctx->algctx, in evp_cipher_init_internal()
745 ret = ctx->cipher->cfinal(ctx->algctx, out, &soutl, in EVP_EncryptFinal_ex()
1427 out->algctx = NULL; in EVP_CIPHER_CTX_copy()
1434 out->algctx = in->cipher->dupctx(in->algctx); in EVP_CIPHER_CTX_copy()
[all …]
H A Dsignature.c519 ctx->op.sig.algctx = in evp_pkey_signature_init()
521 if (ctx->op.sig.algctx == NULL) { in evp_pkey_signature_init()
534 ret = signature->sign_init(ctx->op.sig.algctx, provkey, params); in evp_pkey_signature_init()
550 ret = signature->verify_recover_init(ctx->op.sig.algctx, provkey, in evp_pkey_signature_init()
559 signature->freectx(ctx->op.sig.algctx); in evp_pkey_signature_init()
560 ctx->op.sig.algctx = NULL; in evp_pkey_signature_init()
646 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_sign()
654 ret = ctx->op.sig.signature->sign(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_sign()
695 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_verify()
703 ret = ctx->op.sig.signature->verify(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_verify()
[all …]
H A Dkem.c138 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov)); in evp_kem_init()
139 if (ctx->op.encap.algctx == NULL) { in evp_kem_init()
152 ret = kem->encapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init()
160 ret = kem->decapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init()
198 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_encapsulate()
206 return ctx->op.encap.kem->encapsulate(ctx->op.encap.algctx, in EVP_PKEY_encapsulate()
229 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_decapsulate()
233 return ctx->op.encap.kem->decapsulate(ctx->op.encap.algctx, in EVP_PKEY_decapsulate()
H A Dasymcipher.c145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init()
146 if (ctx->op.ciph.algctx == NULL) { in evp_pkey_asym_cipher_init()
159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init()
167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init()
243 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_encrypt()
246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt()
285 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_decrypt()
288 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_decrypt()
H A Dexchange.c336 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov)); in EVP_PKEY_derive_init_ex()
337 if (ctx->op.kex.algctx == NULL) { in EVP_PKEY_derive_init_ex()
342 ret = exchange->init(ctx->op.kex.algctx, provkey, params); in EVP_PKEY_derive_init_ex()
390 if (!EVP_PKEY_CTX_IS_DERIVE_OP(ctx) || ctx->op.kex.algctx == NULL) in EVP_PKEY_derive_set_peer_ex()
433 return ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey); in EVP_PKEY_derive_set_peer_ex()
519 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_derive()
522 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen, in EVP_PKEY_derive()
H A Devp_lib.c419 ret = ctx->cipher->ccipher(ctx->algctx, out, &outl, in EVP_Cipher()
424 ret = ctx->cipher->cupdate(ctx->algctx, out, &outl, in EVP_Cipher()
428 ret = ctx->cipher->cfinal(ctx->algctx, out, &outl, in EVP_Cipher()
548 ret = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_get_tag_length()
562 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_original_iv()
579 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_iv()
593 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_iv_noconst()
605 return evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params) > 0; in EVP_CIPHER_CTX_get_updated_iv()
629 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_get_num()
641 ok = evp_do_ciph_ctx_setparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_set_num()
[all …]
H A Devp_local.h32 void *algctx; member
60 void *algctx; member
70 void *algctx; member
79 void *algctx; member
88 void *algctx; member
H A Devp_utils.c45 int name (const type *obj, void *algctx, OSSL_PARAM params[]) \
48 return obj->func(algctx, params); \
H A Dkdf_meth.c212 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_KDF_CTX_gettable_params()
222 return ctx->meth->settable_ctx_params(ctx->algctx, alg); in EVP_KDF_CTX_settable_params()
H A Dmac_meth.c226 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_MAC_CTX_gettable_params()
236 return ctx->meth->settable_ctx_params(ctx->algctx, alg); in EVP_MAC_CTX_settable_params()
H A Dctrl_params_translate.c420 && ctx->pctx->op.sig.algctx == NULL) in default_fixup_args()
422 && ctx->pctx->op.kex.algctx == NULL) in default_fixup_args()
424 && ctx->pctx->op.ciph.algctx == NULL) in default_fixup_args()
426 && ctx->pctx->op.encap.algctx == NULL) in default_fixup_args()
/freebsd-14.2/crypto/openssl/test/testutil/
H A Dfake_random.c182 f = rng->algctx; in check_rng()
219 ((FAKE_RAND *)rng->algctx)->cb = cb; in fake_rand_set_callback()
/freebsd-14.2/crypto/openssl/include/crypto/
H A Devp.h55 void *algctx; member
64 void *algctx; member
73 void *algctx; member
81 void *algctx; member
/freebsd-14.2/crypto/openssl/test/
H A Ddrbgtest.c107 return (PROV_DRBG *)drbg->algctx; in DRBG_UINT()