HomeSort by: relevance | last modified time | path
    Searched refs:algctx (Results 1 - 25 of 41) sorted by relevancy

1 2

  /src/crypto/external/apache2/openssl/dist/crypto/evp/
kdf_lib.c 32 || (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL
36 kdf->freectx(ctx->algctx);
49 ctx->meth->freectx(ctx->algctx);
50 ctx->algctx = NULL;
59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL)
73 dst->algctx = src->meth->dupctx(src->algctx);
74 if (dst->algctx == NULL) {
117 ctx->meth->reset(ctx->algctx);
130 && ctx->meth->get_ctx_params(ctx->algctx, params)
    [all...]
mac_lib.c 28 if ((ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL
30 mac->freectx(ctx->algctx);
43 ctx->meth->freectx(ctx->algctx);
44 ctx->algctx = NULL;
54 if (src->algctx == NULL)
68 dst->algctx = src->meth->dupctx(src->algctx);
69 if (dst->algctx == NULL) {
86 if (ctx->algctx != NULL) {
91 if (ctx->meth->get_ctx_params(ctx->algctx, params)
    [all...]
evp_utils.c 45 int name(const type *obj, void *algctx, OSSL_PARAM params[]) \
48 return obj->func(algctx, params); \
evp_rand.c 97 return rand->meth->enable_locking(rand->algctx);
106 return rand->meth->lock(rand->algctx);
114 rand->meth->unlock(rand->algctx);
364 parent_ctx = parent->algctx;
367 if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx,
372 rand->freectx(ctx->algctx);
395 ctx->meth->freectx(ctx->algctx);
396 ctx->algctx = NULL;
411 return ctx->meth->get_ctx_params(ctx->algctx, params);
429 return ctx->meth->set_ctx_params(ctx->algctx, params)
    [all...]
digest.c 46 if (ctx->algctx != NULL) {
48 ctx->digest->freectx(ctx->algctx);
49 ctx->algctx = NULL;
145 if (ctx->algctx != NULL) {
151 ctx->digest->freectx(ctx->algctx);
152 ctx->algctx = NULL;
167 && ctx->pctx->op.sig.algctx != NULL) {
235 /* If we were using provided hash before, cleanup algctx */
289 if (ctx->algctx == NULL) {
290 ctx->algctx = ctx->digest->newctx(ossl_provider_ctx(type->prov))
    [all...]
evp_enc.c 41 if (ctx->algctx != NULL) {
43 ctx->cipher->freectx(ctx->algctx);
44 ctx->algctx = NULL;
227 if (ctx->algctx == NULL) {
228 ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov));
229 if (ctx->algctx == NULL) {
290 return ctx->cipher->einit_skey(ctx->algctx, NULL,
300 return ctx->cipher->einit(ctx->algctx,
316 return ctx->cipher->dinit_skey(ctx->algctx, NULL,
326 return ctx->cipher->dinit(ctx->algctx,
    [all...]
pmeth_lib.c 144 && ctx->op.kex.algctx != NULL)
146 && ctx->op.sig.algctx != NULL)
148 && ctx->op.ciph.algctx != NULL)
152 && ctx->op.encap.algctx != NULL))
361 if (ctx->op.sig.algctx != NULL && ctx->op.sig.signature != NULL)
362 ctx->op.sig.signature->freectx(ctx->op.sig.algctx);
364 ctx->op.sig.algctx = NULL;
367 if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL)
368 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx);
370 ctx->op.kex.algctx = NULL
    [all...]
kem.c 160 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov));
161 if (ctx->op.encap.algctx == NULL) {
170 ret = kem->auth_encapsulate_init(ctx->op.encap.algctx, provkey,
173 ret = kem->encapsulate_init(ctx->op.encap.algctx, provkey, params);
182 ret = kem->auth_decapsulate_init(ctx->op.encap.algctx, provkey,
185 ret = kem->decapsulate_init(ctx->op.encap.algctx, provkey, params);
236 if (ctx->op.encap.algctx == NULL) {
244 return ctx->op.encap.kem->encapsulate(ctx->op.encap.algctx,
275 if (ctx->op.encap.algctx == NULL) {
279 return ctx->op.encap.kem->decapsulate(ctx->op.encap.algctx,
    [all...]
signature.c 781 ctx->op.sig.algctx = signature->newctx(ossl_provider_ctx(signature->prov), ctx->propquery);
782 if (ctx->op.sig.algctx == NULL) {
796 ret = signature->sign_init(ctx->op.sig.algctx, provkey, params);
805 ret = signature->sign_message_init(ctx->op.sig.algctx, provkey, params);
814 ret = signature->verify_init(ctx->op.sig.algctx, provkey, params);
823 ret = signature->verify_message_init(ctx->op.sig.algctx, provkey, params);
832 ret = signature->verify_recover_init(ctx->op.sig.algctx, provkey, params);
840 signature->freectx(ctx->op.sig.algctx);
841 ctx->op.sig.algctx = NULL;
948 ret = signature->sign_message_update(ctx->op.sig.algctx, in, inlen)
    [all...]
asymcipher.c 155 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov));
156 if (ctx->op.ciph.algctx == NULL) {
171 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params);
180 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params);
258 if (ctx->op.ciph.algctx == NULL)
264 ret = cipher->encrypt(ctx->op.ciph.algctx, out, outlen, (out == NULL ? 0 : *outlen), in, inlen);
307 if (ctx->op.ciph.algctx == NULL)
313 ret = cipher->decrypt(ctx->op.ciph.algctx, out, outlen, (out == NULL ? 0 : *outlen), in, inlen);
m_sigver.c 79 || locpctx->op.sig.algctx == NULL))
196 locpctx->op.sig.algctx
198 if (locpctx->op.sig.algctx == NULL) {
260 ret = signature->digest_verify_init(locpctx->op.sig.algctx,
268 ret = signature->digest_sign_init(locpctx->op.sig.algctx,
415 || pctx->op.sig.algctx == NULL
428 ret = signature->digest_sign_update(pctx->op.sig.algctx, data, dsize);
461 || pctx->op.sig.algctx == NULL
474 ret = signature->digest_verify_update(pctx->op.sig.algctx, data, dsize);
509 || pctx->op.sig.algctx == NUL
    [all...]
exchange.c 342 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov));
343 if (ctx->op.kex.algctx == NULL) {
348 ret = exchange->init(ctx->op.kex.algctx, provkey, params);
396 if (!EVP_PKEY_CTX_IS_DERIVE_OP(ctx) || ctx->op.kex.algctx == NULL)
440 ret = ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey);
528 if (ctx->op.kex.algctx == NULL)
531 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen,
evp_local.h 31 void *algctx; member in struct:evp_md_ctx_st
60 void *algctx; member in struct:evp_cipher_ctx_st
70 void *algctx; member in struct:evp_mac_ctx_st
79 void *algctx; member in struct:evp_kdf_ctx_st
88 void *algctx; member in struct:evp_rand_ctx_st
  /src/crypto/external/bsd/openssl/dist/crypto/evp/
kdf_lib.c 32 || (ctx->algctx = kdf->newctx(ossl_provider_ctx(kdf->prov))) == NULL
36 kdf->freectx(ctx->algctx);
49 ctx->meth->freectx(ctx->algctx);
50 ctx->algctx = NULL;
59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL)
75 dst->algctx = src->meth->dupctx(src->algctx);
76 if (dst->algctx == NULL) {
119 ctx->meth->reset(ctx->algctx);
132 && ctx->meth->get_ctx_params(ctx->algctx, params)
    [all...]
mac_lib.c 27 || (ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL
31 mac->freectx(ctx->algctx);
44 ctx->meth->freectx(ctx->algctx);
45 ctx->algctx = NULL;
55 if (src->algctx == NULL)
71 dst->algctx = src->meth->dupctx(src->algctx);
72 if (dst->algctx == NULL) {
89 if (ctx->algctx != NULL) {
94 if (ctx->meth->get_ctx_params(ctx->algctx, params)
    [all...]
digest.c 45 if (ctx->algctx != NULL) {
47 ctx->digest->freectx(ctx->algctx);
48 ctx->algctx = NULL;
154 && ctx->pctx->op.sig.algctx != NULL) {
172 if (ctx->algctx != NULL) {
178 ctx->digest->freectx(ctx->algctx);
179 ctx->algctx = NULL;
263 if (ctx->algctx != NULL && ctx->digest != NULL && ctx->digest != type) {
265 ctx->digest->freectx(ctx->algctx);
266 ctx->algctx = NULL
    [all...]
m_sigver.c 54 if (ctx->algctx != NULL) {
60 ctx->digest->freectx(ctx->algctx);
61 ctx->algctx = NULL;
86 || locpctx->op.sig.algctx == NULL))
205 locpctx->op.sig.algctx
207 if (locpctx->op.sig.algctx == NULL) {
266 ret = signature->digest_verify_init(locpctx->op.sig.algctx,
273 ret = signature->digest_sign_init(locpctx->op.sig.algctx,
413 || pctx->op.sig.algctx == NULL
422 return pctx->op.sig.signature->digest_sign_update(pctx->op.sig.algctx,
    [all...]
evp_utils.c 45 int name (const type *obj, void *algctx, OSSL_PARAM params[]) \
48 return obj->func(algctx, params); \
evp_rand.c 95 return rand->meth->enable_locking(rand->algctx);
104 return rand->meth->lock(rand->algctx);
112 rand->meth->unlock(rand->algctx);
354 parent_ctx = parent->algctx;
357 if ((ctx->algctx = rand->newctx(ossl_provider_ctx(rand->prov), parent_ctx,
361 rand->freectx(ctx->algctx);
385 ctx->meth->freectx(ctx->algctx);
386 ctx->algctx = NULL;
401 return ctx->meth->get_ctx_params(ctx->algctx, params);
419 return ctx->meth->set_ctx_params(ctx->algctx, params)
    [all...]
evp_enc.c 38 if (ctx->algctx != NULL) {
40 ctx->cipher->freectx(ctx->algctx);
41 ctx->algctx = NULL;
209 if (ctx->algctx == NULL) {
210 ctx->algctx = ctx->cipher->newctx(ossl_provider_ctx(cipher->prov));
211 if (ctx->algctx == NULL) {
268 return ctx->cipher->einit(ctx->algctx,
283 return ctx->cipher->dinit(ctx->algctx,
684 ret = ctx->cipher->cupdate(ctx->algctx, out, &soutl,
745 ret = ctx->cipher->cfinal(ctx->algctx, out, &soutl
    [all...]
pmeth_lib.c 166 && ctx->op.kex.algctx != NULL)
168 && ctx->op.sig.algctx != NULL)
170 && ctx->op.ciph.algctx != NULL)
174 && ctx->op.encap.algctx != NULL))
381 if (ctx->op.sig.algctx != NULL && ctx->op.sig.signature != NULL)
382 ctx->op.sig.signature->freectx(ctx->op.sig.algctx);
384 ctx->op.sig.algctx = NULL;
387 if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL)
388 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx);
390 ctx->op.kex.algctx = NULL
    [all...]
signature.c 519 ctx->op.sig.algctx =
521 if (ctx->op.sig.algctx == NULL) {
534 ret = signature->sign_init(ctx->op.sig.algctx, provkey, params);
542 ret = signature->verify_init(ctx->op.sig.algctx, provkey, params);
550 ret = signature->verify_recover_init(ctx->op.sig.algctx, provkey,
559 signature->freectx(ctx->op.sig.algctx);
560 ctx->op.sig.algctx = NULL;
646 if (ctx->op.sig.algctx == NULL)
654 ret = ctx->op.sig.signature->sign(ctx->op.sig.algctx, sig, siglen,
695 if (ctx->op.sig.algctx == NULL
    [all...]
asymcipher.c 145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov));
146 if (ctx->op.ciph.algctx == NULL) {
159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params);
167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params);
243 if (ctx->op.ciph.algctx == NULL)
246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen,
285 if (ctx->op.ciph.algctx == NULL)
288 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen,
kem.c 138 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov));
139 if (ctx->op.encap.algctx == NULL) {
152 ret = kem->encapsulate_init(ctx->op.encap.algctx, provkey, params);
160 ret = kem->decapsulate_init(ctx->op.encap.algctx, provkey, params);
198 if (ctx->op.encap.algctx == NULL) {
206 return ctx->op.encap.kem->encapsulate(ctx->op.encap.algctx,
229 if (ctx->op.encap.algctx == NULL) {
233 return ctx->op.encap.kem->decapsulate(ctx->op.encap.algctx,
exchange.c 336 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov));
337 if (ctx->op.kex.algctx == NULL) {
342 ret = exchange->init(ctx->op.kex.algctx, provkey, params);
390 if (!EVP_PKEY_CTX_IS_DERIVE_OP(ctx) || ctx->op.kex.algctx == NULL)
433 return ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey);
519 if (ctx->op.kex.algctx == NULL)
522 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen,

Completed in 38 milliseconds

1 2