Home
last modified time | relevance | path

Searched refs:p7 (Results 1 – 25 of 45) sorted by relevance

12

/openssl/crypto/pkcs7/
H A Dpk7_lib.c46 if (p7->d.sign == NULL || p7->d.sign->contents->d.ptr == NULL) in PKCS7_ctrl()
121 p7->type = obj; in PKCS7_set_type()
131 p7->type = obj; in PKCS7_set_type()
136 p7->type = obj; in PKCS7_set_type()
146 p7->type = obj; in PKCS7_set_type()
155 p7->type = obj; in PKCS7_set_type()
165 p7->type = obj; in PKCS7_set_type()
184 p7->d.other = other; in PKCS7_set0_type_other()
478 return p7 != NULL ? &p7->ctx : NULL; in ossl_pkcs7_get0_ctx()
537 if (p7 == NULL || p7->d.ptr == NULL) in STACK_OF()
[all …]
H A Dpk7_smime.c28 PKCS7 *p7; in PKCS7_sign_ex() local
58 return p7; in PKCS7_sign_ex()
61 return p7; in PKCS7_sign_ex()
64 PKCS7_free(p7); in PKCS7_sign_ex()
231 if (p7 == NULL) { in PKCS7_verify()
377 if (p7 == NULL) { in STACK_OF()
432 PKCS7 *p7; in PKCS7_encrypt_ex() local
458 return p7; in PKCS7_encrypt_ex()
461 return p7; in PKCS7_encrypt_ex()
466 PKCS7_free(p7); in PKCS7_encrypt_ex()
[all …]
H A Dpk7_mime.c18 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in i2d_PKCS7_bio_stream() argument
20 return i2d_ASN1_bio_stream(out, (ASN1_VALUE *)p7, in, flags, in i2d_PKCS7_bio_stream()
30 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7() argument
33 int ctype_nid = OBJ_obj2nid(p7->type); in SMIME_write_PKCS7()
34 const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); in SMIME_write_PKCS7()
37 if (p7->d.sign == NULL) in SMIME_write_PKCS7()
39 mdalgs = p7->d.sign->md_algs; in SMIME_write_PKCS7()
52 PKCS7 *SMIME_read_PKCS7_ex(BIO *bio, BIO **bcont, PKCS7 **p7) in SMIME_read_PKCS7_ex() argument
58 if (p7 != NULL && *p7 != NULL) { in SMIME_read_PKCS7_ex()
59 libctx = (*p7)->ctx.libctx; in SMIME_read_PKCS7_ex()
[all …]
H A Dpk7_doit.c51 return p7->d.data; in PKCS7_get_octet_string()
52 if (PKCS7_type_is_other(p7) && p7->d.other in PKCS7_get_octet_string()
73 if (PKCS7_type_is_other(p7) && (p7->d.other != NULL) in pkcs7_get1_data()
251 if (p7 == NULL) { in PKCS7_dataInit()
458 if (p7 == NULL) { in PKCS7_dataDecode()
780 if (p7 == NULL) { in PKCS7_dataFinal()
803 os = p7->d.data; in PKCS7_dataFinal()
834 if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) { in PKCS7_dataFinal()
844 if (PKCS7_type_is_data(p7->d.digest->contents) && p7->detached) { in PKCS7_dataFinal()
1010 if (p7 == NULL) { in PKCS7_dataVerify()
[all …]
H A Dbio_pk7.c16 BIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7) in BIO_new_PKCS7() argument
18 return BIO_new_NDEF(out, (ASN1_VALUE *)p7, ASN1_ITEM_rptr(PKCS7)); in BIO_new_PKCS7()
H A Dpk7_local.h12 STACK_OF(X509) *pkcs7_get0_certificates(const PKCS7 *p7);
13 const PKCS7_CTX *ossl_pkcs7_get0_ctx(const PKCS7 *p7);
/openssl/crypto/pkcs12/
H A Dp12_add.c51 PKCS7 *p7; in PKCS12_pack_p7data() local
67 return p7; in PKCS12_pack_p7data()
70 PKCS7_free(p7); in PKCS12_pack_p7data()
77 if (!PKCS7_type_is_data(p7)) { in STACK_OF()
82 if (p7->d.data == NULL) { in STACK_OF()
99 PKCS7 *p7; in PKCS12_pack_p7encdata_ex() local
140 return p7; in PKCS12_pack_p7encdata_ex()
143 PKCS7_free(p7); in PKCS12_pack_p7encdata_ex()
162 if (p7->d.encrypted == NULL) { in STACK_OF()
171 p7->ctx.libctx, p7->ctx.propq); in STACK_OF()
[all …]
H A Dp12_npas.c65 PKCS7 *p7, *p7new; in newpass_p12() local
76 p7 = sk_PKCS7_value(asafes, i); in newpass_p12()
78 bagnid = OBJ_obj2nid(p7->type); in newpass_p12()
80 bags = PKCS12_unpack_p7data(p7); in newpass_p12()
82 bags = PKCS12_unpack_p7encdata(p7, oldpass, -1); in newpass_p12()
83 if (p7->d.encrypted == NULL in newpass_p12()
84 || !alg_get(p7->d.encrypted->enc_data->algorithm, in newpass_p12()
93 p7->ctx.libctx, p7->ctx.propq)) in newpass_p12()
101 p7->ctx.libctx, p7->ctx.propq); in newpass_p12()
H A Dp12_kiss.c145 PKCS7 *p7; in parse_pk12() local
150 p7 = sk_PKCS7_value(asafes, i); in parse_pk12()
151 bagnid = OBJ_obj2nid(p7->type); in parse_pk12()
153 bags = PKCS12_unpack_p7data(p7); in parse_pk12()
155 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in parse_pk12()
163 p7->ctx.libctx, p7->ctx.propq)) { in parse_pk12()
/openssl/apps/
H A Dpkcs7.c59 PKCS7 *p7 = NULL, *p7i; in pkcs7_main() local
127 if (p7 == NULL) { in pkcs7_main()
134 p7i = d2i_PKCS7_bio(in, &p7); in pkcs7_main()
148 PKCS7_print_ctx(out, p7, 0, NULL); in pkcs7_main()
154 i = OBJ_obj2nid(p7->type); in pkcs7_main()
157 if (p7->d.sign != NULL) { in pkcs7_main()
158 certs = p7->d.sign->cert; in pkcs7_main()
159 crls = p7->d.sign->crl; in pkcs7_main()
207 i = i2d_PKCS7_bio(out, p7); in pkcs7_main()
209 i = PEM_write_bio_PKCS7(out, p7); in pkcs7_main()
[all …]
H A Dsmime.c166 PKCS7 *p7 = NULL; in smime_main() local
529 p7 = PKCS7_new_ex(libctx, app_get0_propq()); in smime_main()
530 if (p7 == NULL) { in smime_main()
539 p7_in = d2i_PKCS7_bio(in, &p7); in smime_main()
592 if (p7 == NULL) in smime_main()
597 PKCS7_add_certificate(p7, x); in smime_main()
622 if (!PKCS7_final(p7, in, flags)) in smime_main()
627 if (p7 == NULL) { in smime_main()
646 signers = PKCS7_get0_signers(p7, other, flags); in smime_main()
654 PEM_write_bio_PKCS7(out, p7); in smime_main()
[all …]
H A Dcrl2pkcs7.c52 PKCS7 *p7 = NULL; in crl2pkcs7_main() local
126 if ((p7 = PKCS7_new()) == NULL) in crl2pkcs7_main()
130 p7->type = OBJ_nid2obj(NID_pkcs7_signed); in crl2pkcs7_main()
131 p7->d.sign = p7s; in crl2pkcs7_main()
165 i = i2d_PKCS7_bio(out, p7); in crl2pkcs7_main()
167 i = PEM_write_bio_PKCS7(out, p7); in crl2pkcs7_main()
178 PKCS7_free(p7); in crl2pkcs7_main()
/openssl/include/openssl/
H A Dpkcs7.h.in197 # define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7)) argument
240 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);
241 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7);
244 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);
245 int i2d_PKCS7_bio(BIO *bp, const PKCS7 *p7);
268 int PKCS7_type_is_other(PKCS7 *p7);
269 int PKCS7_set_type(PKCS7 *p7, int type);
278 int PKCS7_content_new(PKCS7 *p7, int nid);
284 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio);
285 int PKCS7_dataFinal(PKCS7 *p7, BIO *bio);
[all …]
/openssl/demos/smime/
H A Dsmsign2.c20 PKCS7 *p7 = NULL; in main() local
60 p7 = PKCS7_sign(NULL, NULL, NULL, in, PKCS7_STREAM | PKCS7_PARTIAL); in main()
62 if (!p7) in main()
67 if (!PKCS7_sign_add_signer(p7, scert, skey, NULL, 0)) in main()
70 if (!PKCS7_sign_add_signer(p7, scert2, skey2, NULL, 0)) in main()
79 if (!SMIME_write_PKCS7(out, p7, in, PKCS7_STREAM)) in main()
90 PKCS7_free(p7); in main()
H A Dsmdec.c20 PKCS7 *p7 = NULL; in main() local
50 p7 = SMIME_read_PKCS7(in, NULL); in main()
52 if (!p7) in main()
60 if (!PKCS7_decrypt(p7, rkey, rcert, out, 0)) in main()
71 PKCS7_free(p7); in main()
H A Dsmenc.c20 PKCS7 *p7 = NULL; in main() local
62 p7 = PKCS7_encrypt(recips, in, EVP_des_ede3_cbc(), flags); in main()
64 if (!p7) in main()
72 if (!SMIME_write_PKCS7(out, p7, in, flags)) in main()
83 PKCS7_free(p7); in main()
H A Dsmsign.c20 PKCS7 *p7 = NULL; in main() local
57 p7 = PKCS7_sign(scert, skey, NULL, in, flags); in main()
59 if (!p7) in main()
72 if (!SMIME_write_PKCS7(out, p7, in, flags)) in main()
83 PKCS7_free(p7); in main()
H A Dsmver.c20 PKCS7 *p7 = NULL; in main() local
54 p7 = SMIME_read_PKCS7(in, &cont); in main()
56 if (p7 == NULL) in main()
64 if (!PKCS7_verify(p7, NULL, st, cont, out, 0)) { in main()
79 PKCS7_free(p7); in main()
/openssl/test/
H A Dpkcs7_test.c136 PKCS7 *p7 = NULL; in pkcs7_verify_test() local
160 && TEST_ptr(p7 = SMIME_read_PKCS7(bio, NULL)) in pkcs7_verify_test()
162 && TEST_true(PKCS7_verify(p7, NULL, store, msg_bio, NULL, PKCS7_TEXT)) in pkcs7_verify_test()
167 PKCS7_free(p7); in pkcs7_verify_test()
227 PKCS7 *p7 = NULL; in pkcs7_inner_content_verify_test() local
376 && TEST_ptr(p7 = d2i_PKCS7_bio(bio, NULL)) in pkcs7_inner_content_verify_test()
378 && TEST_true(PKCS7_verify(p7, NULL, store, NULL, NULL, 0)) in pkcs7_inner_content_verify_test()
383 PKCS7_free(p7); in pkcs7_inner_content_verify_test()
/openssl/crypto/bn/asm/
H A Dia64.S980 cmp.ltu p7,p0=r18,r17
989 cmp.ltu p7,p0=r19,r18
997 cmp.ltu p7,p0=r20,r19
1005 cmp.ltu p7,p0=r21,r20
1009 cmp.ltu p7,p0=r22,r21
1013 cmp.ltu p7,p0=r23,r22
1057 cmp.ltu p7,p0=r17,r16
1068 cmp.ltu p7,p0=r18,r17
1072 cmp.ltu p7,p0=r19,r18
1470 (p7) fcvt.xuf.s1 f6=f6
[all …]
/openssl/fuzz/
H A Dsmime.c25 PKCS7 *p7 = SMIME_read_PKCS7(b, NULL); in FuzzerTestOneInput() local
27 if (p7 != NULL) { in FuzzerTestOneInput()
28 STACK_OF(PKCS7_SIGNER_INFO) *p7si = PKCS7_get_signer_info(p7); in FuzzerTestOneInput()
34 PKCS7_cert_from_signer_info(p7, in FuzzerTestOneInput()
39 PKCS7_free(p7); in FuzzerTestOneInput()
/openssl/crypto/poly1305/asm/
H A Dpoly1305-ia64.S52 (p7) ADDP r8=0,r33 }
238 cmp.ltu p7,p0=h1,r28
241 (p7) add r27=1,r27
244 cmp.ltu p6,p7=h1,r23
247 (p7) add h2=r31,r27
263 { .mmb; (p7) add h2=1,h2
302 cmp.ltu p6,p7=r20,r16
306 (p7) add r21=0,r17
310 (p7) add r22=0,r18
317 (p7) add r16=r16,r24
[all …]
/openssl/include/crypto/
H A Dpkcs7.h14 void ossl_pkcs7_resolve_libctx(PKCS7 *p7);
16 void ossl_pkcs7_set0_libctx(PKCS7 *p7, OSSL_LIB_CTX *ctx);
17 int ossl_pkcs7_set1_propq(PKCS7 *p7, const char *propq);
/openssl/doc/man3/
H A DSMIME_read_PKCS7.pod11 PKCS7 *SMIME_read_PKCS7_ex(BIO *bio, BIO **bcont, PKCS7 **p7);
28 a previously created I<p7> PKCS#7 object. If I<p7> is NULL then it is identical
30 To create a I<p7> object use L<PKCS7_new_ex(3)>.
45 PKCS7 *p7;
47 p7 = SMIME_read_PKCS7(in, &cont);
/openssl/crypto/ts/
H A Dts_rsp_sign.c37 static int ts_TST_INFO_content_new(PKCS7 *p7);
676 PKCS7 *p7 = NULL; in ts_RESP_sign() local
695 if (!PKCS7_set_type(p7, NID_pkcs7_signed)) in ts_RESP_sign()
697 if (!ASN1_INTEGER_set(p7->d.sign->version, 3)) in ts_RESP_sign()
701 PKCS7_add_certificate(p7, ctx->signer_cert); in ts_RESP_sign()
705 PKCS7_add_certificate(p7, cert); in ts_RESP_sign()
754 if (!ts_TST_INFO_content_new(p7)) in ts_RESP_sign()
764 if (!PKCS7_dataFinal(p7, p7bio)) { in ts_RESP_sign()
784 PKCS7_free(p7); in ts_RESP_sign()
788 static int ts_TST_INFO_content_new(PKCS7 *p7) in ts_TST_INFO_content_new() argument
[all …]

Completed in 60 milliseconds

12