Home
last modified time | relevance | path

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

/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()
73 dst->algctx = src->meth->dupctx(src->algctx); in EVP_KDF_CTX_dup()
74 if (dst->algctx == NULL) { in EVP_KDF_CTX_dup()
117 ctx->meth->reset(ctx->algctx); in EVP_KDF_CTX_reset()
130 && ctx->meth->get_ctx_params(ctx->algctx, params)) in EVP_KDF_CTX_get_kdf_size()
144 return ctx->meth->derive(ctx->algctx, key, keylen, params); in EVP_KDF_derive()
163 return ctx->meth->get_ctx_params(ctx->algctx, params); in EVP_KDF_CTX_get_params()
[all …]
H A Dmac_lib.c30 mac->freectx(ctx->algctx); in EVP_MAC_CTX_new()
43 ctx->meth->freectx(ctx->algctx); in EVP_MAC_CTX_free()
44 ctx->algctx = NULL; in EVP_MAC_CTX_free()
54 if (src->algctx == NULL) in EVP_MAC_CTX_dup()
68 dst->algctx = src->meth->dupctx(src->algctx); in EVP_MAC_CTX_dup()
69 if (dst->algctx == NULL) { in EVP_MAC_CTX_dup()
86 if (ctx->algctx != NULL) { in get_size_t_ctx_param()
91 if (ctx->meth->get_ctx_params(ctx->algctx, params)) in get_size_t_ctx_param()
118 return ctx->meth->init(ctx->algctx, key, keylen, params); in EVP_MAC_init()
123 return ctx->meth->update(ctx->algctx, data, datalen); in EVP_MAC_update()
[all …]
H A Ddigest.c46 if (ctx->algctx != NULL) { in evp_md_ctx_clear_digest()
49 ctx->algctx = NULL; in evp_md_ctx_clear_digest()
145 if (ctx->algctx != NULL) { in evp_md_ctx_free_algctx()
152 ctx->algctx = NULL; in evp_md_ctx_free_algctx()
289 if (ctx->algctx == NULL) { in evp_md_init_internal()
291 if (ctx->algctx == NULL) { in evp_md_init_internal()
622 in->digest->copyctx(out->algctx, in->algctx); in EVP_MD_CTX_copy_ex()
638 out->algctx = NULL; in EVP_MD_CTX_copy_ex()
643 if (in->algctx != NULL) { in EVP_MD_CTX_copy_ex()
644 out->algctx = in->digest->dupctx(in->algctx); in EVP_MD_CTX_copy_ex()
[all …]
H A Dpmeth_lib.c144 && ctx->op.kex.algctx != NULL) in evp_pkey_ctx_state()
360 ctx->op.sig.algctx = NULL; in evp_pkey_ctx_free_old_ops()
366 ctx->op.kex.algctx = NULL; in evp_pkey_ctx_free_old_ops()
372 ctx->op.encap.algctx = NULL; in evp_pkey_ctx_free_old_ops()
379 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops()
489 rctx->op.kex.algctx in EVP_PKEY_CTX_dup()
510 rctx->op.sig.algctx in EVP_PKEY_CTX_dup()
531 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup()
915 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_CTX_get_signature_md()
1158 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_CTX_set_hkdf_mode()
[all …]
H A Devp_rand.c97 return rand->meth->enable_locking(rand->algctx); in EVP_RAND_enable_locking()
106 return rand->meth->lock(rand->algctx); in evp_rand_lock()
114 rand->meth->unlock(rand->algctx); in evp_rand_unlock()
367 parent_ctx = parent->algctx; in EVP_RAND_CTX_new()
374 rand->freectx(ctx->algctx); in EVP_RAND_CTX_new()
397 ctx->meth->freectx(ctx->algctx); in EVP_RAND_CTX_free()
398 ctx->algctx = NULL; in EVP_RAND_CTX_free()
413 return ctx->meth->get_ctx_params(ctx->algctx, params); in evp_rand_get_ctx_params_locked()
538 return ctx->meth->uninstantiate(ctx->algctx); in evp_rand_uninstantiate_locked()
681 return ctx->meth->verify_zeroization(ctx->algctx); in evp_rand_verify_zeroization_locked()
[all …]
H A Dm_sigver.c79 || locpctx->op.sig.algctx == NULL)) in do_sigver_init()
198 locpctx->op.sig.algctx in do_sigver_init()
200 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init()
259 ret = signature->digest_verify_init(locpctx->op.sig.algctx, in do_sigver_init()
266 ret = signature->digest_sign_init(locpctx->op.sig.algctx, in do_sigver_init()
407 || pctx->op.sig.algctx == NULL in EVP_DigestSignUpdate()
442 || pctx->op.sig.algctx == NULL in EVP_DigestVerifyUpdate()
480 || pctx->op.sig.algctx == NULL in EVP_DigestSignFinal()
585 && pctx->op.sig.algctx != NULL in EVP_DigestSign()
622 || pctx->op.sig.algctx == NULL in EVP_DigestVerifyFinal()
[all …]
H A Devp_enc.c41 if (ctx->algctx != NULL) { in OSSL_SAFE_MATH_SIGNED()
43 ctx->cipher->freectx(ctx->algctx); in OSSL_SAFE_MATH_SIGNED()
44 ctx->algctx = NULL; in OSSL_SAFE_MATH_SIGNED()
219 if (ctx->algctx == NULL) { in evp_cipher_init_internal()
221 if (ctx->algctx == NULL) { in evp_cipher_init_internal()
278 return ctx->cipher->einit(ctx->algctx, in evp_cipher_init_internal()
293 return ctx->cipher->dinit(ctx->algctx, in evp_cipher_init_internal()
754 ret = ctx->cipher->cfinal(ctx->algctx, out, &soutl, in EVP_EncryptFinal_ex()
1475 out->algctx = NULL; in EVP_CIPHER_CTX_copy()
1482 out->algctx = in->cipher->dupctx(in->algctx); in EVP_CIPHER_CTX_copy()
[all …]
H A Dsignature.c700 ctx->op.sig.algctx = in evp_pkey_signature_init()
702 if (ctx->op.sig.algctx == NULL) { in evp_pkey_signature_init()
715 ret = signature->sign_init(ctx->op.sig.algctx, provkey, params); in evp_pkey_signature_init()
755 signature->freectx(ctx->op.sig.algctx); in evp_pkey_signature_init()
756 ctx->op.sig.algctx = NULL; in evp_pkey_signature_init()
878 return ctx->op.sig.signature->sign_message_final(ctx->op.sig.algctx, in EVP_PKEY_sign_message_final()
900 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_sign()
908 ret = ctx->op.sig.signature->sign(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_sign()
1026 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_verify()
1034 ret = ctx->op.sig.signature->verify(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_verify()
[all …]
H A Dkem.c151 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov)); in evp_kem_init()
152 if (ctx->op.encap.algctx == NULL) { in evp_kem_init()
161 ret = kem->auth_encapsulate_init(ctx->op.encap.algctx, provkey, in evp_kem_init()
164 ret = kem->encapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init()
173 ret = kem->auth_decapsulate_init(ctx->op.encap.algctx, provkey, in evp_kem_init()
176 ret = kem->decapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init()
227 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_encapsulate()
235 return ctx->op.encap.kem->encapsulate(ctx->op.encap.algctx, in EVP_PKEY_encapsulate()
266 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_decapsulate()
270 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 Devp_local.h32 void *algctx; member
60 void *algctx; member
70 void *algctx; member
79 void *algctx; member
88 void *algctx; member
H A Dexchange.c335 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov)); in EVP_PKEY_derive_init_ex()
336 if (ctx->op.kex.algctx == NULL) { in EVP_PKEY_derive_init_ex()
341 ret = exchange->init(ctx->op.kex.algctx, provkey, params); in EVP_PKEY_derive_init_ex()
389 if (!EVP_PKEY_CTX_IS_DERIVE_OP(ctx) || ctx->op.kex.algctx == NULL) in EVP_PKEY_derive_set_peer_ex()
434 return ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey); in EVP_PKEY_derive_set_peer_ex()
520 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_derive()
523 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen, in EVP_PKEY_derive()
H A Devp_utils.c45 int name (const type *obj, void *algctx, OSSL_PARAM params[]) \
48 return obj->func(algctx, params); \
H A Devp_lib.c404 ret = ctx->cipher->ccipher(ctx->algctx, out, &outl, in EVP_Cipher()
409 ret = ctx->cipher->cupdate(ctx->algctx, out, &outl, in EVP_Cipher()
413 ret = ctx->cipher->cfinal(ctx->algctx, out, &outl, in EVP_Cipher()
536 ret = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_get_tag_length()
550 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_original_iv()
567 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_iv()
581 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_iv_noconst()
593 return evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params) > 0; in EVP_CIPHER_CTX_get_updated_iv()
617 ok = evp_do_ciph_ctx_getparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_get_num()
629 ok = evp_do_ciph_ctx_setparams(ctx->cipher, ctx->algctx, params); in EVP_CIPHER_CTX_set_num()
[all …]
H A Dmac_meth.c223 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_MAC_CTX_gettable_params()
233 return ctx->meth->settable_ctx_params(ctx->algctx, alg); in EVP_MAC_CTX_settable_params()
H A Dkdf_meth.c211 return ctx->meth->gettable_ctx_params(ctx->algctx, alg); in EVP_KDF_CTX_gettable_params()
221 return ctx->meth->settable_ctx_params(ctx->algctx, alg); in EVP_KDF_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()
/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()
/openssl/include/crypto/
H A Devp.h65 void *algctx; member
74 void *algctx; member
83 void *algctx; member
91 void *algctx; member
/openssl/test/
H A Devp_extra_test2.c1383 origin_algctx = outctx->algctx; in test_evp_md_ctx_copy2()
1385 && TEST_true(outctx->algctx == origin_algctx); in test_evp_md_ctx_copy2()
H A Ddrbgtest.c101 return (PROV_DRBG *)drbg->algctx; in DRBG_UINT()

Completed in 71 milliseconds