Home
last modified time | relevance | path

Searched refs:NULL (Results 76 – 100 of 1992) sorted by relevance

12345678910>>...80

/openssl/crypto/store/
H A Dstore_meth.c30 if (loader != NULL && loader->prov != NULL) { in OSSL_STORE_LOADER_free()
53 return NULL; in new_loader()
114 if (store == NULL in reserve_loader_store()
125 if (store == NULL in unreserve_loader_store()
146 if (store == NULL in get_loader_from_store()
148 return NULL; in get_loader_from_store()
151 return NULL; in get_loader_from_store()
182 return NULL; in loader_from_algorithm()
233 if ((loader->p_open == NULL && loader->p_attach == NULL) in loader_from_algorithm()
297 if (store == NULL || namemap == NULL) { in inner_loader_fetch()
[all …]
/openssl/crypto/ui/
H A Dui_lib.c27 if (ret == NULL) in UI_new_method()
28 return NULL; in UI_new_method()
34 return NULL; in UI_new_method()
45 return NULL; in UI_new_method()
73 if (ui == NULL) in UI_free()
343 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt()
698 return NULL; in UI_method_get_opener()
705 return NULL; in UI_method_get_writer()
712 return NULL; in UI_method_get_flusher()
719 return NULL; in UI_method_get_reader()
[all …]
/openssl/demos/signature/
H A DEVP_DSA_Signature_demo.c55 if (pkey_ctx == NULL) in generate_dsa_params()
65 if (params == NULL) in generate_dsa_params()
72 params = NULL; in generate_dsa_params()
94 if (ctx == NULL) in generate_dsa_key()
101 if (pkey == NULL) in generate_dsa_key()
108 pkey = NULL; in generate_dsa_key()
156 keypair = NULL; in extract_keypair()
183 if (ctx == NULL) in demo_sign()
186 if (EVP_DigestSignInit_ex(ctx, NULL, DIGEST, libctx, NULL, pkey, NULL) != 1) in demo_sign()
246 if(ctx == NULL) in demo_verify()
[all …]
/openssl/apps/
H A Dx509.c270 EVP_PKEY *privkey = NULL, *CAkey = NULL, *pubkey = NULL; in x509_main()
273 char *issu = NULL, *subj = NULL, *digest = NULL; in x509_main()
274 X509_NAME *fissu = NULL, *fsubj = NULL; in x509_main()
279 X509 *x = NULL, *xca = NULL, *issuer_cert; in x509_main()
280 X509_REQ *req = NULL, *rq = NULL; in x509_main()
282 char *CAkeyfile = NULL, *CAserial = NULL, *pubkeyfile = NULL, *alias = NULL; in x509_main()
283 char *checkhost = NULL, *checkemail = NULL, *checkip = NULL; in x509_main()
285 char *extsect = NULL, *extfile = NULL, *passin = NULL, *passinarg = NULL; in x509_main()
286 char *infile = NULL, *outfile = NULL, *privkeyfile = NULL, *CAfile = NULL; in x509_main()
794 if ((fsubj != NULL || req != NULL) in x509_main()
[all …]
H A Dpkcs8.c72 {NULL}
77 BIO *in = NULL, *out = NULL; in pkcs8_main()
78 ENGINE *e = NULL; in pkcs8_main()
83 char *infile = NULL, *outfile = NULL, *ciphername = NULL; in pkcs8_main()
84 char *passinarg = NULL, *passoutarg = NULL, *prog; in pkcs8_main()
88 char *passin = NULL, *passout = NULL, *p8pass = NULL; in pkcs8_main()
228 if (in == NULL) in pkcs8_main()
231 if (out == NULL) in pkcs8_main()
312 p8inf = PEM_read_bio_PKCS8_PRIV_KEY_INFO(in, NULL, NULL, NULL); in pkcs8_main()
321 p8 = PEM_read_bio_PKCS8(in, NULL, NULL, NULL); in pkcs8_main()
[all …]
H A Dcrl2pkcs7.c46 {NULL}
51 BIO *in = NULL, *out = NULL; in crl2pkcs7_main()
52 PKCS7 *p7 = NULL; in crl2pkcs7_main()
58 char *infile = NULL, *outfile = NULL, *prog, *certfile; in crl2pkcs7_main()
118 crl = PEM_read_bio_X509_CRL(in, NULL, NULL, NULL); in crl2pkcs7_main()
137 if (crl != NULL) { in crl2pkcs7_main()
161 if (out == NULL) in crl2pkcs7_main()
196 BIO *in = NULL; in add_certs_from_file()
203 if (in == NULL) { in add_certs_from_file()
209 sk = PEM_X509_INFO_read_bio(in, NULL, NULL, NULL); in add_certs_from_file()
[all …]
/openssl/crypto/cms/
H A Dcms_dh.c28 EVP_PKEY *pkpeer = NULL, *pk = NULL; in dh_cms_set_peerkey()
51 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, plen)) == NULL) in dh_cms_set_peerkey()
58 if ((bnpub = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) in dh_cms_set_peerkey()
129 if (!EVP_EncryptInit_ex(kekctx, kekcipher, NULL, NULL, NULL)) in dh_cms_set_shared_info()
152 dukm = NULL; in dh_cms_set_shared_info()
174 NULL, NULL, NULL)) in dh_cms_decrypt()
176 if (alg == NULL || pubkey == NULL) in dh_cms_decrypt()
202 unsigned char *penc = NULL, *dukm = NULL; in dh_cms_encrypt()
215 NULL, NULL, NULL)) in dh_cms_encrypt()
219 X509_ALGOR_get0(&aoid, NULL, NULL, talg); in dh_cms_encrypt()
[all …]
H A Dcms_smime.c83 if (pos == NULL || *pos == NULL) { in check_content()
134 return NULL; in CMS_data_create_ex()
139 return CMS_data_create_ex(in, flags, NULL, NULL); in CMS_data_create()
196 return CMS_digest_create_ex(in, md, flags, NULL, NULL); in CMS_digest_create()
279 CMS_SignerInfo_get0_algs(si, NULL, &signer, NULL, NULL); in cms_signerinfo_verify_cert()
317 BIO *cmsbio = NULL, *tmpin = NULL, *tmpout = NULL; in CMS_verify()
341 CMS_SignerInfo_get0_algs(si, NULL, &signer, NULL, NULL); in CMS_verify()
581 if (pkey == NULL || signcert == NULL) { in CMS_sign_receipt()
588 cms = CMS_sign_ex(NULL, NULL, certs, NULL, flags, in CMS_sign_receipt()
730 if (ris != NULL && ec != NULL) in CMS_decrypt_set1_pkey_and_peer()
[all …]
H A Dcms_lib.c31 const CMS_CTX *ctx = ossl_cms_get0_cmsctx(a == NULL ? NULL : *a); in IMPLEMENT_ASN1_PRINT_FUNCTION()
72 return cms != NULL ? &cms->ctx : NULL; in ossl_cms_get0_cmsctx()
77 return ctx != NULL ? ctx->libctx : NULL; in ossl_cms_ctx_get0_libctx()
82 return ctx != NULL ? ctx->propq : NULL; in ossl_cms_ctx_get0_propq()
193 return NULL; in CMS_dataInit()
341 return NULL; in CMS_get0_eContentType()
409 X509_ALGOR_get0(&digestoid, NULL, NULL, digestAlgorithm); in ossl_cms_DigestAlgorithm_init_bio()
437 return NULL; in ossl_cms_DigestAlgorithm_init_bio()
447 X509_ALGOR_get0(&mdoid, NULL, NULL, mdalg); in ossl_cms_DigestAlgorithm_find_ctx()
633 if ((certs = sk_X509_new_reserve(NULL, n)) == NULL) in STACK_OF()
[all …]
/openssl/crypto/evp/
H A Dm_sigver.c34 return NULL; in canon_mdname()
59 if (e == NULL) in do_sigver_init()
86 if (props == NULL) in do_sigver_init()
98 if (mdname == NULL && type == NULL) in do_sigver_init()
137 for (iter = 1, provkey = NULL; iter < 3 && provkey == NULL; iter++) { in do_sigver_init()
307 if (type == NULL && mdname != NULL) in do_sigver_init()
393 return do_sigver_init(ctx, pctx, type, NULL, NULL, NULL, e, pkey, 0, in EVP_DigestSignInit()
411 return do_sigver_init(ctx, pctx, type, NULL, NULL, NULL, e, pkey, 1, in EVP_DigestVerifyInit()
527 if (dctx == NULL && sigret != NULL) in EVP_DigestSignFinal()
538 if (pctx == NULL || pctx->pmeth == NULL) { in EVP_DigestSignFinal()
[all …]
/openssl/providers/implementations/exchange/
H A Ddh_exch.c87 return NULL; in dh_newctx()
91 return NULL; in dh_newctx()
184 if (pdhctx->dh == NULL || pdhctx->dhpeer == NULL) { in dh_plain_derive()
292 return NULL; in dh_dupctx()
296 return NULL; in dh_dupctx()
337 return NULL; in dh_dupctx()
361 if (p != NULL) { in dh_set_ctx_params()
374 if (p != NULL) { in dh_set_ctx_params()
522 if (p != NULL in dh_get_ctx_params()
534 if (p != NULL in dh_get_ctx_params()
[all …]
/openssl/crypto/ess/
H A Dess_lib.c64 return NULL; in OSSL_ESS_signing_cert_new_init()
121 return NULL; in ESS_CERT_ID_new_init()
147 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
160 cid = NULL; in OSSL_ESS_signing_cert_v2_new_init()
167 return NULL; in OSSL_ESS_signing_cert_v2_new_init()
199 alg = NULL; in ESS_CERT_ID_V2_new_init()
247 return NULL; in ESS_CERT_ID_V2_new_init()
282 if (cid == NULL && cid_v2 == NULL) { in find()
295 md = EVP_MD_fetch(NULL, name, NULL); in find()
297 if (md == NULL) in find()
[all …]
/openssl/providers/common/
H A Dbio_prov.c79 return NULL; in ossl_prov_bio_new_file()
86 return NULL; in ossl_prov_bio_new_membuf()
108 if (c_bio_gets == NULL) in ossl_prov_bio_gets()
115 if (c_bio_puts == NULL) in ossl_prov_bio_puts()
122 if (c_bio_ctrl == NULL) in ossl_prov_bio_ctrl()
136 if (c_bio_free == NULL) in ossl_prov_bio_free()
211 if (corebiometh == NULL in ossl_bio_prov_init_bio_method()
220 return NULL; in ossl_bio_prov_init_bio_method()
232 return NULL; in ossl_bio_new_from_core_bio()
235 return NULL; in ossl_bio_new_from_core_bio()
[all …]
/openssl/crypto/hpke/
H A Dhpke.c160 if (EVP_DecryptInit_ex(ctx, hctx->aead_ciph, NULL, NULL, NULL) != 1) { in hpke_aead_dec()
241 if (EVP_EncryptInit_ex(ctx, hctx->aead_ciph, NULL, NULL, NULL) != 1) { in hpke_aead_enc()
456 if (ctx == NULL || enc == NULL || enclen == NULL || *enclen == 0 in hpke_encap()
557 if (ctx == NULL || enc == NULL || enclen == 0 || priv == NULL) { in hpke_decap()
872 if (ctx == NULL || pskid == NULL || psk == NULL || psklen == 0) { in OSSL_HPKE_CTX_set1_psk()
917 if (ctx == NULL || ikme == NULL) { in OSSL_HPKE_CTX_set1_ikme()
1028 if (ctx == NULL || seq == NULL) { in OSSL_HPKE_CTX_get_seq()
1063 if (ctx == NULL || enc == NULL || enclen == NULL || *enclen == 0 in OSSL_HPKE_encap()
1159 if (ctx == NULL || ct == NULL || ctlen == NULL || *ctlen == 0 in OSSL_HPKE_seal()
1201 if (ctx == NULL || pt == NULL || ptlen == NULL || *ptlen == 0 in OSSL_HPKE_open()
[all …]
/openssl/crypto/x509/
H A Dx509_v3.c24 if (x == NULL) in X509v3_get_ext_count()
36 if (obj == NULL) in X509v3_get_ext_by_NID()
47 if (sk == NULL) in X509v3_get_ext_by_OBJ()
67 if (sk == NULL) in X509v3_get_ext_by_critical()
135 if (*x == NULL) in STACK_OF()
140 if (x != NULL && *x == NULL) in STACK_OF()
142 return NULL; in STACK_OF()
199 if ((ex == NULL) || (*ex == NULL)) { in X509_EXTENSION_create_by_OBJ()
214 if ((ex != NULL) && (*ex == NULL)) in X509_EXTENSION_create_by_OBJ()
220 return NULL; in X509_EXTENSION_create_by_OBJ()
[all …]
/openssl/test/
H A Decdsatest.c76 const char *r_in = NULL, *s_in = NULL, *tbs = NULL; in x9_62_tests()
77 unsigned char *pbuf = NULL, *qbuf = NULL, *message = NULL; in x9_62_tests()
85 BIGNUM *r = NULL, *s = NULL; in x9_62_tests()
86 BIGNUM *kinv = NULL, *rp = NULL; in x9_62_tests()
193 EVP_PKEY *pkey_neg = NULL, *pkey = NULL, *dup_pk = NULL; in test_builtin()
249 || !TEST_true(EVP_DigestSignInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
273 if (!TEST_true(EVP_DigestVerifyInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
280 if (!TEST_true(EVP_DigestVerifyInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
315 if (!TEST_true(EVP_DigestVerifyInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
322 if (!TEST_true(EVP_DigestVerifyInit(mctx, NULL, NULL, NULL, pkey)) in test_builtin()
[all …]
H A Dtls-provider.c181 if (kmgmt_new != NULL && kmgmt_import != NULL && kmgmt_free != NULL) { in xor_prov_import_key()
482 if (pxorctx == NULL || vkey == NULL) in xor_init()
555 { NULL, NULL, NULL }
580 if (ct == NULL || ss == NULL) { in xor_encapsulate()
684 { NULL, NULL, NULL }
1309 { NULL, NULL, NULL }
2108 { NULL, NULL, NULL }
2232 && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf) in xor_der2key_decode_p8()
2583 { NULL, NULL, NULL }
2789 if (xorkey == NULL || sig == NULL || tbs == NULL) { in xor_sig_verify()
[all …]
H A Ddsatest.c64 DSA *dsa = NULL; in dsa_test()
70 const BIGNUM *p = NULL, *q = NULL, *g = NULL; in dsa_test()
152 EVP_PKEY *param_key = NULL, *key = NULL; in dsa_keygen_test()
153 EVP_PKEY_CTX *pg_ctx = NULL, *kg_ctx = NULL; in dsa_keygen_test()
154 BIGNUM *p_in = NULL, *q_in = NULL, *g_in = NULL; in dsa_keygen_test()
155 BIGNUM *p_out = NULL, *q_out = NULL, *g_out = NULL; in dsa_keygen_test()
332 BIGNUM *p = NULL, *q = NULL, *g = NULL, *priv = NULL, *pub = NULL, *priv2 = NULL; in test_dsa_sig_infinite_loop()
333 BIGNUM *badq = NULL, *badpriv = NULL; in test_dsa_sig_infinite_loop()
399 if (!TEST_true(DSA_set0_pqg(dsa, NULL, badq, NULL))) in test_dsa_sig_infinite_loop()
401 badq = NULL; in test_dsa_sig_infinite_loop()
[all …]
/openssl/crypto/ec/
H A Dec_backend.c72 return NULL; in ec_param_encoding_id2name()
83 return NULL; in ossl_ec_check_group_type_id2name()
154 return NULL; in ossl_ec_pt_format_id2name()
187 if (tmpl != NULL || param_p != NULL || param_a != NULL || param_b != NULL) { in ec_group_explicit_todata()
210 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
225 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
235 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
258 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
270 if (tmpl != NULL || param != NULL) { in ec_group_explicit_todata()
664 if (ret->meth != NULL && ret->meth->copy != NULL) { in ossl_ec_key_dup()
[all …]
/openssl/crypto/encode_decode/
H A Dencoder_lib.c62 if (ctx->cleanup == NULL || ctx->construct == NULL) { in OSSL_ENCODER_to_bio()
77 return NULL; in bio_from_file()
88 if (b != NULL) in OSSL_ENCODER_to_fp()
110 if (out != NULL in OSSL_ENCODER_to_data()
115 if (pdata != NULL && *pdata != NULL) { in OSSL_ENCODER_to_data()
242 return NULL; in ossl_encoder_instance_new()
290 if (!ossl_assert(ctx != NULL) || !ossl_assert(encoder != NULL)) { in OSSL_ENCODER_CTX_add_encoder()
324 if (ctx == NULL || ctx->encoder_insts == NULL) in OSSL_ENCODER_CTX_get_num_encoders()
366 return NULL; in OSSL_ENCODER_INSTANCE_get_encoder()
374 return NULL; in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
[all …]
/openssl/crypto/conf/
H A Dconf_api.c27 if (conf == NULL || section == NULL) in _CONF_get_section()
28 return NULL; in _CONF_get_section()
29 vv.name = NULL; in _CONF_get_section()
40 if (v == NULL) in STACK_OF()
41 return NULL; in STACK_OF()
57 if (v != NULL) { in _CONF_add_string()
73 return NULL; in _CONF_get_string()
93 if (v == NULL) in _CONF_get_string()
113 if (a->name != NULL && b->name != NULL) in conf_value_cmp()
210 if (v != NULL) in _CONF_new_section()
[all …]
/openssl/providers/fips/
H A Dself_test_kats.c82 return EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc) in cipher_init()
263 EVP_RAND_CTX *test = NULL, *drbg = NULL; in self_test_drbg()
373 EVP_PKEY_CTX *kactx = NULL, *dctx = NULL; in self_test_ka()
374 EVP_PKEY *pkey = NULL, *peerkey = NULL; in self_test_ka()
405 if (params == NULL || params_peer == NULL) in self_test_ka()
453 OSSL_PARAM *paramskey = NULL, *paramsinit = NULL; in self_test_digest_sign()
454 OSSL_PARAM_BLD *bldkey = NULL, *bldinit = NULL; in self_test_digest_sign()
481 if (bldkey == NULL || bldinit == NULL) in self_test_digest_sign()
572 OSSL_PARAM_BLD *keybld = NULL, *initbld = NULL; in self_test_asym_cipher()
573 EVP_PKEY_CTX *encctx = NULL, *keyctx = NULL; in self_test_asym_cipher()
[all …]
/openssl/crypto/pem/
H A Dpem_info.c48 return PEM_X509_INFO_read_ex(fp, sk, cb, u, NULL, NULL); in STACK_OF()
58 char *name = NULL, *header = NULL, *str; in STACK_OF()
68 if (sk == NULL) { in STACK_OF()
150 pp = NULL; in STACK_OF()
181 name = NULL; in STACK_OF()
185 data = NULL; in STACK_OF()
192 if ((xi->x509 != NULL) || (xi->crl != NULL) || in STACK_OF()
193 (xi->x_pkey != NULL) || (xi->enc_data != NULL)) { in STACK_OF()
196 xi = NULL; in STACK_OF()
208 ret = NULL; in STACK_OF()
[all …]
/openssl/fuzz/
H A Dx509.c38 BIO *bio = NULL; in FuzzerTestOneInput()
39 X509 *x509_1 = NULL, *x509_2 = NULL; in FuzzerTestOneInput()
43 X509_CRL *crl = NULL; in FuzzerTestOneInput()
51 if (x509_1 == NULL) in FuzzerTestOneInput()
55 if (bio == NULL) in FuzzerTestOneInput()
69 if (x509_2 == NULL) in FuzzerTestOneInput()
74 if (crl == NULL) in FuzzerTestOneInput()
94 if (ctx == NULL) in FuzzerTestOneInput()
99 if (crl != NULL) { in FuzzerTestOneInput()
110 if (resp != NULL) in FuzzerTestOneInput()
[all …]
/openssl/crypto/dsa/
H A Ddsa_ameth.c39 DSA *dsa = NULL; in dsa_pub_decode()
50 if ((dsa = d2i_DSAparams(NULL, &pm, pmlen)) == NULL) { in dsa_pub_decode()
65 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dsa_pub_decode()
70 if ((dsa->pub_key = ASN1_INTEGER_to_BN(public_key, NULL)) == NULL) { in dsa_pub_decode()
153 DSA *dsa = ossl_dsa_key_from_pkcs8(p8, NULL, NULL); in dsa_priv_decode()
325 if ((dsa = d2i_DSAparams(NULL, pder, derlen)) == NULL) in dsa_param_decode()
361 if ((dsa = d2i_DSAPrivateKey(NULL, pder, derlen)) == NULL) { in old_dsa_priv_decode()
442 if (p == NULL || q == NULL || g == NULL) in dsa_pkey_export_to()
573 NULL, NULL, NULL,
574 NULL, NULL, NULL,
[all …]

Completed in 147 milliseconds

12345678910>>...80