/openssl/crypto/evp/ |
H A D | pmeth_lib.c | 362 ctx->op.sig.signature->freectx(ctx->op.sig.algctx); in evp_pkey_ctx_free_old_ops() 367 if (ctx->op.kex.algctx != NULL && ctx->op.kex.exchange != NULL) in evp_pkey_ctx_free_old_ops() 368 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx); in evp_pkey_ctx_free_old_ops() 373 if (ctx->op.encap.algctx != NULL && ctx->op.encap.kem != NULL) in evp_pkey_ctx_free_old_ops() 374 ctx->op.encap.kem->freectx(ctx->op.encap.algctx); in evp_pkey_ctx_free_old_ops() 380 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops() 381 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops() 485 rctx->op.kex.exchange = pctx->op.kex.exchange; in EVP_PKEY_CTX_dup() 506 rctx->op.sig.signature = pctx->op.sig.signature; in EVP_PKEY_CTX_dup() 527 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup() [all …]
|
H A D | m_sigver.c | 195 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() 594 return pctx->op.sig.signature->digest_sign(pctx->op.sig.algctx, in EVP_DigestSign() 636 r = pctx->op.sig.signature->digest_verify_final(pctx->op.sig.algctx, in EVP_DigestVerifyFinal() [all …]
|
H A D | signature.c | 711 ctx->op.sig.algctx = in evp_pkey_signature_init() 767 ctx->op.sig.algctx = NULL; in evp_pkey_signature_init() 867 return ctx->op.sig.signature->sign_message_update(ctx->op.sig.algctx, in EVP_PKEY_sign_message_update() 889 return ctx->op.sig.signature->sign_message_final(ctx->op.sig.algctx, in EVP_PKEY_sign_message_final() 911 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_sign() 919 ret = ctx->op.sig.signature->sign(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_sign() 995 return ctx->op.sig.signature->verify_message_update(ctx->op.sig.algctx, in EVP_PKEY_verify_message_update() 1017 return ctx->op.sig.signature->verify_message_final(ctx->op.sig.algctx); in EVP_PKEY_verify_message_final() 1037 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_verify() 1045 ret = ctx->op.sig.signature->verify(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_verify() [all …]
|
H A D | kem.c | 160 ctx->op.encap.kem = kem; in evp_kem_init() 161 ctx->op.encap.algctx = kem->newctx(ossl_provider_ctx(kem->prov)); in evp_kem_init() 162 if (ctx->op.encap.algctx == NULL) { in evp_kem_init() 171 ret = kem->auth_encapsulate_init(ctx->op.encap.algctx, provkey, in evp_kem_init() 174 ret = kem->encapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init() 183 ret = kem->auth_decapsulate_init(ctx->op.encap.algctx, provkey, in evp_kem_init() 186 ret = kem->decapsulate_init(ctx->op.encap.algctx, provkey, params); in evp_kem_init() 237 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_encapsulate() 245 return ctx->op.encap.kem->encapsulate(ctx->op.encap.algctx, in EVP_PKEY_encapsulate() 276 if (ctx->op.encap.algctx == NULL) { in EVP_PKEY_decapsulate() [all …]
|
H A D | exchange.c | 343 ctx->op.kex.exchange = exchange; in EVP_PKEY_derive_init_ex() 346 ctx->op.kex.algctx = exchange->newctx(ossl_provider_ctx(exchange->prov)); in EVP_PKEY_derive_init_ex() 347 if (ctx->op.kex.algctx == NULL) { in EVP_PKEY_derive_init_ex() 352 ret = exchange->init(ctx->op.kex.algctx, provkey, params); in EVP_PKEY_derive_init_ex() 400 if (!EVP_PKEY_CTX_IS_DERIVE_OP(ctx) || ctx->op.kex.algctx == NULL) in EVP_PKEY_derive_set_peer_ex() 403 if (ctx->op.kex.exchange->set_peer == NULL) { in EVP_PKEY_derive_set_peer_ex() 429 EVP_KEYEXCH_get0_provider(ctx->op.kex.exchange), in EVP_PKEY_derive_set_peer_ex() 445 return ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey); in EVP_PKEY_derive_set_peer_ex() 529 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_derive() 532 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen, in EVP_PKEY_derive()
|
H A D | asymcipher.c | 154 ctx->op.ciph.cipher = cipher; in evp_pkey_asym_cipher_init() 155 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init() 156 if (ctx->op.ciph.algctx == NULL) { in evp_pkey_asym_cipher_init() 169 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 177 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 253 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_encrypt() 256 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt() 295 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_decrypt() 298 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_decrypt()
|
H A D | keymgmt_lib.c | 100 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()
|
/openssl/test/ |
H A D | quic_fc_test.c | 225 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 D | quic_record_test.c | 38 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 D | quic_txp_test.c | 1303 const struct script_op *op; in run_script() local 1310 for (op = script, opn = 0; op->opcode != OPK_END; ++op, ++opn) { in run_script() 1311 switch (op->opcode) { in run_script() 1350 if (!TEST_uint64_t_eq(h.frame_type, op->arg0)) in run_script() 1355 op->buf, (size_t)op->arg0)) in run_script() 1364 if (!TEST_true(op->check_func(&h))) in run_script() 1459 NULL, op->buf, op->buf_len))) in run_script() 1464 NULL, op->buf, op->buf_len))) in run_script() 1482 op->buf, op->buf_len, in run_script() 1486 if (!TEST_size_t_eq(consumed, op->buf_len)) in run_script() [all …]
|
H A D | constant_time_test.c | 61 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 D | quic_multistream_test.c | 122 uint32_t op; member 1128 switch (op->op) { in run_script_worker() 1151 (unsigned long)op->op); in run_script_worker() 1156 switch (op->op) { in run_script_worker() 1299 r = SSL_write_ex(c_tgt, op->arg0, op->arg1, &bytes_written); in run_script_worker() 1315 r = SSL_write_ex2(c_tgt, op->arg0, op->arg1, op->arg2, in run_script_worker() 1332 op->arg0, op->arg1, in run_script_worker() 1392 && !TEST_mem_eq(tmp_buf, op->arg1, op->arg0, op->arg1)) in run_script_worker() 1423 && !TEST_mem_eq(tmp_buf, op->arg1, op->arg0, op->arg1)) in run_script_worker() 1739 if (!TEST_true(helper_set_s_stream(h, op->stream_name, op->arg2))) in run_script_worker() [all …]
|
/openssl/doc/designs/ddd/ |
H A D | ddd-06-mem-uv.c | 260 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 D | tests.c | 28 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 211 #define DEFINE_COMPARISON(type, name, opname, op, fmt, cast) \ argument 216 if (t1 op t2) \ 218 test_fail_message(NULL, file, line, #type, s1, s2, #op, \ [all …]
|
H A D | tu_local.h | 24 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 D | format_output.c | 41 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 D | x86_64-xlate.pl | 229 $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 D | ppc-xlate.pl | 279 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 D | threads_none.c | 214 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 D | threads_win.c | 614 int CRYPTO_atomic_add64(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_add64() argument 620 *val += op; in CRYPTO_atomic_add64() 628 *ret = (uint64_t)InterlockedAdd64((LONG64 volatile *)val, (LONG64)op); in CRYPTO_atomic_add64() 633 int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_and() argument 639 *val &= op; in CRYPTO_atomic_and() 647 *ret = (uint64_t)InterlockedAnd64((LONG64 volatile *)val, (LONG64)op) & op; in CRYPTO_atomic_and() 652 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument 658 *val |= op; in CRYPTO_atomic_or() 666 *ret = (uint64_t)InterlockedOr64((LONG64 volatile *)val, (LONG64)op) | op; in CRYPTO_atomic_or()
|
H A D | threads_pthread.c | 758 *ret = __atomic_add_fetch(val, op, __ATOMIC_ACQ_REL); in CRYPTO_atomic_add64() 764 *ret = atomic_add_64_nv(val, op); in CRYPTO_atomic_add64() 770 *val += op; in CRYPTO_atomic_add64() 779 int CRYPTO_atomic_and(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_and() argument 784 *ret = __atomic_and_fetch(val, op, __ATOMIC_ACQ_REL); in CRYPTO_atomic_and() 790 *ret = atomic_and_64_nv(val, op); in CRYPTO_atomic_and() 796 *val &= op; in CRYPTO_atomic_and() 805 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument 810 *ret = __atomic_or_fetch(val, op, __ATOMIC_ACQ_REL); in CRYPTO_atomic_or() 816 *ret = atomic_or_64_nv(val, op); in CRYPTO_atomic_or() [all …]
|
/openssl/providers/implementations/kem/ |
H A D | ml_kem_kem.c | 37 int op; member 49 ctx->op = 0; in ml_kem_newctx() 62 static int ml_kem_init(void *vctx, int op, void *key, in ml_kem_init() argument 70 ctx->op = op; in ml_kem_init() 106 if (ctx->op == EVP_PKEY_OP_DECAPSULATE && ctx->entropy != NULL) { in ml_kem_set_ctx_params() 116 if (ctx->op == EVP_PKEY_OP_ENCAPSULATE in ml_kem_set_ctx_params()
|
H A D | rsa_kem.c | 57 int op; member 95 prsactx->op = KEM_OP_RSASVE; 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 D | asn1_parse.c | 97 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 D | obj_dat.c | 389 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 …]
|