Home
last modified time | relevance | path

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

1234

/freebsd/crypto/openssl/crypto/pkcs7/
H A Dpk7_lib.c20 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg) in PKCS7_ctrl() argument
25 nid = OBJ_obj2nid(p7->type); in PKCS7_ctrl()
31 ret = p7->detached = (int)larg; in PKCS7_ctrl()
32 if (ret && PKCS7_type_is_data(p7->d.sign->contents)) { in PKCS7_ctrl()
34 os = p7->d.sign->contents->d.data; in PKCS7_ctrl()
36 p7->d.sign->contents->d.data = NULL; in PKCS7_ctrl()
46 if (p7->d.sign == NULL || p7->d.sign->contents->d.ptr == NULL) in PKCS7_ctrl()
51 p7->detached = ret; in PKCS7_ctrl()
66 int PKCS7_content_new(PKCS7 *p7, int type) in PKCS7_content_new() argument
74 if (!PKCS7_set_content(p7, ret)) in PKCS7_content_new()
[all …]
H A Dpk7_smime.c21 static int pkcs7_copy_existing_digest(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
27 PKCS7 *p7; in PKCS7_sign_ex() local
30 if ((p7 = PKCS7_new_ex(libctx, propq)) == NULL) { in PKCS7_sign_ex()
35 if (!PKCS7_set_type(p7, NID_pkcs7_signed)) in PKCS7_sign_ex()
38 if (!PKCS7_content_new(p7, NID_pkcs7_data)) in PKCS7_sign_ex()
41 if (pkey && !PKCS7_sign_add_signer(p7, signcert, pkey, NULL, flags)) { in PKCS7_sign_ex()
48 if (!PKCS7_add_certificate(p7, sk_X509_value(certs, i))) in PKCS7_sign_ex()
54 PKCS7_set_detached(p7, 1); in PKCS7_sign_ex()
57 return p7; in PKCS7_sign_ex()
59 if (PKCS7_final(p7, data, flags)) in PKCS7_sign_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()
24 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in PEM_write_bio_PKCS7_stream() argument
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 if (p7->d.sign == NULL) in SMIME_write_PKCS7()
39 mdalgs = p7->d.sign->md_algs; in SMIME_write_PKCS7()
46 return SMIME_write_ASN1_ex(bio, (ASN1_VALUE *)p7, data, flags, ctype_nid, in SMIME_write_PKCS7()
[all …]
H A Dpk7_doit.c24 int PKCS7_type_is_other(PKCS7 *p7) in PKCS7_type_is_other() argument
28 int nid = OBJ_obj2nid(p7->type); in PKCS7_type_is_other()
47 ASN1_OCTET_STRING *PKCS7_get_octet_string(PKCS7 *p7) in PKCS7_get_octet_string() argument
49 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()
52 && (p7->d.other->type == V_ASN1_OCTET_STRING)) in PKCS7_get_octet_string()
53 return p7->d.other->value.octet_string; in PKCS7_get_octet_string()
207 BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) in PKCS7_dataInit() argument
224 if (p7 == NULL) { in PKCS7_dataInit()
[all …]
/freebsd/crypto/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()
57 p7->type = OBJ_nid2obj(NID_pkcs7_data); in PKCS12_pack_p7data()
58 if ((p7->d.data = ASN1_OCTET_STRING_new()) == NULL) { in PKCS12_pack_p7data()
63 if (!ASN1_item_pack(sk, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), &p7->d.data)) { in PKCS12_pack_p7data()
67 return p7; in PKCS12_pack_p7data()
70 PKCS7_free(p7); in PKCS12_pack_p7data()
75 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7) in STACK_OF()
77 if (!PKCS7_type_is_data(p7)) { in STACK_OF()
82 if (p7->d.data == NULL) { 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 (p7->d.encrypted == NULL in newpass_p12()
81 || !alg_get(p7->d.encrypted->enc_data->algorithm, in newpass_p12()
/freebsd/crypto/openssl/include/openssl/
H A Dpkcs7.h.in194 # define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7)) argument
237 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);
238 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7);
241 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);
242 int i2d_PKCS7_bio(BIO *bp, const PKCS7 *p7);
243 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
244 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
263 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);
265 int PKCS7_type_is_other(PKCS7 *p7);
266 int PKCS7_set_type(PKCS7 *p7, int type);
[all …]
H A Dpkcs7.h265 # define PKCS7_is_detached(p7) (PKCS7_type_is_signed(p7) && PKCS7_get_detached(p7)) argument
308 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);
309 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7);
312 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);
313 int i2d_PKCS7_bio(BIO *bp, const PKCS7 *p7);
314 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
315 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
334 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg);
336 int PKCS7_type_is_other(PKCS7 *p7);
337 int PKCS7_set_type(PKCS7 *p7, int type);
[all …]
/freebsd/crypto/openssl/apps/
H A Dpkcs7.c57 PKCS7 *p7 = NULL, *p7i; in pkcs7_main() local
122 p7 = PKCS7_new_ex(libctx, app_get0_propq()); in pkcs7_main()
123 if (p7 == NULL) { in pkcs7_main()
130 p7i = d2i_PKCS7_bio(in, &p7); in pkcs7_main()
132 p7i = PEM_read_bio_PKCS7(in, &p7, NULL, NULL); in pkcs7_main()
144 PKCS7_print_ctx(out, p7, 0, NULL); in pkcs7_main()
150 i = OBJ_obj2nid(p7->type); in pkcs7_main()
153 if (p7->d.sign != NULL) { in pkcs7_main()
154 certs = p7->d.sign->cert; in pkcs7_main()
155 crls = p7->d.sign->crl; in pkcs7_main()
[all …]
H A Dsmime.c137 PKCS7 *p7 = NULL; in smime_main() local
501 p7 = PKCS7_new_ex(libctx, app_get0_propq()); in smime_main()
502 if (p7 == NULL) { in smime_main()
507 p7_in = SMIME_read_PKCS7_ex(in, &indata, &p7); in smime_main()
509 p7_in = PEM_read_bio_PKCS7(in, &p7, NULL, NULL); in smime_main()
511 p7_in = d2i_PKCS7_bio(in, &p7); in smime_main()
548 p7 = PKCS7_encrypt_ex(encerts, in, cipher, flags, libctx, app_get0_propq()); in smime_main()
563 p7 = PKCS7_sign_ex(NULL, NULL, other, in, flags, libctx, app_get0_propq()); in smime_main()
564 if (p7 == NULL) in smime_main()
569 PKCS7_add_certificate(p7, x); in smime_main()
[all …]
H A Dcrl2pkcs7.c52 PKCS7 *p7 = NULL; in crl2pkcs7_main() local
127 if ((p7 = PKCS7_new()) == NULL) in crl2pkcs7_main()
131 p7->type = OBJ_nid2obj(NID_pkcs7_signed); in crl2pkcs7_main()
132 p7->d.sign = p7s; in crl2pkcs7_main()
166 i = i2d_PKCS7_bio(out, p7); in crl2pkcs7_main()
168 i = PEM_write_bio_PKCS7(out, p7); in crl2pkcs7_main()
179 PKCS7_free(p7); in crl2pkcs7_main()
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-more-actions.h224 p6, p7) \ argument
227 typename p6##_type, typename p7##_type
229 p6, p7, p8) \ argument
232 typename p6##_type, typename p7##_type, typename p8##_type
234 p6, p7, p8, p9) \ argument
237 typename p6##_type, typename p7##_type, typename p8##_type, \
287 #define GMOCK_INTERNAL_INIT_AND_8_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7) \ argument
290 p6##_type gmock_p6, p7##_type gmock_p7) \
298 p7(::std::move(gmock_p7))
299 #define GMOCK_INTERNAL_INIT_AND_9_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, p6, p7, \ argument
[all …]
/freebsd/crypto/openssl/crypto/bn/asm/
H A Dia64.S750 cmp.ltu p7,p0=r17,r16 }
755 (p7) add carry2=1,carry2 }
756 { .mfi; cmp.ltu p7,p0=r18,r17
761 (p7) add carry2=1,carry2 }
762 { .mfi; cmp.ltu p7,p0=r18,carry1
766 (p7) add carry2=1,carry2 }
809 cmp.ltu p7,p0=r17,r16 }
815 (p7) add carry2=1,carry2 }
816 { .mfi; cmp.ltu p7,p0=r18,r17
824 (p7) add carry2=1,carry2 }
[all …]
/freebsd/crypto/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 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()
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()
/freebsd/crypto/openssl/crypto/poly1305/asm/
H A Dpoly1305-ia64.S45 cmp.eq p6,p7=0,r33 } // key == NULL?
52 (p7) ADDP r8=0,r33 }
148 { .mmi; cmp.eq p8,p7=0,r29
165 { .mmi; (p7) ld8 r14=[r10],24
166 (p7) ld8 r15=[r11],24 }
168 { .mii; (p7) ld8 r16=[r16]
193 cmp.ltu p7,p0=h1,i1 };;
196 (p6) cmp.eq.or p7,p0=0,h1 };;
197 { .mmi; (p7) add h2=1,h2;;
238 cmp.ltu p7,p0=h1,r28
[all …]
/freebsd/sys/contrib/openzfs/module/icp/algs/edonr/
H A Dedonr.c121 uint64_t p0, p1, p2, p3, p4, p5, p6, p7; in Q512() local
154 QEF_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
156 LS1_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
162 LS2_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
163 QEF_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
165 LS1_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
170 LS1_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
172 QEF_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
175 LS2_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
180 LS2_512(p0, p1, p2, p3, p4, p5, p6, p7); in Q512()
[all …]
/freebsd/crypto/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()
/freebsd/crypto/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);
/freebsd/crypto/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);
/freebsd/crypto/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
693 if ((p7 = PKCS7_new_ex(ctx->libctx, ctx->propq)) == NULL) { in ts_RESP_sign()
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()
720 if ((si = PKCS7_add_signature(p7, ctx->signer_cert, in ts_RESP_sign()
756 if (!ts_TST_INFO_content_new(p7)) in ts_RESP_sign()
758 if ((p7bio = PKCS7_dataInit(p7, NULL)) == NULL) { in ts_RESP_sign()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dx_all.c218 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) in d2i_PKCS7_fp() argument
224 if (p7 != NULL && *p7 != NULL) { in d2i_PKCS7_fp()
225 libctx = (*p7)->ctx.libctx; in d2i_PKCS7_fp()
226 propq = (*p7)->ctx.propq; in d2i_PKCS7_fp()
229 ret = ASN1_item_d2i_fp_ex(ASN1_ITEM_rptr(PKCS7), fp, p7, libctx, propq); in d2i_PKCS7_fp()
235 int i2d_PKCS7_fp(FILE *fp, const PKCS7 *p7) in i2d_PKCS7_fp() argument
237 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); in i2d_PKCS7_fp()
241 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio() argument
247 if (p7 != NULL && *p7 != NULL) { in d2i_PKCS7_bio()
248 libctx = (*p7)->ctx.libctx; in d2i_PKCS7_bio()
[all …]

1234