/openssl-master/crypto/evp/ |
A D | pmeth_lib.c | 381 ctx->op.sig.signature->freectx(ctx->op.sig.algctx); in evp_pkey_ctx_free_old_ops() 387 ctx->op.kex.exchange->freectx(ctx->op.kex.algctx); in evp_pkey_ctx_free_old_ops() 393 ctx->op.encap.kem->freectx(ctx->op.encap.algctx); in evp_pkey_ctx_free_old_ops() 400 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops() 505 rctx->op.kex.exchange = pctx->op.kex.exchange; in EVP_PKEY_CTX_dup() 513 = pctx->op.kex.exchange->dupctx(pctx->op.kex.algctx); in EVP_PKEY_CTX_dup() 523 rctx->op.sig.signature = pctx->op.sig.signature; in EVP_PKEY_CTX_dup() 541 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup() 549 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup() 559 rctx->op.encap.kem = pctx->op.encap.kem; in EVP_PKEY_CTX_dup() [all …]
|
A D | m_sigver.c | 202 locpctx->op.sig.signature = signature; in do_sigver_init() 205 locpctx->op.sig.algctx in do_sigver_init() 207 if (locpctx->op.sig.algctx == NULL) { in do_sigver_init() 422 return pctx->op.sig.signature->digest_sign_update(pctx->op.sig.algctx, in EVP_DigestSignUpdate() 452 return pctx->op.sig.signature->digest_verify_update(pctx->op.sig.algctx, in EVP_DigestVerifyUpdate() 481 return pctx->op.sig.signature->digest_sign_final(pctx->op.sig.algctx, in EVP_DigestSignFinal() 488 r = dctx->op.sig.signature->digest_sign_final(dctx->op.sig.algctx, in EVP_DigestSignFinal() 577 return pctx->op.sig.signature->digest_sign(pctx->op.sig.algctx, in EVP_DigestSign() 608 return pctx->op.sig.signature->digest_verify_final(pctx->op.sig.algctx, in EVP_DigestVerifyFinal() 614 r = dctx->op.sig.signature->digest_verify_final(dctx->op.sig.algctx, in EVP_DigestVerifyFinal() [all …]
|
A D | signature.c | 517 ctx->op.sig.signature = signature; in evp_pkey_signature_init() 518 ctx->op.sig.algctx = in evp_pkey_signature_init() 520 if (ctx->op.sig.algctx == NULL) { in evp_pkey_signature_init() 558 signature->freectx(ctx->op.sig.algctx); in evp_pkey_signature_init() 559 ctx->op.sig.algctx = NULL; in evp_pkey_signature_init() 645 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_sign() 648 ret = ctx->op.sig.signature->sign(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_sign() 689 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_verify() 692 ret = ctx->op.sig.signature->verify(ctx->op.sig.algctx, sig, siglen, in EVP_PKEY_verify() 732 if (ctx->op.sig.algctx == NULL) in EVP_PKEY_verify_recover() [all …]
|
A D | kem.c | 137 ctx->op.encap.kem = kem; in evp_kem_init() 138 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()
|
A D | asymcipher.c | 144 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()
|
A D | exchange.c | 335 ctx->op.kex.exchange = exchange; in EVP_PKEY_derive_init_ex() 336 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() 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() 415 return ctx->op.kex.exchange->set_peer(ctx->op.kex.algctx, provkey); in EVP_PKEY_derive_set_peer_ex() 501 if (ctx->op.kex.algctx == NULL) in EVP_PKEY_derive() 504 ret = ctx->op.kex.exchange->derive(ctx->op.kex.algctx, key, pkeylen, in EVP_PKEY_derive()
|
A D | digest.c | 137 && ctx->pctx->op.sig.algctx != NULL) { in evp_md_init_internal() 328 || ctx->pctx->op.sig.signature == NULL)) { in evp_md_init_internal() 365 && ctx->pctx->op.sig.algctx != NULL) { in EVP_DigestUpdate() 675 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_set_params() 677 return pctx->op.sig.signature->set_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_set_params() 710 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_settable_params() 713 pctx->op.sig.algctx); in EVP_MD_CTX_settable_params() 731 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_get_params() 733 return pctx->op.sig.signature->get_ctx_md_params(pctx->op.sig.algctx, in EVP_MD_CTX_get_params() 766 && pctx->op.sig.algctx != NULL in EVP_MD_CTX_gettable_params() [all …]
|
A D | keymgmt_lib.c | 99 OP_CACHE_ELEM *op; in evp_keymgmt_util_export_to_provider() local 130 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt); in evp_keymgmt_util_export_to_provider() 131 if (op != NULL && op->keymgmt != NULL) { in evp_keymgmt_util_export_to_provider() 132 void *ret = op->keydata; in evp_keymgmt_util_export_to_provider() 176 op = evp_keymgmt_util_find_operation_cache(pk, keymgmt); in evp_keymgmt_util_export_to_provider() 177 if (op != NULL && op->keydata != NULL) { in evp_keymgmt_util_export_to_provider() 178 void *ret = op->keydata; in evp_keymgmt_util_export_to_provider()
|
A D | pmeth_gn.c | 40 ctx->op.keymgmt.genctx = in gen_init() 45 ctx->op.keymgmt.genctx = in gen_init() 51 if (ctx->op.keymgmt.genctx == NULL) in gen_init() 153 if (ctx->op.keymgmt.genctx == NULL) in EVP_PKEY_generate() 182 ctx->op.keymgmt.genctx, keydata); in EVP_PKEY_generate() 190 && (evp_keymgmt_util_gen(*ppkey, ctx->keymgmt, ctx->op.keymgmt.genctx, in EVP_PKEY_generate()
|
/openssl-master/test/testutil/ |
A D | tests.c | 29 const char *op) in test_fail_message_prefix() argument 34 if (op != NULL) { in test_fail_message_prefix() 36 test_printf_stderr("'%s %s %s' failed", left, op, right); in test_fail_message_prefix() 38 test_printf_stderr("'%s'", op); in test_fail_message_prefix() 71 const char *right, const char *op, 80 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_message_va() 91 const char *op, const char *fmt, ...) in test_fail_message() argument 211 #define DEFINE_COMPARISON(type, name, opname, op, fmt) \ argument 216 if (t1 op t2) \ 218 test_fail_message(NULL, file, line, #type, s1, s2, #op, \ [all …]
|
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,
|
A D | format_output.c | 42 const char *op, const char *m1, size_t l1, in test_fail_string_common() argument 52 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_string_common() 131 const char *op, const char *m1, size_t l1, in test_fail_string_message() argument 134 test_fail_string_common(prefix, file, line, type, left, right, op, in test_fail_string_message() 269 const char *op, in test_fail_bignum_common() argument 281 test_fail_message_prefix(prefix, file, line, type, left, right, op); in test_fail_bignum_common() 370 const char *op, in test_fail_bignum_message() argument 380 const char *op, const BIGNUM *bn) in test_fail_bignum_mono_message() argument 427 const char *op, in test_fail_memory_common() argument 522 const char *op, in test_fail_memory_message() argument [all …]
|
/openssl-master/crypto/perlasm/ |
A D | x86_64-xlate.pl | 165 $self->{op} = $1; 171 $self->{op} = $1; 182 $self->{op} = $1; 214 if ($self->{op} eq "ret") { 215 $self->{op} = ""; 222 $self->{op} .= $self->{sz}; 224 $self->{op} = "\tDQ"; 226 $self->{op}; 230 my ($self, $op) = @_; 231 $self->{op}=$op if (defined($op)); [all …]
|
A D | ppc-xlate.pl | 278 my ($f, $vrt, $ra, $rb, $op) = @_; 279 " .long ".sprintf "0x%X",(31<<26)|($vrt<<21)|($ra<<16)|($rb<<11)|($op*2+1); 298 my ($f, $vrt, $vra, $vrb, $op) = vsr2vr_args(3, @_); 299 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|$op; 302 my ($f, $vrt, $vra, $vrb, $vrc, $op) = @_; 303 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|($vrc<<6)|$op; 306 my ($f, $vrt, $vra, $vrb, $vrc, $op) = vsr2vr_args(4, @_); 307 " .long ".sprintf "0x%X",(4<<26)|($vrt<<21)|($vra<<16)|($vrb<<11)|($vrc<<6)|$op;
|
/openssl-master/providers/implementations/kem/ |
A D | rsa_kem.c | 57 int op; member 90 prsactx->op = KEM_OP_UNDEFINED; in rsakem_newctx() 172 int op; in rsakem_set_ctx_params() local 184 op = rsakem_opname2id(p->data); in rsakem_set_ctx_params() 185 if (op < 0) in rsakem_set_ctx_params() 187 prsactx->op = op; in rsakem_set_ctx_params() 324 switch (prsactx->op) { in rsakem_generate() 337 switch (prsactx->op) { in rsakem_recover()
|
/openssl-master/test/ |
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 …]
|
/openssl-master/crypto/objects/ |
A D | obj_dat.c | 369 const unsigned int *op; in ossl_obj_obj2nid() local 380 if (op != NULL) in ossl_obj_obj2nid() 381 return nid_objs[*op].nid; in ossl_obj_obj2nid() 406 ASN1_OBJECT *op = NULL; in OBJ_txt2obj() local 447 return op; in OBJ_txt2obj() 600 const unsigned int *op; in OBJ_ln2nid() local 605 if (op != NULL) in OBJ_ln2nid() 606 return nid_objs[*op].nid; in OBJ_ln2nid() 627 const unsigned int *op; in OBJ_sn2nid() local 632 if (op != NULL) in OBJ_sn2nid() [all …]
|
/openssl-master/crypto/asn1/ |
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-master/crypto/ |
A D | threads_pthread.c | 215 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument 220 *ret = __atomic_or_fetch(val, op, __ATOMIC_ACQ_REL); in CRYPTO_atomic_or() 226 *ret = atomic_or_64_nv(val, op); in CRYPTO_atomic_or() 232 *val |= op; in CRYPTO_atomic_or()
|
A D | threads_win.c | 207 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument 210 *ret = (uint64_t)InterlockedOr64((LONG64 volatile *)val, (LONG64)op) | op; in CRYPTO_atomic_or()
|
A D | threads_none.c | 136 int CRYPTO_atomic_or(uint64_t *val, uint64_t op, uint64_t *ret, in CRYPTO_atomic_or() argument 139 *val |= op; in CRYPTO_atomic_or()
|
/openssl-master/util/perl/OpenSSL/ |
A D | Ordinals.pm | 391 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{^OPENSSL_USE_}) { $features{$'} = $op; } 418 if ($def =~ m{^OPENSSL_NO_}) { $features{$'} = !$op; }
|
/openssl-master/crypto/ec/ |
A D | ecx_backend.c | 146 int id, ecx_key_op_t op, in ossl_ecx_key_op() argument 152 if (op != KEY_OP_KEYGEN) { in ossl_ecx_key_op() 183 if (op == KEY_OP_PUBLIC) { in ossl_ecx_key_op() 191 if (op == KEY_OP_KEYGEN) { in ossl_ecx_key_op()
|
/openssl-master/crypto/ts/ |
A D | ts_asn1.c | 158 static int ts_resp_cb(int op, ASN1_VALUE **pval, const ASN1_ITEM *it, in ts_resp_cb() argument 162 if (op == ASN1_OP_NEW_POST) { in ts_resp_cb() 164 } else if (op == ASN1_OP_FREE_POST) { in ts_resp_cb() 166 } else if (op == ASN1_OP_D2I_POST) { in ts_resp_cb()
|
/openssl-master/ssl/ |
A D | ssl_cert.c | 29 int op, int bits, int nid, void *other, 336 int ssl_cert_set_current(CERT *c, long op) in ssl_cert_set_current() argument 341 if (op == SSL_CERT_SET_FIRST) in ssl_cert_set_current() 343 else if (op == SSL_CERT_SET_NEXT) { in ssl_cert_set_current() 990 int op, int bits, int nid, void *other, in ssl_security_default_callback() argument 1002 if (op == SSL_SECOP_TMP_DH && bits < 80) in ssl_security_default_callback() 1006 switch (op) { in ssl_security_default_callback() 1063 int ssl_security(const SSL *s, int op, int bits, int nid, void *other) in ssl_security() argument 1065 return s->cert->sec_cb(s, NULL, op, bits, nid, other, s->cert->sec_ex); in ssl_security() 1068 int ssl_ctx_security(const SSL_CTX *ctx, int op, int bits, int nid, void *other) in ssl_ctx_security() argument [all …]
|