Home
last modified time | relevance | path

Searched refs:PKCS7 (Results 1 – 25 of 63) sorted by relevance

123

/third_party/openssl/include/openssl/
Dpkcs7.h144 } PKCS7; typedef
146 DEFINE_STACK_OF(PKCS7)
210 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7);
211 int i2d_PKCS7_fp(FILE *fp, PKCS7 *p7);
213 PKCS7 *PKCS7_dup(PKCS7 *p7);
214 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7);
215 int i2d_PKCS7_bio(BIO *bp, PKCS7 *p7);
216 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
217 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags);
227 DECLARE_ASN1_FUNCTIONS(PKCS7)
[all …]
Dpkcs12.h120 PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk);
121 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7);
122 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
125 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass,
128 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes);
129 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
206 int PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags,
208 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
Dts.h104 TS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token);
230 void TS_RESP_set_tst_info(TS_RESP *a, PKCS7 *p7, TS_TST_INFO *tst_info);
231 PKCS7 *TS_RESP_get_token(TS_RESP *a);
419 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs,
467 int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token);
/third_party/openssl/crypto/pkcs7/
Dpk7_asn1.c20 ASN1_ADB_TEMPLATE(p7default) = ASN1_EXP_OPT(PKCS7, d.other, ASN1_ANY, 0);
22 ASN1_ADB(PKCS7) = {
23 ADB_ENTRY(NID_pkcs7_data, ASN1_NDEF_EXP_OPT(PKCS7, d.data, ASN1_OCTET_STRING_NDEF, 0)),
24 ADB_ENTRY(NID_pkcs7_signed, ASN1_NDEF_EXP_OPT(PKCS7, d.sign, PKCS7_SIGNED, 0)),
25 ADB_ENTRY(NID_pkcs7_enveloped, ASN1_NDEF_EXP_OPT(PKCS7, d.enveloped, PKCS7_ENVELOPE, 0)),
26 …ADB_ENTRY(NID_pkcs7_signedAndEnveloped, ASN1_NDEF_EXP_OPT(PKCS7, d.signed_and_enveloped, PKCS7_SIG…
27 ADB_ENTRY(NID_pkcs7_digest, ASN1_NDEF_EXP_OPT(PKCS7, d.digest, PKCS7_DIGEST, 0)),
28 ADB_ENTRY(NID_pkcs7_encrypted, ASN1_NDEF_EXP_OPT(PKCS7, d.encrypted, PKCS7_ENCRYPT, 0))
29 } ASN1_ADB_END(PKCS7, 0, type, 0, &p7default_tt, NULL);
36 PKCS7 **pp7 = (PKCS7 **)pval; in pk7_cb()
[all …]
Dpk7_mime.c17 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in i2d_PKCS7_bio_stream()
20 ASN1_ITEM_rptr(PKCS7)); in i2d_PKCS7_bio_stream()
23 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *in, int flags) in PEM_write_bio_PKCS7_stream()
26 "PKCS7", ASN1_ITEM_rptr(PKCS7)); in PEM_write_bio_PKCS7_stream()
29 int SMIME_write_PKCS7(BIO *bio, PKCS7 *p7, BIO *data, int flags) in SMIME_write_PKCS7()
42 ASN1_ITEM_rptr(PKCS7)); in SMIME_write_PKCS7()
45 PKCS7 *SMIME_read_PKCS7(BIO *bio, BIO **bcont) in SMIME_read_PKCS7()
47 return (PKCS7 *)SMIME_read_ASN1(bio, bcont, ASN1_ITEM_rptr(PKCS7)); in SMIME_read_PKCS7()
Dpk7_lib.c17 long PKCS7_ctrl(PKCS7 *p7, int cmd, long larg, char *parg) in PKCS7_ctrl()
63 int PKCS7_content_new(PKCS7 *p7, int type) in PKCS7_content_new()
65 PKCS7 *ret = NULL; in PKCS7_content_new()
80 int PKCS7_set_content(PKCS7 *p7, PKCS7 *p7_data) in PKCS7_set_content()
107 int PKCS7_set_type(PKCS7 *p7, int type) in PKCS7_set_type()
178 int PKCS7_set0_type_other(PKCS7 *p7, int type, ASN1_TYPE *other) in PKCS7_set0_type_other()
185 int PKCS7_add_signer(PKCS7 *p7, PKCS7_SIGNER_INFO *psi) in PKCS7_add_signer()
238 int PKCS7_add_certificate(PKCS7 *p7, X509 *x509) in PKCS7_add_certificate()
270 int PKCS7_add_crl(PKCS7 *p7, X509_CRL *crl) in PKCS7_add_crl()
349 PKCS7_SIGNER_INFO *PKCS7_add_signature(PKCS7 *p7, X509 *x509, EVP_PKEY *pkey, in PKCS7_add_signature()
[all …]
Dpk7_smime.c20 static int pkcs7_copy_existing_digest(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
22 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs, in PKCS7_sign()
25 PKCS7 *p7; in PKCS7_sign()
65 int PKCS7_final(PKCS7 *p7, BIO *data, int flags) in PKCS7_final()
109 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert, in PKCS7_sign_add_signer()
176 static int pkcs7_copy_existing_digest(PKCS7 *p7, PKCS7_SIGNER_INFO *si) in pkcs7_copy_existing_digest()
204 int PKCS7_verify(PKCS7 *p7, STACK_OF(X509) *certs, X509_STORE *store, in PKCS7_verify()
372 STACK_OF(X509) *PKCS7_get0_signers(PKCS7 *p7, STACK_OF(X509) *certs, in STACK_OF()
436 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, in PKCS7_encrypt()
439 PKCS7 *p7; in PKCS7_encrypt()
[all …]
Dbio_pk7.c21 BIO *BIO_new_PKCS7(BIO *out, PKCS7 *p7) in BIO_new_PKCS7()
23 return BIO_new_NDEF(out, (ASN1_VALUE *)p7, ASN1_ITEM_rptr(PKCS7)); in BIO_new_PKCS7()
/third_party/openssl/crypto/pkcs12/
Dp12_add.c46 PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG) *sk) in PKCS12_pack_p7data()
48 PKCS7 *p7; in PKCS12_pack_p7data()
72 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7data(PKCS7 *p7) in STACK_OF()
84 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata()
88 PKCS7 *p7; in PKCS12_pack_p7encdata()
130 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, in STACK_OF()
147 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes) in PKCS12_pack_authsafes()
155 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12) in STACK_OF() argument
Dp12_crt.c36 STACK_OF(PKCS7) *safes = NULL; in PKCS12_create()
206 int PKCS12_add_safe(STACK_OF(PKCS7) **psafes, STACK_OF(PKCS12_SAFEBAG) *bags, in PKCS12_add_safe()
209 PKCS7 *p7 = NULL; in PKCS12_add_safe()
275 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int nid_p7) in PKCS12_add_safes()
Dp12_asn.c20 ASN1_SIMPLE(PKCS12, authsafes, PKCS7),
75 ASN1_EX_TEMPLATE_TYPE(ASN1_TFLG_SEQUENCE_OF, 0, PKCS12_AUTHSAFES, PKCS7)
/third_party/openssl/doc/man3/
DPKCS7_sign_add_signer.pod5 PKCS7_sign_add_signer - add a signer PKCS7 signed data structure
11 PKCS7_SIGNER_INFO *PKCS7_sign_add_signer(PKCS7 *p7, X509 *signcert,
18 key B<pkey> using message digest B<md> to a PKCS7 signed data structure
21 The PKCS7 structure should be obtained from an initial call to PKCS7_sign()
22 with the flag B<PKCS7_PARTIAL> set or in the case or re-signing a valid PKCS7
28 Unless the B<PKCS7_REUSE_DIGEST> flag is set the returned PKCS7 structure
44 digest value from the PKCS7 structure: to add a signer to an existing structure.
46 returned PKCS7 structure will be valid and finalized when this flag is set.
54 PKCS7 structure, the signer's certificate must still be supplied in the
DPKCS7_sign.pod11 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
35 PKCS7 structure, the signer's certificate must still be supplied in the
40 The data being signed is included in the PKCS7 structure, unless
41 B<PKCS7_DETACHED> is set in which case it is omitted. This is used for PKCS7
60 If the flags B<PKCS7_STREAM> is set then the returned B<PKCS7> structure is
66 If the B<PKCS7_PARTIAL> flag is set a partial B<PKCS7> structure is output to
71 If the flag B<PKCS7_STREAM> is set the returned B<PKCS7> structure is B<not>
73 finalize the B<PKCS7> structure will give unpredictable results.
101 PKCS7_sign() returns either a valid PKCS7 structure or NULL if an error
DPEM_write_bio_PKCS7_stream.pod5 PEM_write_bio_PKCS7_stream - output PKCS7 structure in PEM format
11 int PEM_write_bio_PKCS7_stream(BIO *out, PKCS7 *p7, BIO *data, int flags);
15 PEM_write_bio_PKCS7_stream() outputs a PKCS7 structure in PEM format.
Di2d_PKCS7_bio_stream.pod5 i2d_PKCS7_bio_stream - output PKCS7 structure in BER format
11 int i2d_PKCS7_bio_stream(BIO *out, PKCS7 *p7, BIO *data, int flags);
15 i2d_PKCS7_bio_stream() outputs a PKCS7 structure in BER format.
DPKCS7_encrypt.pod11 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,
52 If the B<PKCS7_STREAM> flag is set a partial B<PKCS7> structure is output
57 If the flag B<PKCS7_STREAM> is set the returned B<PKCS7> structure is B<not>
59 properly finalize the B<PKCS7> structure will give unpredictable
69 PKCS7_encrypt() returns either a PKCS7 structure or NULL if an error occurred.
DSMIME_read_PKCS7.pod11 PKCS7 *SMIME_read_PKCS7(BIO *in, BIO **bcont);
39 PKCS7 *p7;
49 The parser assumes that the PKCS7 structure is always base64
59 SMIME_read_PKCS7() returns a valid B<PKCS7> structure or B<NULL>
/third_party/mbedtls/tests/suites/
Dtest_suite_cipher.aes.data9 AES-128 CBC - Encrypt and decrypt 0 bytes with PKCS7 padding
13 AES-128 CBC - Encrypt and decrypt 1 byte with PKCS7 padding
17 AES-128 CBC - Encrypt and decrypt 2 bytes with PKCS7 padding
21 AES-128 CBC - Encrypt and decrypt 7 bytes with PKCS7 padding
25 AES-128 CBC - Encrypt and decrypt 8 bytes with PKCS7 padding
29 AES-128 CBC - Encrypt and decrypt 9 bytes with PKCS7 padding
33 AES-128 CBC - Encrypt and decrypt 15 bytes with PKCS7 padding
37 AES-128 CBC - Encrypt and decrypt 16 bytes with PKCS7 padding
41 AES-128 CBC - Encrypt and decrypt 17 bytes with PKCS7 padding
45 AES-128 CBC - Encrypt and decrypt 31 bytes with PKCS7 padding
[all …]
/third_party/openssl/crypto/x509/
Dx_all.c154 PKCS7 *d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) in d2i_PKCS7_fp()
156 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); in d2i_PKCS7_fp()
159 int i2d_PKCS7_fp(FILE *fp, PKCS7 *p7) in i2d_PKCS7_fp()
161 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); in i2d_PKCS7_fp()
165 PKCS7 *d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) in d2i_PKCS7_bio()
167 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); in d2i_PKCS7_bio()
170 int i2d_PKCS7_bio(BIO *bp, PKCS7 *p7) in i2d_PKCS7_bio()
172 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); in i2d_PKCS7_bio()
/third_party/openssl/test/
Dpkcs7-1.pem1 -----BEGIN PKCS7-----
15 -----END PKCS7-----
Dtestp7.pem1 -----BEGIN PKCS7-----
46 -----END PKCS7-----
/third_party/openssl/crypto/pem/
Dpem_all.c36 IMPLEMENT_PEM_rw(PKCS7, PKCS7, PEM_STRING_PKCS7, PKCS7) in IMPLEMENT_PEM_rw()
/third_party/openssl/demos/pkcs12/
Dpkread.c20 STACK_OF(PKCS7) *safes; in find_friendly_name()
23 PKCS7 *safe; in find_friendly_name()
/third_party/openssl/crypto/ts/
Dts_rsp_verify.c25 PKCS7 *token, TS_TST_INFO *tst_info);
90 int TS_RESP_verify_signature(PKCS7 *token, STACK_OF(X509) *certs, in TS_RESP_verify_signature()
372 PKCS7 *token = response->token; in TS_RESP_verify_response()
390 int TS_RESP_verify_token(TS_VERIFY_CTX *ctx, PKCS7 *token) in TS_RESP_verify_token()
414 PKCS7 *token, TS_TST_INFO *tst_info) in int_ts_RESP_verify_token()
Dts_asn1.c176 ASN1_OPT(TS_RESP, token, PKCS7),
246 TS_TST_INFO *PKCS7_to_TS_TST_INFO(PKCS7 *token)
249 PKCS7 *enveloped;

123