/openssl/crypto/evp/ |
H A D | ec_ctrl.c | 42 int ret; in EVP_PKEY_CTX_set_ecdh_cofactor_mode() local 46 if (ret != 1) in EVP_PKEY_CTX_set_ecdh_cofactor_mode() 67 return ret; in EVP_PKEY_CTX_set_ecdh_cofactor_mode() 76 if (ret != 1) in EVP_PKEY_CTX_get_ecdh_cofactor_mode() 104 return ret; in EVP_PKEY_CTX_get_ecdh_cofactor_mode() 149 int ret; in EVP_PKEY_CTX_set_ecdh_kdf_outlen() local 173 return ret; in EVP_PKEY_CTX_set_ecdh_kdf_outlen() 179 int ret; in EVP_PKEY_CTX_get_ecdh_kdf_outlen() local 207 return ret; in EVP_PKEY_CTX_get_ecdh_kdf_outlen() 212 int ret; in EVP_PKEY_CTX_set0_ecdh_kdf_ukm() local [all …]
|
H A D | dh_ctrl.c | 51 int ret; in EVP_PKEY_CTX_set_dh_paramgen_gindex() local 67 int ret; in EVP_PKEY_CTX_set_dh_paramgen_seed() local 92 int ret; in EVP_PKEY_CTX_set_dh_paramgen_prime_len() local 106 int ret; in EVP_PKEY_CTX_set_dh_paramgen_subprime_len() local 121 int ret; in EVP_PKEY_CTX_set_dh_paramgen_generator() local 238 int ret; in EVP_PKEY_CTX_set_dh_kdf_outlen() local 262 return ret; in EVP_PKEY_CTX_set_dh_kdf_outlen() 267 int ret; in EVP_PKEY_CTX_get_dh_kdf_outlen() local 292 int ret; in EVP_PKEY_CTX_set0_dh_kdf_ukm() local 316 return ret; in EVP_PKEY_CTX_set0_dh_kdf_ukm() [all …]
|
/openssl/crypto/bn/ |
H A D | bn_blind.c | 36 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) in BN_BLINDING_new() 72 return ret; in BN_BLINDING_new() 120 ret = 1; in BN_BLINDING_update() 168 int ret; in BN_BLINDING_invert_ex() local 253 if (ret->A == NULL && (ret->A = BN_new()) == NULL) in BN_BLINDING_create_param() 255 if (ret->Ai == NULL && (ret->Ai = BN_new()) == NULL) in BN_BLINDING_create_param() 274 if (int_bn_mod_inverse(ret->Ai, ret->A, ret->mod, ctx, &rv)) in BN_BLINDING_create_param() 290 if (!ret->bn_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx, ret->m_ctx)) in BN_BLINDING_create_param() 293 if (!BN_mod_exp(ret->A, ret->A, ret->e, ret->mod, ctx)) in BN_BLINDING_create_param() 298 if (!bn_to_mont_fixed_top(ret->Ai, ret->Ai, ret->m_ctx, ctx) in BN_BLINDING_create_param() [all …]
|
/openssl/crypto/x509/ |
H A D | x_x509.c | 44 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb() 68 ret->skid = NULL; in x509_cb() 69 ret->akid = NULL; in x509_cb() 72 ret->nc = NULL; in x509_cb() 78 ret->aux = NULL; in x509_cb() 80 if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data)) in x509_cb() 85 CRYPTO_free_ex_data(CRYPTO_EX_INDEX_X509, ret, &ret->ex_data); in x509_cb() 193 X509 *ret; in d2i_X509_AUX() local 203 if (ret == NULL) in d2i_X509_AUX() 210 return ret; in d2i_X509_AUX() [all …]
|
/openssl/include/internal/ |
H A D | refcount.h | 52 if (*ret == 0) in CRYPTO_DOWN_REF() 80 if (*ret == 0) in CRYPTO_DOWN_REF() 112 *ret = _InterlockedOr((void *)&refcnt->val, 0); in CRYPTO_GET_REF() 139 if (*ret == 0) in CRYPTO_DOWN_REF() 146 *ret = _InterlockedOr_nf((void *)&refcnt->val, 0); in CRYPTO_GET_REF() 165 *ret = _InterlockedExchangeAdd(&refcnt->val, 1) + 1; in CRYPTO_UP_REF() 171 *ret = _InterlockedExchangeAdd(&refcnt->val, -1) - 1; in CRYPTO_DOWN_REF() 177 *ret = _InterlockedExchangeAdd(&refcnt->val, 0); in CRYPTO_GET_REF() 244 *ret = refcnt->val; in CRYPTO_UP_REF() 252 *ret = refcnt->val; in CRYPTO_DOWN_REF() [all …]
|
/openssl/crypto/bio/ |
H A D | bss_conn.c | 281 if ((ret = cb((BIO *)b, c->state, ret)) == 0) in conn_state() 289 ret = cb((BIO *)b, c->state, ret); in conn_state() 291 return ret; in conn_state() 298 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) in BIO_CONNECT_new() 303 return ret; in BIO_CONNECT_new() 401 return ret; in conn_read() 406 int ret; in conn_write() local 448 return ret; in conn_write() 819 int ret; in conn_sendmmsg() local 850 int ret; in conn_recvmmsg() local [all …]
|
H A D | bio_lib.c | 75 ret = 1; in bio_call_callback() 78 return ret; in bio_call_callback() 121 int ret; in BIO_free() local 264 int ret; in bio_read_intern() local 306 int ret; in BIO_read() local 330 int ret; in bio_write_intern() local 373 int ret; in BIO_write() local 500 int ret; in BIO_puts() local 549 int ret; in BIO_gets() local 627 return ret > 0 || BIO_eof(bio) ? ptr - buf : ret; in BIO_get_line() [all …]
|
H A D | bss_sock.c | 69 BIO *ret; in BIO_new_socket() local 86 return ret; in BIO_new_socket() 118 int ret = 0; in sock_read() local 136 return ret; in sock_read() 141 int ret = 0; in sock_write() local 173 return ret; in sock_write() 216 ret = 1; in sock_ctrl() 236 if (ret) in sock_ctrl() 284 return ret; in sock_ctrl() 289 int n, ret; in sock_puts() local [all …]
|
H A D | bss_fd.c | 82 BIO *ret; in BIO_new_fd() local 87 return ret; in BIO_new_fd() 115 int ret = 0; in fd_read() local 128 return ret; in fd_read() 133 int ret; in fd_write() local 141 return ret; in fd_write() 183 ret = 0; in fd_ctrl() 196 return ret; in fd_ctrl() 201 int n, ret; in fd_puts() local 205 return ret; in fd_puts() [all …]
|
H A D | bss_acpt.c | 95 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) in BIO_ACCEPT_new() 99 return ret; in BIO_ACCEPT_new() 360 return ret; in acpt_state() 365 int ret = 0; in acpt_read() local 379 return ret; in acpt_read() 384 int ret; in acpt_write() local 398 return ret; in acpt_write() 552 return ret; in acpt_ctrl() 557 int n, ret; in acpt_puts() local 561 return ret; in acpt_puts() [all …]
|
/openssl/crypto/dsa/ |
H A D | dsa_check.c | 26 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params() 32 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params() 38 *ret = FFC_CHECK_INVALID_PQ; in dsa_precheck_params() 47 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_params() 68 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_pub_key() 72 && *ret == 0; in ossl_dsa_check_pub_key() 82 if (!dsa_precheck_params(dsa, ret)) in ossl_dsa_check_pub_key_partial() 86 && *ret == 0; in ossl_dsa_check_pub_key_partial() 91 *ret = 0; in ossl_dsa_check_priv_key() 105 int ret = 0; in ossl_dsa_check_pairwise() local [all …]
|
H A D | dsa_lib.c | 48 DH *ret = NULL; in DSA_dup_DH() local 76 return ret; in DSA_dup_DH() 81 DH_free(ret); in DSA_dup_DH() 135 DSA *ret = OPENSSL_zalloc(sizeof(*ret)); in dsa_new_intern() local 166 ret->meth = ENGINE_get_DSA(ret->engine); in dsa_new_intern() 174 ret->flags = ret->meth->flags & ~DSA_FLAG_NON_FIPS_ALLOW; in dsa_new_intern() 184 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in dsa_new_intern() 189 return ret; in dsa_new_intern() 355 int ret; in ossl_dsa_ffc_params_fromdata() local 359 if (ret) in ossl_dsa_ffc_params_fromdata() [all …]
|
/openssl/crypto/asn1/ |
H A D | d2i_pr.c | 37 int ret; in d2i_PrivateKey_decoder() local 76 if (ret in d2i_PrivateKey_decoder() 94 EVP_PKEY *ret; in ossl_d2i_PrivateKey_legacy() local 103 ret = *a; in ossl_d2i_PrivateKey_legacy() 117 !ret->ameth->old_priv_decode(ret, &p, length)) { in ossl_d2i_PrivateKey_legacy() 148 *a = ret; in ossl_d2i_PrivateKey_legacy() 149 return ret; in ossl_d2i_PrivateKey_legacy() 160 EVP_PKEY *ret; in d2i_PrivateKey_ex() local 166 return ret; in d2i_PrivateKey_ex() 235 EVP_PKEY *ret; in d2i_AutoPrivateKey_ex() local [all …]
|
H A D | d2i_param.c | 21 EVP_PKEY *ret = NULL; in d2i_KeyParams() local 27 ret = *a; in d2i_KeyParams() 29 if (type != EVP_PKEY_get_id(ret) && !EVP_PKEY_set_type(ret, type)) in d2i_KeyParams() 32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams() 37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams() 41 (*a) = ret; in d2i_KeyParams() 42 return ret; in d2i_KeyParams() 44 if (a == NULL || *a != ret) in d2i_KeyParams() 45 EVP_PKEY_free(ret); in d2i_KeyParams() 53 void *ret = NULL; in d2i_KeyParams_bio() local [all …]
|
H A D | a_int.c | 25 int neg, ret; in ASN1_INTEGER_cmp() local 38 return -ret; in ASN1_INTEGER_cmp() 40 return ret; in ASN1_INTEGER_cmp() 101 size_t ret, i; in i2c_ibuf() local 127 ret = 1; in i2c_ibuf() 144 *pp += ret; in i2c_ibuf() 145 return ret; in i2c_ibuf() 321 return ret; in ossl_c2i_ASN1_INTEGER() 450 return ret; in d2i_ASN1_UINTEGER() 496 return ret; in bn_to_asn1_string() [all …]
|
H A D | d2i_pu.c | 31 EVP_PKEY *ret; in d2i_PublicKey() local 35 if ((ret = EVP_PKEY_new()) == NULL) { in d2i_PublicKey() 40 ret = *a; in d2i_PublicKey() 43 if (evp_pkey_is_provided(ret) in d2i_PublicKey() 52 && !EVP_PKEY_set_type(ret, type)) { in d2i_PublicKey() 57 switch (EVP_PKEY_get_base_id(ret)) { in d2i_PublicKey() 76 ret->pkey.ec = copy->pkey.ec; in d2i_PublicKey() 90 (*a) = ret; in d2i_PublicKey() 92 return ret; in d2i_PublicKey() 94 if (a == NULL || *a != ret) in d2i_PublicKey() [all …]
|
/openssl/crypto/aes/asm/ |
H A D | aes-riscv64-zkn.pl | 290 $ret .= <<___; 297 $ret .= <<___; 313 $ret .= <<___; 322 $ret .= <<___; 330 $ret .= <<___; 334 $ret .= <<___; 340 $ret .= <<___; 352 $ret .= <<___; 363 $ret .= <<___; 374 $ret .= <<___; [all …]
|
/openssl/crypto/comp/ |
H A D | comp_lib.c | 20 COMP_CTX *ret; in COMP_CTX_new() local 25 if ((ret = OPENSSL_zalloc(sizeof(*ret))) == NULL) in COMP_CTX_new() 28 if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { in COMP_CTX_new() 30 ret = NULL; in COMP_CTX_new() 32 return ret; in COMP_CTX_new() 67 int ret; in COMP_compress_block() local 72 if (ret > 0) { in COMP_compress_block() 76 return ret; in COMP_compress_block() 82 int ret; in COMP_expand_block() local 88 if (ret > 0) { in COMP_expand_block() [all …]
|
/openssl/crypto/dh/ |
H A D | dh_gen.c | 42 int ret, res; in ossl_dh_generate_ffc_parameters() local 54 if (ret > 0) in ossl_dh_generate_ffc_parameters() 56 return ret; in ossl_dh_generate_ffc_parameters() 108 ret->dirty_cnt++; in dh_gen_named_group() 121 return dh_gen_named_group(ret->libctx, ret, prime_len); in DH_generate_parameters_ex() 123 if (ret->meth->generate_params) in DH_generate_parameters_ex() 124 return ret->meth->generate_params(ret, prime_len, generator, cb); in DH_generate_parameters_ex() 173 ctx = BN_CTX_new_ex(ret->libctx); in dh_builtin_genparams() 183 if (ret->params.p == NULL && ((ret->params.p = BN_new()) == NULL)) in dh_builtin_genparams() 185 if (ret->params.g == NULL && ((ret->params.g = BN_new()) == NULL)) in dh_builtin_genparams() [all …]
|
/openssl/ssl/ |
H A D | ssl_asn1.c | 134 int ret; in i2d_SSL_SESSION() local 222 return ret; in i2d_SSL_SESSION() 279 if (ret == NULL) in d2i_SSL_SESSION_ex() 282 ret = *a; in d2i_SSL_SESSION_ex() 309 ret->cipher_id = id; in d2i_SSL_SESSION_ex() 314 if (!ssl_session_memcpy(ret->session_id, &ret->session_id_length, in d2i_SSL_SESSION_ex() 335 X509_free(ret->peer); in d2i_SSL_SESSION_ex() 336 ret->peer = as->peer; in d2i_SSL_SESSION_ex() 352 if (!ssl_session_memcpy(ret->sid_ctx, &ret->sid_ctx_length, in d2i_SSL_SESSION_ex() 424 *a = ret; in d2i_SSL_SESSION_ex() [all …]
|
/openssl/crypto/objects/ |
H A D | o_names.c | 92 ret = 0; in OBJ_NAME_new_index() 102 ret = 0; in OBJ_NAME_new_index() 116 return ret; in OBJ_NAME_new_index() 121 int ret; in obj_name_cmp() local 124 if (ret == 0) { in obj_name_cmp() 132 return ret; in obj_name_cmp() 141 ret = in obj_name_hash() 147 ret ^= a->type; in obj_name_hash() 148 return ret; in obj_name_hash() 223 ret->type)->free_func(ret->name, ret->type, in OBJ_NAME_add() [all …]
|
/openssl/crypto/rsa/ |
H A D | rsa_chk.c | 53 ret = -1; in rsa_validate_keypair_multiprime() 59 ret = 0; in rsa_validate_keypair_multiprime() 63 ret = 0; in rsa_validate_keypair_multiprime() 69 ret = 0; in rsa_validate_keypair_multiprime() 75 ret = 0; in rsa_validate_keypair_multiprime() 90 ret = -1; in rsa_validate_keypair_multiprime() 101 ret = 0; in rsa_validate_keypair_multiprime() 110 ret = -1; in rsa_validate_keypair_multiprime() 114 ret = -1; in rsa_validate_keypair_multiprime() 156 ret = 0; in rsa_validate_keypair_multiprime() [all …]
|
/openssl/crypto/ocsp/ |
H A D | ocsp_vfy.c | 36 int ret = -1; in ocsp_verify_signer() local 73 return ret; in ocsp_verify_signer() 80 int ret = 1; in ocsp_verify() local 94 return ret; in ocsp_verify() 116 ret = -1; in OCSP_basic_verify() 153 ret = 1; in OCSP_basic_verify() 159 return ret; in OCSP_basic_verify() 227 int ret; in ocsp_check_issuer() local 295 *ret = cid; in ocsp_check_ids() 368 return ret; in ocsp_match_issuerid() [all …]
|
/openssl/crypto/ct/ |
H A D | ct_log.c | 76 int ret = 0; in ct_v1_log_id_from_pkey() local 97 return ret; in ct_v1_log_id_from_pkey() 102 CTLOG_STORE *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_STORE_new_ex() local 120 return ret; in CTLOG_STORE_new_ex() 184 int ret = 0; in ctlog_store_load_log() local 197 if (ret < 0) { in ctlog_store_load_log() 217 int ret = 0; in CTLOG_STORE_load_file() local 245 ret = 1; in CTLOG_STORE_load_file() 249 return ret; in CTLOG_STORE_load_file() 260 CTLOG *ret = OPENSSL_zalloc(sizeof(*ret)); in CTLOG_new_ex() local [all …]
|
/openssl/crypto/buffer/ |
H A D | buffer.c | 23 BUF_MEM *ret; in BUF_MEM_new_ex() local 26 if (ret != NULL) in BUF_MEM_new_ex() 28 return ret; in BUF_MEM_new_ex() 33 BUF_MEM *ret; in BUF_MEM_new() local 35 ret = OPENSSL_zalloc(sizeof(*ret)); in BUF_MEM_new() 36 if (ret == NULL) in BUF_MEM_new() 38 return ret; in BUF_MEM_new() 58 char *ret; in sec_alloc_realloc() local 68 return ret; in sec_alloc_realloc() 73 char *ret; in BUF_MEM_grow() local [all …]
|