/openssl/ssl/ |
H A D | tls_srp.c | 34 if (ctx == NULL) in ssl_ctx_srp_ctx_free_intern() 62 if (s == NULL) in ssl_srp_ctx_free_intern() 95 if (s == NULL || (ctx = SSL_CONNECTION_GET_CTX(s)) == NULL) in ssl_srp_ctx_init_intern() 174 if (ctx == NULL) in ssl_ctx_srp_ctx_init_intern() 211 (s->srp_ctx.s == NULL) || (s->srp_ctx.v == NULL)) in ssl_srp_server_param_with_username_intern() 232 if (sc == NULL) in SSL_srp_server_param_with_username() 248 if (sc == NULL) in SSL_set_srp_server_param_pw() 252 if (GN == NULL) in SSL_set_srp_server_param_pw() 273 if (sc == NULL) in SSL_set_srp_server_param() 328 BIGNUM *K = NULL, *u = NULL; in srp_generate_server_master_secret() [all …]
|
/openssl/crypto/ec/ |
H A D | ecdsa_ossl.c | 80 if (sig == NULL && (kinv == NULL || r == NULL)) { in ossl_ecdsa_sign() 90 *siglen = i2d_ECDSA_SIG(s, sig != NULL ? &sig : NULL); in ossl_ecdsa_sign() 102 BIGNUM *kinv = NULL, *r = NULL; in ossl_ecdsa_deterministic_sign() 135 BIGNUM *k = NULL, *r = NULL, *X = NULL; in ecdsa_sign_setup() 167 if (k == NULL || r == NULL || X == NULL) { in ecdsa_sign_setup() 263 0, NULL, NULL, NULL); in ossl_ecdsa_simple_sign_setup() 272 BIGNUM *kinv = NULL, *s, *m = NULL; in ossl_ecdsa_simple_sign_sig() 303 if (ret->r == NULL || ret->s == NULL) { in ossl_ecdsa_simple_sign_sig() 336 if (in_kinv == NULL || in_r == NULL) { in ossl_ecdsa_simple_sign_sig() 338 0, NULL, NULL, NULL)) { in ossl_ecdsa_simple_sign_sig() [all …]
|
H A D | ecx_meth.c | 65 KEY_OP_PUBLIC, NULL, NULL); in ecx_pub_decode() 78 if (akey == NULL || bkey == NULL) in ecx_pub_cmp() 105 if (ecxkey == NULL || ecxkey->privkey == NULL) { in ecx_priv_encode() 439 NULL, 453 NULL, 454 NULL, 456 NULL, 457 NULL, 458 NULL, 556 if (!EVP_DigestVerifyInit(ctx, NULL, NULL, NULL, pkey)) in ecd_item_verify() [all …]
|
/openssl/apps/lib/ |
H A D | engine.c | 30 ENGINE *e = NULL; in try_load_engine() 36 e = NULL; in try_load_engine() 45 ENGINE *e = NULL; in setup_engine_methods() 48 if (id != NULL) { in setup_engine_methods() 52 return NULL; in setup_engine_methods() 110 if (e == NULL) { in make_engine_uri() 150 if (ameth == NULL && e != NULL) in get_legacy_pkey_id() 156 ameth = NULL; in get_legacy_pkey_id() 162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id() 178 return NULL; in get_digest_from_engine() [all …]
|
/openssl/test/ |
H A D | pem_read_depr_test.c | 45 DH *dh = NULL; in test_read_dh_params() 50 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_params() 66 DH *dh = NULL; in test_read_dh_x942_params() 71 dh = PEM_read_bio_DHparams(infile, NULL, NULL, NULL); in test_read_dh_x942_params() 89 DSA *dsa = NULL; in test_read_dsa_params() 94 dsa = PEM_read_bio_DSAparams(infile, NULL, NULL, NULL); in test_read_dsa_params() 110 DSA *dsa = NULL; in test_read_dsa_private() 115 dsa = PEM_read_bio_DSAPrivateKey(infile, NULL, NULL, NULL); in test_read_dsa_private() 136 dsa = PEM_read_bio_DSA_PUBKEY(infile, NULL, NULL, NULL); in test_read_dsa_public() 158 rsa = PEM_read_bio_RSAPrivateKey(infile, NULL, NULL, NULL); in test_read_rsa_private() [all …]
|
H A D | acvp_test.c | 220 if (r1 == NULL || s1 == NULL) in get_ecdsa_sig_rs_bytes() 414 unsigned char *p = NULL, *q = NULL, *seed = NULL; in dsa_paramgen_test() 462 BIGNUM *p_bn = NULL, *q_bn = NULL, *g_bn = NULL, *pub_bn = NULL; in dsa_create_pkey() 593 unsigned char *sig = NULL, *r = NULL, *s = NULL; in dsa_siggen_test() 1014 BIGNUM *e_bn = NULL, *d_bn = NULL, *n_bn = NULL; in rsa_create_pkey() 1057 BIGNUM *xp1_bn = NULL, *xp2_bn = NULL, *xp_bn = NULL; in rsa_keygen_test() 1058 BIGNUM *xq1_bn = NULL, *xq2_bn = NULL, *xq_bn = NULL; in rsa_keygen_test() 1060 unsigned char *p = NULL, *p1 = NULL, *p2 = NULL; in rsa_keygen_test() 1061 unsigned char *q = NULL, *q1 = NULL, *q2 = NULL; in rsa_keygen_test() 1162 unsigned char *sig = NULL, *n = NULL, *e = NULL; in rsa_siggen_test() [all …]
|
H A D | keymgmt_internal_test.c | 42 if (fixture != NULL) { in tear_down() 63 return NULL; in set_up() 91 BIGNUM *n = NULL; in get_ulong_via_BN() 146 RSA *rsa = NULL; in test_pass_rsa() 147 BIGNUM *bn1 = NULL, *bn2 = NULL, *bn3 = NULL; in test_pass_rsa() 148 EVP_PKEY *pk = NULL, *dup_pk = NULL; in test_pass_rsa() 149 EVP_KEYMGMT *km = NULL, *km1 = NULL, *km2 = NULL, *km3 = NULL; in test_pass_rsa() 150 void *provkey = NULL, *provkey2 = NULL; in test_pass_rsa() 219 rsa = NULL; in test_pass_rsa() 301 BIO *bio = NULL; in test_evp_pkey_export_to_provider() [all …]
|
H A D | ectest.c | 41 BIGNUM *n1 = NULL, *n2 = NULL, *order = NULL; in group_order_tests() 42 EC_POINT *P = NULL, *Q = NULL, *R = NULL, *S = NULL; in group_order_tests() 162 BIGNUM *p = NULL, *a = NULL, *b = NULL, *scalar3 = NULL; in prime_field_tests() 164 EC_POINT *P = NULL, *Q = NULL, *R = NULL; in prime_field_tests() 165 BIGNUM *x = NULL, *y = NULL, *z = NULL, *yplusone = NULL; in prime_field_tests() 784 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_curve_test() 940 BIGNUM *x = NULL, *y = NULL, *z = NULL, *cof = NULL, *yplusone = NULL; in char2_field_tests() 1316 BIGNUM *p = NULL, *a = NULL, *b = NULL, *x = NULL, *y = NULL; in nistp_single_test() 1317 BIGNUM *n = NULL, *m = NULL, *order = NULL, *yplusone = NULL; in nistp_single_test() 1319 EC_POINT *G = NULL, *P = NULL, *Q = NULL, *Q_CHECK = NULL; in nistp_single_test() [all …]
|
H A D | rsa_mp_test.c | 152 BIGNUM **pris = NULL, **exps = NULL, **coeffs = NULL; in key2048p3_v1() 190 if (pris != NULL) in key2048p3_v1() 192 if (exps != NULL) in key2048p3_v1() 194 if (coeffs != NULL) in key2048p3_v1() 202 STACK_OF(BIGNUM) *primes = NULL, *exps = NULL, *coeffs = NULL; in key2048p3_v2() 203 BIGNUM *num = NULL; in key2048p3_v2() 245 primes = exps = coeffs = NULL; in key2048p3_v2() 274 if (!TEST_true(RSA_check_key_ex(key, NULL))) in test_rsa_mp() 295 RSA *rsa = NULL; in test_rsa_mp_gen_bad_input() 296 BIGNUM *ebn = NULL; in test_rsa_mp_gen_bad_input() [all …]
|
/openssl/crypto/objects/ |
H A D | obj_dat.c | 266 ADDED_OBJ *ao[4] = { NULL, NULL, NULL, NULL }, *aop; in ossl_obj_add_object() 341 return NULL; in OBJ_nid2obj() 348 return ob == NULL ? NULL : ob->sn; in OBJ_nid2sn() 355 return ob == NULL ? NULL : ob->ln; in OBJ_nid2ln() 380 if (a == NULL) in ossl_obj_obj2nid() 388 if (op != NULL) in ossl_obj_obj2nid() 469 if (a == NULL || a->data == NULL) in OBJ_obj2txt() 487 bl = NULL; in OBJ_obj2txt() 526 if (bl == NULL && (bl = BN_new()) == NULL) in OBJ_obj2txt() 634 if (op != NULL) in OBJ_ln2nid() [all …]
|
/openssl/crypto/evp/ |
H A D | kdf_meth.c | 34 if (kdf == NULL) in evp_kdf_free() 48 EVP_KDF *kdf = NULL; in evp_kdf_new() 53 return NULL; in evp_kdf_new() 68 return NULL; in evp_kdf_from_algorithm() 73 return NULL; in evp_kdf_from_algorithm() 150 return NULL; in evp_kdf_from_algorithm() 180 return NULL; in EVP_KDF_gettable_params() 189 return NULL; in EVP_KDF_gettable_ctx_params() 199 return NULL; in EVP_KDF_settable_ctx_params() 209 return NULL; in EVP_KDF_CTX_gettable_params() [all …]
|
H A D | evp_fetch.c | 58 if (store != NULL) in dealloc_tmp_evp_method_store() 71 if (store == NULL in reserve_evp_method_store() 82 if (store == NULL in unreserve_evp_method_store() 147 return NULL; in get_evp_method_from_store() 151 return NULL; in get_evp_method_from_store() 155 return NULL; in get_evp_method_from_store() 257 if (store == NULL || namemap == NULL) { in inner_evp_generic_fetch() 350 if ((name_id != 0 || name != NULL) && method == NULL) { in inner_evp_generic_fetch() 438 if (plp != NULL && store != NULL) { in evp_set_parsed_default_properties() 513 if (plp == NULL || *plp == NULL) in evp_default_properties_merge() [all …]
|
H A D | mac_lib.c | 26 if (ctx != NULL) { in EVP_MAC_CTX_new() 33 ctx = NULL; in EVP_MAC_CTX_new() 41 if (ctx == NULL) in EVP_MAC_CTX_free() 44 ctx->algctx = NULL; in EVP_MAC_CTX_free() 55 return NULL; in EVP_MAC_CTX_dup() 58 if (dst == NULL) in EVP_MAC_CTX_dup() 59 return NULL; in EVP_MAC_CTX_dup() 65 return NULL; in EVP_MAC_CTX_dup() 71 return NULL; in EVP_MAC_CTX_dup() 134 if (ctx == NULL || ctx->meth == NULL) { in evp_mac_final() [all …]
|
H A D | kdf_lib.c | 27 if (kdf == NULL) in EVP_KDF_CTX_new() 28 return NULL; in EVP_KDF_CTX_new() 31 if (ctx == NULL in EVP_KDF_CTX_new() 38 ctx = NULL; in EVP_KDF_CTX_new() 47 if (ctx == NULL) in EVP_KDF_CTX_free() 59 if (src == NULL || src->algctx == NULL || src->meth->dupctx == NULL) in EVP_KDF_CTX_dup() 60 return NULL; in EVP_KDF_CTX_dup() 63 if (dst == NULL) in EVP_KDF_CTX_dup() 64 return NULL; in EVP_KDF_CTX_dup() 70 return NULL; in EVP_KDF_CTX_dup() [all …]
|
/openssl/providers/implementations/macs/ |
H A D | gmac_prov.c | 63 return NULL; in gmac_new() 68 return NULL; in gmac_new() 81 return NULL; in gmac_dup() 84 if (dst == NULL) in gmac_dup() 85 return NULL; in gmac_dup() 90 return NULL; in gmac_dup() 109 if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, NULL)) in gmac_setkey() 121 if (key != NULL) in gmac_init() 123 return EVP_EncryptInit_ex(macctx->ctx, NULL, NULL, NULL, NULL); in gmac_init() 212 if (ctx == NULL) in gmac_set_ctx_params() [all …]
|
/openssl/crypto/x509/ |
H A D | v3_conf.c | 391 if (ret && req != NULL && exts != NULL) in X509V3_EXT_REQ_add_nconf() 450 NULL, 451 NULL 488 if (ctx->subject_cert == NULL && pkey != NULL) { in X509V3_set_issuer_pkey() 504 if ((ctmp = NCONF_new(NULL)) == NULL) in X509V3_EXT_conf() 519 if ((ctmp = NCONF_new(NULL)) == NULL) in X509V3_EXT_conf_nid() 541 NULL, 542 NULL 561 if ((ctmp = NCONF_new(NULL)) == NULL) in X509V3_EXT_add_conf() 578 if ((ctmp = NCONF_new(NULL)) == NULL) in X509V3_EXT_CRL_add_conf() [all …]
|
/openssl/crypto/rsa/ |
H A D | rsa_gen.c | 88 STACK_OF(BIGNUM) *pplist = NULL, *pdlist = NULL; in DEFINE_STACK_OF() 89 BIGNUM *factor = NULL, *newpp = NULL, *newpd = NULL; in DEFINE_STACK_OF() 90 BIGNUM *dval = NULL, *newexp = NULL, *newcoeff = NULL; in DEFINE_STACK_OF() 91 BIGNUM *p = NULL, *q = NULL; in DEFINE_STACK_OF() 92 BIGNUM *dmp1 = NULL, *dmq1 = NULL, *iqmp = NULL; in DEFINE_STACK_OF() 93 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL; in DEFINE_STACK_OF() 117 if (r2 == NULL) in DEFINE_STACK_OF() 199 dmp1 = NULL; in DEFINE_STACK_OF() 205 dmq1 = NULL; in DEFINE_STACK_OF() 230 iqmp = NULL; in DEFINE_STACK_OF() [all …]
|
H A D | rsa_sp800_56b_gen.c | 61 BIGNUM *Xpo = NULL, *Xqo = NULL, *tmp = NULL; in ossl_rsa_fips186_4_gen_prob_primes() 63 BIGNUM *p1 = NULL, *p2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() 64 BIGNUM *q1 = NULL, *q2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() 66 BIGNUM *Xp = NULL, *Xp1 = NULL, *Xp2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() 67 BIGNUM *Xq = NULL, *Xq1 = NULL, *Xq2 = NULL; in ossl_rsa_fips186_4_gen_prob_primes() 107 if (tmp == NULL || Xpo == NULL || Xqo == NULL) in ossl_rsa_fips186_4_gen_prob_primes() 116 if (rsa->p == NULL || rsa->q == NULL) in ossl_rsa_fips186_4_gen_prob_primes() 197 if (rng == NULL) in rsa_validate_rng_strength() 248 if (gcd == NULL) in ossl_rsa_sp800_56b_derive_params_from_pq() 264 if (e != NULL) { in ossl_rsa_sp800_56b_derive_params_from_pq() [all …]
|
/openssl/crypto/bn/ |
H A D | bn_blind.c | 76 return NULL; in BN_BLINDING_new() 81 if (r == NULL) in BN_BLINDING_free() 95 if ((b->A == NULL) || (b->Ai == NULL)) { in BN_BLINDING_update() 106 if (!BN_BLINDING_create_param(b, NULL, NULL, ctx, NULL, NULL)) in BN_BLINDING_update() 138 if ((b->A == NULL) || (b->Ai == NULL)) { in BN_BLINDING_convert_ex() 149 if (r != NULL && (BN_copy(r, b->Ai) == NULL)) in BN_BLINDING_convert_ex() 172 if (r == NULL && (r = b->Ai) == NULL) { in BN_BLINDING_invert_ex() 246 ret = BN_BLINDING_new(NULL, NULL, m); in BN_BLINDING_create_param() 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() [all …]
|
/openssl/crypto/asn1/ |
H A D | a_dup.c | 23 if (x == NULL) in ASN1_dup() 24 return NULL; in ASN1_dup() 26 i = i2d(x, NULL); in ASN1_dup() 28 return NULL; in ASN1_dup() 31 if (b == NULL) in ASN1_dup() 32 return NULL; in ASN1_dup() 60 if (x == NULL) in ASN1_item_dup() 61 return NULL; in ASN1_item_dup() 67 asn1_cb = aux != NULL ? aux->asn1_cb : NULL; in ASN1_item_dup() 78 if (b == NULL) { in ASN1_item_dup() [all …]
|
/openssl/apps/ |
H A D | pkcs12.c | 162 char *infile = NULL, *outfile = NULL, *keyname = NULL, *certfile = NULL; in pkcs12_main() 163 char *untrusted = NULL, *ciphername = NULL, *enc_name = NULL; in pkcs12_main() 165 char *name = NULL, *csp_name = NULL; in pkcs12_main() 179 char *passinarg = NULL, *passoutarg = NULL, *passarg = NULL; in pkcs12_main() 180 char *passin = NULL, *passout = NULL, *macalg = NULL; in pkcs12_main() 181 char *cpass = NULL, *mpass = NULL, *badpass = NULL; in pkcs12_main() 182 const char *CApath = NULL, *CAfile = NULL, *CAstore = NULL, *prog; in pkcs12_main() 185 BIO *in = NULL, *out = NULL; in pkcs12_main() 531 X509 *ee_cert = NULL, *x = NULL; in pkcs12_main() 655 if (csp_name != NULL && key != NULL) in pkcs12_main() [all …]
|
/openssl/providers/implementations/signature/ |
H A D | sm2_sig.c | 119 if (ctx == NULL) in sm2sig_newctx() 120 return NULL; in sm2sig_newctx() 123 if (propq != NULL && (ctx->propq = OPENSSL_strdup(propq)) == NULL) { in sm2sig_newctx() 125 return NULL; in sm2sig_newctx() 141 if (ec == NULL && psm2ctx->ec == NULL) { in sm2sig_signature_init() 200 ctx->md = NULL; in free_md() 276 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_signverify_update() 290 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_sign_final() 315 if (psm2ctx == NULL || psm2ctx->mdctx == NULL) in sm2sig_digest_verify_final() 388 return NULL; in sm2sig_dupctx() [all …]
|
/openssl/crypto/dsa/ |
H A D | dsa_backend.c | 34 BIGNUM *priv_key = NULL, *pub_key = NULL; in ossl_dsa_key_fromdata() 36 if (dsa == NULL) in ossl_dsa_key_fromdata() 47 if (param_priv_key == NULL && param_pub_key == NULL) in ossl_dsa_key_fromdata() 77 if (f != NULL && (*out = BN_dup(f)) == NULL) in dsa_bn_dup_check() 88 return NULL; in ossl_dsa_dup() 91 return NULL; in ossl_dsa_dup() 119 return NULL; in ossl_dsa_dup() 134 BIGNUM *dsa_pubkey = NULL, *dsa_privkey = NULL; in ossl_dsa_key_from_pkcs8() 143 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dsa_key_from_pkcs8() 151 if ((dsa = d2i_DSAparams(NULL, &pm, pmlen)) == NULL) in ossl_dsa_key_from_pkcs8() [all …]
|
/openssl/crypto/ts/ |
H A D | ts_rsp_sign.c | 48 if (serial == NULL) in def_serial_cb() 59 return NULL; in def_serial_cb() 99 return NULL; in TS_RESP_CTX_new_ex() 118 return TS_RESP_CTX_new_ex(NULL, NULL); in TS_RESP_CTX_new() 180 ctx->certs = NULL; in TS_RESP_CTX_set_certs() 381 if ((ctx->request = d2i_TS_REQ_bio(req_bio, NULL)) == NULL) { in TS_RESP_create_response() 504 return NULL; in ts_RESP_get_policy() 634 if (pp == NULL) in ossl_ess_add1_signing_cert() 657 if (pp == NULL) in ossl_ess_add1_signing_cert_v2() 756 if ((p7bio = PKCS7_dataInit(p7, NULL)) == NULL) { in ts_RESP_sign() [all …]
|
/openssl/crypto/ct/ |
H A D | ct_oct.c | 72 SCT *sct = NULL; in o2i_SCT() 150 return NULL; in o2i_SCT() 156 unsigned char *p = NULL, *pstart = NULL; in i2o_SCT_signature() 201 unsigned char *p = NULL, *pstart = NULL; in i2o_SCT() 218 if (out == NULL) in i2o_SCT() 270 if (a == NULL || *a == NULL) { in STACK_OF() 299 if ((sct = o2i_SCT(NULL, pp, sct_len)) == NULL) in STACK_OF() 307 if (a != NULL && *a == NULL) in STACK_OF() 312 if (a == NULL || *a == NULL) in STACK_OF() 314 return NULL; in STACK_OF() [all …]
|