Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 89) sorted by relevance

1234

/openssl/crypto/evp/
H A Dpmeth_lib.c358 ctx->op.sig.signature->freectx(ctx->op.sig.algctx); in evp_pkey_ctx_free_old_ops()
363 if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL) in evp_pkey_ctx_free_old_ops()
364 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx); in evp_pkey_ctx_free_old_ops()
369 if (ctx->op.encap.algctx != NULL && ctx->op.encap.kem != NULL) in evp_pkey_ctx_free_old_ops()
370 ctx->op.encap.kem->freectx(ctx->op.encap.algctx); in evp_pkey_ctx_free_old_ops()
376 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops()
377 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops()
480 rctx->op.kex.exchange = pctx->op.kex.exchange; in EVP_PKEY_CTX_dup()
501 rctx->op.sig.signature = pctx->op.sig.signature; in EVP_PKEY_CTX_dup()
522 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup()
[all …]
H A Dm_sigver.c195 locpctx->op.sig.signature = signature; in do_sigver_init()
198 locpctx->op.sig.algctx in do_sigver_init()
200 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init()
407 || pctx->op.sig.algctx == NULL in EVP_DigestSignUpdate()
416 return pctx->op.sig.signature->digest_sign_update(pctx->op.sig.algctx, in EVP_DigestSignUpdate()
442 || pctx->op.sig.algctx == NULL in EVP_DigestVerifyUpdate()
451 return pctx->op.sig.signature->digest_verify_update(pctx->op.sig.algctx, in EVP_DigestVerifyUpdate()
490 r = pctx->op.sig.signature->digest_sign_final(pctx->op.sig.algctx, in EVP_DigestSignFinal()
590 return pctx->op.sig.signature->digest_sign(pctx->op.sig.algctx, in EVP_DigestSign()
632 r = pctx->op.sig.signature->digest_verify_final(pctx->op.sig.algctx, in EVP_DigestVerifyFinal()
[all …]
H A Dsignature.c700 ctx->op.sig.algctx = in evp_pkey_signature_init()
756 ctx->op.sig.algctx = NULL; in evp_pkey_signature_init()
856 return ctx->op.sig.signature->sign_message_update(ctx->op.sig.algctx, in EVP_PKEY_sign_message_update()
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()
984 return ctx->op.sig.signature->verify_message_update(ctx->op.sig.algctx, in EVP_PKEY_verify_message_update()
1006 return ctx->op.sig.signature->verify_message_final(ctx->op.sig.algctx); in EVP_PKEY_verify_message_final()
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.c150 ctx->op.encap.kem = kem; in evp_kem_init()
151 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()
[all …]
H A Dexchange.c332 ctx->op.kex.exchange = exchange; in EVP_PKEY_derive_init_ex()
335 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()
392 if (ctx->op.kex.exchange->set_peer == NULL) { in EVP_PKEY_derive_set_peer_ex()
418 EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange), 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 Dasymcipher.c144 ctx->op.ciph.cipher = cipher; in evp_pkey_asym_cipher_init()
145 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 Dkeymgmt_lib.c100 OP_CACHE_ELEM *op; in evp_keymgmt_util_export_to_provider() local
131 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt, selection); in evp_keymgmt_util_export_to_provider()
132 if (op != NULL && op->keymgmt != NULL) { in evp_keymgmt_util_export_to_provider()
133 void *ret = op->keydata; in evp_keymgmt_util_export_to_provider()
177 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt, selection); in evp_keymgmt_util_export_to_provider()
178 if (op != NULL && op->keydata != NULL) { in evp_keymgmt_util_export_to_provider()
179 void *ret = op->keydata; in evp_keymgmt_util_export_to_provider()
H A Ddigest.c167 && ctx->pctx->op.sig.algctx != NULL) { in evp_md_init_internal()
355 || ctx->pctx->op.sig.signature == NULL)) { in evp_md_init_internal()
397 && ctx->pctx->op.sig.algctx != NULL) { in EVP_DigestUpdate()
783 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_set_params()
785 return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_set_params()
818 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_settable_params()
821 pctx->op.sig.algctx); in EVP_MD_CTX_settable_params()
839 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_get_params()
841 return pctx->op.sig.signature->get_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_get_params()
874 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_gettable_params()
[all …]
/openssl/test/
H A Dquic_fc_test.c225 unsigned char op; member
482 const struct rx_test_op *op = script; in run_rxfc_script() local
489 for (; op->op != RX_OPC_END; ++op) { in run_rxfc_script()
490 switch (op->op) { in run_rxfc_script()
493 op->arg0, op->arg1, in run_rxfc_script()
507 op->arg0, op->arg1, in run_rxfc_script()
542 op->arg0)) in run_rxfc_script()
550 op->arg0)) in run_rxfc_script()
557 op->arg0)) in run_rxfc_script()
565 op->arg0)) in run_rxfc_script()
[all …]
H A Dquic_record_test.c38 unsigned char op; member
1810 for (; op->op != RX_TEST_OP_END; ++op) in rx_run_script()
1811 switch (op->op) { in rx_run_script()
1853 op->buf, op->buf_len, in rx_run_script()
1868 op->buf, op->buf_len)) in rx_run_script()
1872 op->buf, op->buf_len, 1))) in rx_run_script()
3007 unsigned char op; member
3623 for (; op->op != TX_TEST_OP_END; ++op) in tx_run_script()
3624 switch (op->op) { in tx_run_script()
3628 op->buf, op->buf_len))) in tx_run_script()
[all …]
H A Dquic_txp_test.c1296 const struct script_op *op; in run_script() local
1303 for (op = script, opn = 0; op->opcode != OPK_END; ++op, ++opn) { in run_script()
1304 switch (op->opcode) { in run_script()
1343 if (!TEST_uint64_t_eq(h.frame_type, op->arg0)) in run_script()
1348 op->buf, (size_t)op->arg0)) in run_script()
1357 if (!TEST_true(op->check_func(&h))) in run_script()
1452 NULL, op->buf, op->buf_len))) in run_script()
1457 NULL, op->buf, op->buf_len))) in run_script()
1475 op->buf, op->buf_len, in run_script()
1479 if (!TEST_size_t_eq(consumed, op->buf_len)) in run_script()
[all …]
H A Dconstant_time_test.c61 static int test_binary_op(unsigned int (*op) (unsigned int a, unsigned int b), in test_binary_op()
65 if (is_true && !TEST_uint_eq(op(a, b), CONSTTIME_TRUE)) in test_binary_op()
67 if (!is_true && !TEST_uint_eq(op(a, b), CONSTTIME_FALSE)) in test_binary_op()
73 char (*op) (unsigned int a, unsigned int b), in test_binary_op_8()
77 if (is_true && !TEST_uint_eq(op(a, b), CONSTTIME_TRUE_8)) in test_binary_op_8()
79 if (!is_true && !TEST_uint_eq(op(a, b), CONSTTIME_FALSE_8)) in test_binary_op_8()
84 static int test_binary_op_s(size_t (*op) (size_t a, size_t b), in test_binary_op_s()
88 if (is_true && !TEST_size_t_eq(op(a, b), CONSTTIME_TRUE_S)) in test_binary_op_s()
90 if (!is_true && !TEST_uint_eq(op(a, b), CONSTTIME_FALSE_S)) in test_binary_op_s()
95 static int test_binary_op_64(uint64_t (*op)(uint64_t a, uint64_t b), in test_binary_op_64()
[all …]
H A Dquic_multistream_test.c122 uint32_t op; member
1123 switch (op->op) { in run_script_worker()
1146 (unsigned long)op->op); in run_script_worker()
1151 switch (op->op) { in run_script_worker()
1294 r = SSL_write_ex(c_tgt, op->arg0, op->arg1, &bytes_written); in run_script_worker()
1310 r = SSL_write_ex2(c_tgt, op->arg0, op->arg1, op->arg2, in run_script_worker()
1327 op->arg0, op->arg1, in run_script_worker()
1387 && !TEST_mem_eq(tmp_buf, op->arg1, op->arg0, op->arg1)) in run_script_worker()
1418 && !TEST_mem_eq(tmp_buf, op->arg1, op->arg0, op->arg1)) in run_script_worker()
1734 if (!TEST_true(helper_set_s_stream(h, op->stream_name, op->arg2))) in run_script_worker()
[all …]
/openssl/doc/designs/ddd/
H A Dddd-06-mem-uv.c260 if (op->prev) in enqueue_upper_write_op()
261 op->prev->next = op; in enqueue_upper_write_op()
344 free(op); in handle_pending_writes()
418 free(op); in net_write_done()
440 if (!op) in flush_write_buf()
445 op->w.data = op; in flush_write_buf()
456 free(op); in flush_write_buf()
616 op->cb(conn, -rcx, op->cb_arg); in try_write()
625 op->cb(conn, 0, op->cb_arg); in try_write()
634 if (!op) in write_deferred()
[all …]
/openssl/test/testutil/
H A Dtests.c28 const char *op) in test_fail_message_prefix() argument
33 if (op != NULL) { in test_fail_message_prefix()
35 test_printf_stderr("'%s %s %s' failed", left, op, right); in test_fail_message_prefix()
37 test_printf_stderr("'%s'", op); in test_fail_message_prefix()
70 const char *right, const char *op,
79 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_message_va()
90 const char *op, const char *fmt, ...) in test_fail_message() argument
210 #define DEFINE_COMPARISON(type, name, opname, op, fmt, cast) \ argument
215 if (t1 op t2) \
217 test_fail_message(NULL, file, line, #type, s1, s2, #op, \
[all …]
H A Dtu_local.h24 const char *op);
29 const char *op, const char *m1, size_t l1,
35 const char *op,
40 const char *op, const BIGNUM *bn);
45 const char *op,
H A Dformat_output.c41 const char *op, const char *m1, size_t l1, in test_fail_string_common() argument
51 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_string_common()
130 const char *op, const char *m1, size_t l1, in test_fail_string_message() argument
133 test_fail_string_common(prefix, file, line, type, left, right, op, in test_fail_string_message()
268 const char *op, in test_fail_bignum_common() argument
280 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_bignum_common()
369 const char *op, in test_fail_bignum_message() argument
379 const char *op, const BIGNUM *bn) in test_fail_bignum_mono_message() argument
426 const char *op, in test_fail_memory_common() argument
521 const char *op, in test_fail_memory_message() argument
[all …]
/openssl/crypto/perlasm/
H A Dx86_64-xlate.pl229 $self->{op} = $1;
235 $self->{op} = $1;
246 $self->{op} = $1;
278 if ($self->{op} eq "ret") {
279 $self->{op} = "";
286 $self->{op} .= $self->{sz};
288 $self->{op} = "\tDQ";
290 $self->{op};
294 my ($self, $op) = @_;
295 $self->{op}=$op if (defined($op));
[all …]
H A Dppc-xlate.pl279 my ($f, $vrt, $ra, $rb, $op) = @_;
280 " .long ".sprintf "0x%X",(31<<26)|($vrt<<21)|($ra<<16)|($rb<<11)|($op*2+1);
307 my ($f, $vrt, $vra, $vrb, $op) = vsr2vr_args(3, @_);
308 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|$op;
311 my ($f, $vrt, $vra, $vrb, $vrc, $op) = @_;
312 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|($vrc<<6)|$op;
315 my ($f, $vrt, $vra, $vrb, $vrc, $op) = vsr2vr_args(4, @_);
316 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|($vrc<<6)|$op;
/openssl/crypto/
H A Dthreads_none.c214 int CRYPTO_atomic_add64(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_add64() argument
217 *val += op; in CRYPTO_atomic_add64()
223 int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_and() argument
226 *val &= op; in CRYPTO_atomic_and()
232 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument
235 *val |= op; in CRYPTO_atomic_or()
H A Dthreads_win.c633 int CRYPTO_atomic_add64(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_add64() argument
639 *val += op; in CRYPTO_atomic_add64()
647 *ret = (uint64_t)InterlockedAdd64((LONG64 volatile *)val, (LONG64)op); in CRYPTO_atomic_add64()
652 int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_and() argument
658 *val &= op; in CRYPTO_atomic_and()
666 *ret = (uint64_t)InterlockedAnd64((LONG64 volatile *)val, (LONG64)op) & op; in CRYPTO_atomic_and()
671 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument
677 *val |= op; in CRYPTO_atomic_or()
685 *ret = (uint64_t)InterlockedOr64((LONG64 volatile *)val, (LONG64)op) | op; in CRYPTO_atomic_or()
/openssl/providers/implementations/kem/
H A Drsa_kem.c57 int op; member
95 prsactx->op = KEM_OP_UNDEFINED; in rsakem_newctx()
202 int op; in rsakem_set_ctx_params() local
216 op = rsakem_opname2id(p->data); in rsakem_set_ctx_params()
217 if (op < 0) in rsakem_set_ctx_params()
219 prsactx->op = op; in rsakem_set_ctx_params()
406 switch (prsactx->op) { in rsakem_generate()
422 switch (prsactx->op) { in rsakem_recover()
/openssl/crypto/asn1/
H A Dasn1_parse.c97 const unsigned char *p, *ep, *tot, *op, *opp; in asn1_parse2() local
117 op = p; in asn1_parse2()
123 hl = (p - op); in asn1_parse2()
128 if (!asn1_print_info(bp, (long)offset + (long)(op - *pp), depth, in asn1_parse2()
185 opp = op; in asn1_parse2()
208 opp = op; in asn1_parse2()
264 opp = op; in asn1_parse2()
290 opp = op; in asn1_parse2()
326 const unsigned char *tmp = op + hl; in asn1_parse2()
/openssl/crypto/objects/
H A Dobj_dat.c389 const unsigned int *op; in ossl_obj_obj2nid() local
400 if (op != NULL) in ossl_obj_obj2nid()
401 return nid_objs[*op].nid; in ossl_obj_obj2nid()
426 ASN1_OBJECT *op = NULL; in OBJ_txt2obj() local
465 return op; in OBJ_txt2obj()
641 const unsigned int *op; in OBJ_ln2nid() local
646 if (op != NULL) in OBJ_ln2nid()
647 return nid_objs[*op].nid; in OBJ_ln2nid()
668 const unsigned int *op; in OBJ_sn2nid() local
673 if (op != NULL) in OBJ_sn2nid()
[all …]
/openssl/util/perl/OpenSSL/
H A DOrdinals.pm391 my $op = !(defined $1 && $1 eq '!');
394 if ($def =~ m{^_?WIN32$}) { $platforms{$&} = $op; }
395 if ($def =~ m{^__FreeBSD__$}) { $platforms{$&} = $op; }
400 if ($def =~ m{^OPENSSL_SYS_}) { $platforms{$'} = $op; }
413 my $op = !(defined $1 && $1 eq '!');
416 if ($def =~ m{^ZLIB$}) { $features{$&} = $op; }
417 if ($def =~ m{^BROTLI$}) { $features{$&} = $op; }
418 if ($def =~ m{^ZSTD$}) { $features{$&} = $op; }
419 if ($def =~ m{^OPENSSL_USE_}) { $features{$'} = $op; }
420 if ($def =~ m{^OPENSSL_NO_}) { $features{$'} = !$op; }

Completed in 122 milliseconds

1234