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()
470 return p7 != NULL ? &p7->ctx : NULL; in ossl_pkcs7_get0_ctx()
531 if (p7 == NULL || p7->d.ptr == NULL) in STACK_OF()
[all …]
H A Dpk7_smime.c27 PKCS7 *p7; in PKCS7_sign_ex() local
57 return p7; in PKCS7_sign_ex()
60 return p7; in PKCS7_sign_ex()
63 PKCS7_free(p7); in PKCS7_sign_ex()
227 if (p7 == NULL) { in PKCS7_verify()
370 if (p7 == NULL) { in STACK_OF()
427 PKCS7 *p7; in PKCS7_encrypt_ex() local
453 return p7; in PKCS7_encrypt_ex()
456 return p7; in PKCS7_encrypt_ex()
461 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()
26 return PEM_write_bio_ASN1_stream(out, (ASN1_VALUE *)p7, in, flags, in PEM_write_bio_PKCS7_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 mdalgs = p7->d.sign->md_algs; in SMIME_write_PKCS7()
49 PKCS7 *SMIME_read_PKCS7_ex(BIO *bio, BIO **bcont, PKCS7 **p7) in SMIME_read_PKCS7_ex() argument
55 if (p7 != NULL && *p7 != NULL) { in SMIME_read_PKCS7_ex()
56 libctx = (*p7)->ctx.libctx; in SMIME_read_PKCS7_ex()
[all …]
H A Dpk7_doit.c49 if (PKCS7_type_is_data(p7)) in PKCS7_get_octet_string()
50 return p7->d.data; in PKCS7_get_octet_string()
51 if (PKCS7_type_is_other(p7) && p7->d.other in PKCS7_get_octet_string()
220 if (p7 == NULL) { in PKCS7_dataInit()
413 if (p7 == NULL) { in PKCS7_dataDecode()
731 if (p7 == NULL) { in PKCS7_dataFinal()
754 os = p7->d.data; in PKCS7_dataFinal()
785 if (PKCS7_type_is_data(p7->d.sign->contents) && p7->detached) { in PKCS7_dataFinal()
795 if (PKCS7_type_is_data(p7->d.digest->contents) && p7->detached) { in PKCS7_dataFinal()
960 if (p7 == NULL) { in PKCS7_dataVerify()
[all …]
H A Dbio_pk7.c21 BIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7) in BIO_new_PKCS7() argument
23 return BIO_new_NDEF(out, (ASN1_VALUE *)p7, ASN1_ITEM_rptr(PKCS7)); in BIO_new_PKCS7()
/openssl/crypto/pkcs12/
H A Dp12_add.c51 PKCS7 *p7; in PKCS12_pack_p7data() local
53 if ((p7 = PKCS7_new()) == NULL) { in PKCS12_pack_p7data()
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()
91 PKCS7 *p7; in PKCS12_pack_p7encdata_ex() local
132 return p7; in PKCS12_pack_p7encdata_ex()
135 PKCS7_free(p7); in PKCS12_pack_p7encdata_ex()
151 if (!PKCS7_type_is_encrypted(p7)) in STACK_OF()
157 p7->ctx.libctx, p7->ctx.propq); in STACK_OF()
[all …]
H A Dp12_npas.c63 PKCS7 *p7, *p7new; in newpass_p12() local
74 p7 = sk_PKCS7_value(asafes, i); in newpass_p12()
75 bagnid = OBJ_obj2nid(p7->type); in newpass_p12()
77 bags = PKCS12_unpack_p7data(p7); in newpass_p12()
79 bags = PKCS12_unpack_p7encdata(p7, oldpass, -1); in newpass_p12()
80 if (!alg_get(p7->d.encrypted->enc_data->algorithm, in newpass_p12()
H A Dp12_kiss.c143 PKCS7 *p7; in parse_pk12() local
148 p7 = sk_PKCS7_value(asafes, i); in parse_pk12()
149 bagnid = OBJ_obj2nid(p7->type); in parse_pk12()
151 bags = PKCS12_unpack_p7data(p7); in parse_pk12()
153 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); 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.c137 PKCS7 *p7 = NULL; in smime_main() local
499 p7 = PKCS7_new_ex(libctx, app_get0_propq()); in smime_main()
500 if (p7 == NULL) { in smime_main()
509 p7_in = d2i_PKCS7_bio(in, &p7); in smime_main()
562 if (p7 == NULL) in smime_main()
567 PKCS7_add_certificate(p7, x); in smime_main()
592 if (!PKCS7_final(p7, in, flags)) in smime_main()
597 if (p7 == NULL) { in smime_main()
616 signers = PKCS7_get0_signers(p7, other, flags); in smime_main()
624 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
58 p7 = PKCS7_sign(NULL, NULL, NULL, in, PKCS7_STREAM | PKCS7_PARTIAL); in main()
60 if (!p7) in main()
65 if (!PKCS7_sign_add_signer(p7, scert, skey, NULL, 0)) in main()
68 if (!PKCS7_sign_add_signer(p7, scert2, skey2, NULL, 0)) in main()
77 if (!SMIME_write_PKCS7(out, p7, in, PKCS7_STREAM)) in main()
87 PKCS7_free(p7); in main()
H A Dsmdec.c20 PKCS7 *p7 = NULL; in main() local
49 p7 = SMIME_read_PKCS7(in, NULL); in main()
51 if (!p7) in main()
59 if (!PKCS7_decrypt(p7, rkey, rcert, out, 0)) in main()
69 PKCS7_free(p7); in main()
H A Dsmenc.c20 PKCS7 *p7 = NULL; in main() local
63 p7 = PKCS7_encrypt(recips, in, EVP_des_ede3_cbc(), flags); in main()
65 if (!p7) in main()
73 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
56 p7 = PKCS7_sign(scert, skey, NULL, in, flags); in main()
58 if (!p7) in main()
69 if (!SMIME_write_PKCS7(out, p7, in, flags)) in main()
79 PKCS7_free(p7); in main()
H A Dsmver.c20 PKCS7 *p7 = NULL; in main() local
55 p7 = SMIME_read_PKCS7(in, &cont); in main()
57 if (p7 == NULL) in main()
65 if (!PKCS7_verify(p7, NULL, st, cont, out, 0)) { in main()
81 PKCS7_free(p7); in main()
/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/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/test/
H A Dpkcs7_test.c58 PKCS7 *p7 = NULL; in pkcs7_verify_test() local
82 && TEST_ptr(p7 = SMIME_read_PKCS7(bio, NULL)) in pkcs7_verify_test()
84 && TEST_true(PKCS7_verify(p7, NULL, store, msg_bio, NULL, PKCS7_TEXT)) in pkcs7_verify_test()
89 PKCS7_free(p7); in pkcs7_verify_test()
H A Dbio_memleak_test.c243 PKCS7 *p7 = NULL; in test_bio_i2d_ASN1_mime() local
257 if (!TEST_ptr(p7 = PKCS7_new())) in test_bio_i2d_ASN1_mime()
259 if (!TEST_true(PKCS7_set_type(p7, NID_pkcs7_data))) in test_bio_i2d_ASN1_mime()
268 if (!TEST_true(i2d_ASN1_bio_stream(out, (ASN1_VALUE*) p7, bio, in test_bio_i2d_ASN1_mime()
281 PKCS7_free(p7); in test_bio_i2d_ASN1_mime()
/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/x509/
H A Dx_all.c183 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) in d2i_PKCS7_fp() argument
189 if (p7 != NULL && *p7 != NULL) { in d2i_PKCS7_fp()
190 libctx = (*p7)->ctx.libctx; in d2i_PKCS7_fp()
191 propq = (*p7)->ctx.propq; in d2i_PKCS7_fp()
200 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7) in i2d_PKCS7_fp() argument
202 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); in i2d_PKCS7_fp()
206 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio() argument
212 if (p7 != NULL && *p7 != NULL) { in d2i_PKCS7_bio()
213 libctx = (*p7)->ctx.libctx; in d2i_PKCS7_bio()
214 propq = (*p7)->ctx.propq; in d2i_PKCS7_bio()
[all …]
/openssl/crypto/ts/
H A Dts_rsp_sign.c36 static int ts_TST_INFO_content_new(PKCS7 *p7);
678 PKCS7 *p7 = NULL; in ts_RESP_sign() local
697 if (!PKCS7_set_type(p7, NID_pkcs7_signed)) in ts_RESP_sign()
699 if (!ASN1_INTEGER_set(p7->d.sign->version, 3)) in ts_RESP_sign()
703 PKCS7_add_certificate(p7, ctx->signer_cert); in ts_RESP_sign()
707 PKCS7_add_certificate(p7, cert); in ts_RESP_sign()
756 if (!ts_TST_INFO_content_new(p7)) in ts_RESP_sign()
766 if (!PKCS7_dataFinal(p7, p7bio)) { in ts_RESP_sign()
786 PKCS7_free(p7); in ts_RESP_sign()
790 static int ts_TST_INFO_content_new(PKCS7 *p7) in ts_TST_INFO_content_new() argument
[all …]

Completed in 66 milliseconds

12