Home
last modified time | relevance | path

Searched refs:si (Results 1 – 25 of 44) sorted by relevance

12

/openssl/crypto/cms/
H A Dcms_att.c72 return X509at_get_attr_count(si->signedAttrs); in CMS_signed_get_attr_count()
88 return X509at_get_attr(si->signedAttrs, loc); in CMS_signed_get_attr()
93 return X509at_delete_attr(si->signedAttrs, loc); in CMS_signed_delete_attr()
98 if (ossl_x509at_add1_attr(&si->signedAttrs, attr)) in CMS_signed_add1_attr()
103 int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_OBJ() argument
112 int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_NID() argument
120 int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si, in CMS_signed_add1_attr_by_txt() argument
139 return X509at_get_attr_count(si->unsignedAttrs); in CMS_unsigned_get_attr_count()
156 return X509at_get_attr(si->unsignedAttrs, loc); in CMS_unsigned_get_attr()
171 int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si, in CMS_unsigned_add1_attr_by_OBJ() argument
[all …]
H A Dcms_sd.c70 CMS_SignerInfo *si; in cms_sd_set_version() local
352 if (!si) { in CMS_add1_signer()
363 si->pkey = pk; in CMS_add1_signer()
366 si->pctx = NULL; in CMS_add1_signer()
510 } else if (EVP_DigestSignInit_ex(si->mctx, &si->pctx, in CMS_add1_signer()
530 return si; in CMS_add1_signer()
588 return si->pctx; in CMS_SignerInfo_get0_pkey_ctx()
593 return si->mctx; in CMS_SignerInfo_get0_md_ctx()
736 if (si->pctx && !cms_sd_asn1_ctrl(si, 0)) in cms_SignerInfo_content_sign()
850 if (si->pctx) { in CMS_SignerInfo_sign()
[all …]
H A Dcms_ess.c34 str = CMS_signed_get0_data_by_OBJ(si, obj, -3, V_ASN1_SEQUENCE); in IMPLEMENT_ASN1_FUNCTIONS()
102 int ossl_cms_check_signing_certs(const CMS_SignerInfo *si, in ossl_cms_check_signing_certs() argument
107 int ret = ossl_cms_signerinfo_get_signing_cert(si, &ss) >= 0 in ossl_cms_check_signing_certs()
218 static int cms_msgSigDigest(CMS_SignerInfo *si, in cms_msgSigDigest() argument
226 si->signedAttrs, dig, diglen, in cms_msgSigDigest()
260 CMS_SignerInfo *si, *osi = NULL; in ossl_cms_Receipt_verify() local
310 si = sk_CMS_SignerInfo_value(sis, 0); in ossl_cms_Receipt_verify()
314 msig = CMS_signed_get0_data_by_OBJ(si, in ossl_cms_Receipt_verify()
394 if (CMS_get1_ReceiptRequest(si, &rr) <= 0) { in ossl_cms_encode_Receipt()
401 ctype = CMS_signed_get0_data_by_OBJ(si, in ossl_cms_encode_Receipt()
[all …]
H A Dcms_rsa.c195 static int rsa_cms_sign(CMS_SignerInfo *si) in rsa_cms_sign() argument
199 EVP_PKEY_CTX *pkctx = CMS_SignerInfo_get0_pkey_ctx(si); in rsa_cms_sign()
205 CMS_SignerInfo_get0_algs(si, NULL, NULL, NULL, &alg); in rsa_cms_sign()
244 static int rsa_cms_verify(CMS_SignerInfo *si) in rsa_cms_verify() argument
248 EVP_PKEY_CTX *pkctx = CMS_SignerInfo_get0_pkey_ctx(si); in rsa_cms_verify()
251 CMS_SignerInfo_get0_algs(si, NULL, NULL, NULL, &alg); in rsa_cms_verify()
270 int ossl_cms_rsa_sign(CMS_SignerInfo *si, int verify) in ossl_cms_rsa_sign() argument
275 return rsa_cms_verify(si); in ossl_cms_rsa_sign()
278 return rsa_cms_sign(si); in ossl_cms_rsa_sign()
H A Dcms_smime.c310 CMS_SignerInfo *si; in CMS_verify() local
340 si = sk_CMS_SignerInfo_value(sinfos, i); in CMS_verify()
376 si = sk_CMS_SignerInfo_value(sinfos, i); in CMS_verify()
389 si = sk_CMS_SignerInfo_value(sinfos, i); in CMS_verify()
390 if (CMS_signed_get_attr_count(si) < 0) in CMS_verify()
392 if (CMS_SignerInfo_verify(si) <= 0) in CMS_verify()
464 si = sk_CMS_SignerInfo_value(sinfos, i); in CMS_verify()
567 CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si, in CMS_sign_receipt() argument
576 const CMS_CTX *ctx = si->cms_ctx; in CMS_sign_receipt()
604 os = ossl_cms_encode_Receipt(si); in CMS_sign_receipt()
[all …]
/openssl/crypto/cmp/
H A Dcmp_status.c35 if (!ossl_assert(si != NULL && si->status != NULL)) in ossl_cmp_pkisi_get_status()
37 res = ossl_cmp_asn1_get_int(si->status); in ossl_cmp_pkisi_get_status()
67 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get0_statusString()
69 return si->statusString; in ossl_cmp_pkisi_get0_statusString()
77 if (!ossl_assert(si != NULL)) in ossl_cmp_pkisi_get_pkifailureinfo()
79 if (si->failInfo != NULL) in ossl_cmp_pkisi_get_pkifailureinfo()
154 if (!ossl_assert(si != NULL && si->failInfo != NULL)) in ossl_cmp_pkisi_check_pkifailureinfo()
285 if (si == NULL) in OSSL_CMP_STATUSINFO_new()
304 if (si->failInfo == NULL in OSSL_CMP_STATUSINFO_new()
311 return si; in OSSL_CMP_STATUSINFO_new()
[all …]
H A Dcmp_server.c177 OSSL_CMP_PKISI *si; in delayed_delivery() local
199 if (si == NULL) in delayed_delivery()
204 OSSL_CMP_PKISI_free(si); in delayed_delivery()
217 OSSL_CMP_PKISI *si = NULL; in process_cert_request() local
271 if (si == NULL) in process_cert_request()
278 if (si == NULL) in process_cert_request()
300 OSSL_CMP_PKISI_free(si); in process_cert_request()
316 OSSL_CMP_PKISI *si; in process_rr() local
346 OSSL_CMP_PKISI_free(si); in process_rr()
430 if (si != NULL in process_certConf()
[all …]
H A Dcmp_client.c51 OSSL_CMP_PKISI *si = in unprotected_exception() local
55 if (si == NULL) in unprotected_exception()
106 ss = si->statusString; /* may be NULL */ in save_statusInfo()
241 if (save_statusInfo(ctx, si) in send_receive_check()
480 OSSL_CMP_PKISI *si = NULL; in ossl_cmp_exchange_error() local
496 OSSL_CMP_PKISI_free(si); in ossl_cmp_exchange_error()
669 OSSL_CMP_PKISI *si; in cert_response() local
685 si = crep->status; in cert_response()
702 if (!save_statusInfo(ctx, si)) in cert_response()
901 OSSL_CMP_PKISI *si = NULL; in OSSL_CMP_exec_RR_ses() local
[all …]
/openssl/crypto/pkcs7/
H A Dpk7_attr.c20 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si, in PKCS7_add_attrib_smimecap() argument
35 if (!PKCS7_add_signed_attribute(si, NID_SMIMECapabilities, in PKCS7_add_attrib_smimecap()
43 STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si) in STACK_OF()
48 cap = PKCS7_get_signed_attribute(si, NID_SMIMECapabilities); in STACK_OF()
97 int PKCS7_add_attrib_content_type(PKCS7_SIGNER_INFO *si, ASN1_OBJECT *coid) in PKCS7_add_attrib_content_type() argument
99 if (PKCS7_get_signed_attribute(si, NID_pkcs9_contentType)) in PKCS7_add_attrib_content_type()
103 return PKCS7_add_signed_attribute(si, NID_pkcs9_contentType, in PKCS7_add_attrib_content_type()
107 int PKCS7_add0_attrib_signing_time(PKCS7_SIGNER_INFO *si, ASN1_TIME *t) in PKCS7_add0_attrib_signing_time() argument
115 if (!PKCS7_add_signed_attribute(si, NID_pkcs9_signingTime, in PKCS7_add0_attrib_signing_time()
123 int PKCS7_add1_attrib_digest(PKCS7_SIGNER_INFO *si, in PKCS7_add1_attrib_digest() argument
[all …]
H A Dpk7_smime.c122 PKCS7_SIGNER_INFO *si = NULL; in PKCS7_sign_add_signer() local
136 si->ctx = ossl_pkcs7_get0_ctx(p7); in PKCS7_sign_add_signer()
143 if (!PKCS7_add_attrib_content_type(si, NULL)) in PKCS7_sign_add_signer()
169 if (!pkcs7_copy_existing_digest(p7, si)) in PKCS7_sign_add_signer()
172 && !PKCS7_SIGNER_INFO_sign(si)) in PKCS7_sign_add_signer()
176 return si; in PKCS7_sign_add_signer()
196 if (si == sitmp) in pkcs7_copy_existing_digest()
223 PKCS7_SIGNER_INFO *si; in PKCS7_verify() local
372 PKCS7_SIGNER_INFO *si; in STACK_OF() local
403 si = sk_PKCS7_SIGNER_INFO_value(sinfos, i); in STACK_OF()
[all …]
H A Dpk7_lib.c311 EVP_PKEY *pkey = si->pkey; in pkcs7_ecdsa_or_dsa_sign_verify_setup()
391 PKCS7_SIGNER_INFO *si = NULL; in PKCS7_add_signature() local
404 if ((si = PKCS7_SIGNER_INFO_new()) == NULL) in PKCS7_add_signature()
408 if (!PKCS7_add_signer(p7, si)) in PKCS7_add_signature()
410 return si; in PKCS7_add_signature()
412 PKCS7_SIGNER_INFO_free(si); in PKCS7_add_signature()
471 if (si != NULL) in ossl_pkcs7_resolve_libctx()
472 si->ctx = ctx; in ossl_pkcs7_resolve_libctx()
551 *pk = si->pkey; in PKCS7_SIGNER_INFO_get0_algs()
553 *pdig = si->digest_alg; in PKCS7_SIGNER_INFO_get0_algs()
[all …]
H A Dpk7_doit.c762 if (!PKCS7_SIGNER_INFO_sign(si)) in do_pkcs7_signed_attrib()
773 PKCS7_SIGNER_INFO *si; in PKCS7_dataFinal() local
859 if (si->pkey == NULL) in PKCS7_dataFinal()
877 sk = si->auth_attr; in PKCS7_dataFinal()
946 int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si) in PKCS7_SIGNER_INFO_sign() argument
954 const PKCS7_CTX *ctx = si->ctx; in PKCS7_SIGNER_INFO_sign()
1033 ias = si->issuer_and_serial; in PKCS7_dataVerify()
1120 sk = si->auth_attr; in PKCS7_signatureVerify()
1166 os = si->enc_digest; in PKCS7_signatureVerify()
1209 return get_attribute(si->auth_attr, nid); in PKCS7_get_signed_attribute()
[all …]
/openssl/doc/man3/
H A DCMS_signed_get_attr.pod23 int CMS_signed_get_attr_count(const CMS_SignerInfo *si);
31 int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,
34 int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,
37 int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,
40 void *CMS_signed_get0_data_by_OBJ(const CMS_SignerInfo *si,
44 int CMS_unsigned_get_attr_count(const CMS_SignerInfo *si);
47 int CMS_unsigned_get_attr_by_OBJ(const CMS_SignerInfo *si,
52 int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,
55 int CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,
58 int CMS_unsigned_add1_attr_by_txt(CMS_SignerInfo *si,
[all …]
H A DCMS_get0_SignerInfos.pod16 int CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si, ASN1_OCTET_STRING **keyid,
18 ASN1_OCTET_STRING *CMS_SignerInfo_get0_signature(CMS_SignerInfo *si);
19 int CMS_SignerInfo_cert_cmp(CMS_SignerInfo *si, X509 *cert);
20 void CMS_SignerInfo_set1_signer_cert(CMS_SignerInfo *si, X509 *signer);
28 associated with a specific CMS_SignerInfo structure B<si>. Either the
33 B<si> in a pointer to an ASN1_OCTET_STRING structure. This pointer returned
34 corresponds to the internal signature value if B<si> so it may be read or
38 identifier B<si>. It returns zero if the comparison is successful and non zero
41 CMS_SignerInfo_set1_signer_cert() sets the signers certificate of B<si> to
/openssl/test/
H A Dcmp_status_test.c42 OSSL_CMP_PKISI *si = NULL; in execute_PKISI_test() local
47 if (!TEST_ptr(si = OSSL_CMP_STATUSINFO_new(fixture->pkistatus, in execute_PKISI_test()
52 status = ossl_cmp_pkisi_get_status(si); in execute_PKISI_test()
58 sk_ASN1_UTF8STRING_value(ossl_cmp_pkisi_get0_statusString(si), in execute_PKISI_test()
65 ossl_cmp_pkisi_get_pkifailureinfo(si))) in execute_PKISI_test()
69 ossl_cmp_pkisi_check_pkifailureinfo(si, i))) in execute_PKISI_test()
75 OSSL_CMP_PKISI_free(si); in execute_PKISI_test()
H A Dcmp_msg_test.c30 OSSL_CMP_PKISI *si; member
42 OSSL_CMP_PKISI_free(fixture->si); in tear_down()
97 EXECUTE_MSG_CREATION_TEST(ossl_cmp_error_new(fixture->cmp_ctx, fixture->si, in execute_errormsg_create_test()
329 fixture->si = OSSL_CMP_STATUSINFO_new(OSSL_CMP_PKISTATUS_rejection, in test_cmp_create_error_msg()
427 OSSL_CMP_PKISI *si = OSSL_CMP_STATUSINFO_new(33, 44, "a text"); in execute_rp_create() local
434 if (si == NULL || issuer == NULL || serial == NULL) in execute_rp_create()
441 || (rpmsg = ossl_cmp_rp_new(fixture->cmp_ctx, si, cid, 1)) == NULL) in execute_rp_create()
455 OSSL_CMP_PKISI_free(si); in execute_rp_create()
/openssl/include/openssl/
H A Dcms.h.in138 CMS_ContentInfo *CMS_sign_receipt(CMS_SignerInfo *si,
287 int CMS_SignerInfo_get0_signer_id(CMS_SignerInfo *si,
297 int CMS_SignerInfo_sign(CMS_SignerInfo *si);
298 int CMS_SignerInfo_verify(CMS_SignerInfo *si);
311 int CMS_signed_get_attr_count(const CMS_SignerInfo *si);
319 int CMS_signed_add1_attr_by_OBJ(CMS_SignerInfo *si,
322 int CMS_signed_add1_attr_by_NID(CMS_SignerInfo *si,
325 int CMS_signed_add1_attr_by_txt(CMS_SignerInfo *si,
340 int CMS_unsigned_add1_attr_by_OBJ(CMS_SignerInfo *si,
343 int CMS_unsigned_add1_attr_by_NID(CMS_SignerInfo *si,
[all …]
H A Dpkcs7.h.in181 # define PKCS7_get_signed_attributes(si) ((si)->auth_attr) argument
182 # define PKCS7_get_attributes(si) ((si)->unauth_attr) argument
274 int PKCS7_SIGNER_INFO_sign(PKCS7_SIGNER_INFO *si);
280 BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si);
281 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si,
290 X509 *PKCS7_cert_from_signer_info(PKCS7 *p7, PKCS7_SIGNER_INFO *si);
295 void PKCS7_SIGNER_INFO_get0_algs(PKCS7_SIGNER_INFO *si, EVP_PKEY **pk,
310 ASN1_TYPE *PKCS7_get_attribute(const PKCS7_SIGNER_INFO *si, int nid);
340 int PKCS7_add_attrib_smimecap(PKCS7_SIGNER_INFO *si,
342 STACK_OF(X509_ALGOR) *PKCS7_get_smimecap(PKCS7_SIGNER_INFO *si);
[all …]
/openssl/doc/internal/man3/
H A Dossl_cmp_pkisi_get_status.pod48 int ossl_cmp_pkisi_get_status(const OSSL_CMP_PKISI *si);
50 OSSL_CMP_PKIFREETEXT *ossl_cmp_pkisi_get0_statusString(const OSSL_CMP_PKISI *si);
51 int ossl_cmp_pkisi_get_pkifailureinfo(const OSSL_CMP_PKISI *si);
52 int ossl_cmp_pkisi_check_pkifailureinfo(const OSSL_CMP_PKISI *si, int index);
60 ossl_cmp_pkisi_get_status() returns the PKIStatus of I<si>, or -1 on error.
66 field contained in I<si>.
69 of I<si>, encoded as integer, or -1 on error.
72 with index I<index> in the PKIFailureInfo of the I<si>, or -1 on error.
H A Dcms_add1_signing_cert.pod13 int cms_add1_signing_cert(CMS_SignerInfo *si, ESS_SIGNING_CERT *sc);
15 int cms_add1_signing_cert_v2(CMS_SignerInfo *si, ESS_SIGNING_CERT_V2 *sc2);
20 attribute to the CMS_SignerInfo I<si>.
22 attribute to the CMS_SignerInfo I<si>.
H A Dossl_cmp_certreq_new.pod25 int certReqId, const OSSL_CMP_PKISI *si,
30 OSSL_CMP_MSG *ossl_cmp_rp_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si,
40 OSSL_CMP_MSG *ossl_cmp_error_new(OSSL_CMP_CTX *ctx, const OSSL_CMP_PKISI *si,
72 with the given I<certReqId> and I<si> values and optionally with I<cert>,
76 The function does not protect the message if the B<status> value in I<si>
122 ossl_cmp_rp_new() creates a Revocation Response message with I<si> and I<cid>.
123 It does not protect the message if the B<status> value in I<si> is B<rejected>
145 I<si>, I<errorCode>, and optional I<details>.
/openssl/crypto/ts/
H A Dts_rsp_sign.c283 TS_STATUS_INFO *si = NULL; in TS_RESP_CTX_set_status_info() local
287 if ((si = TS_STATUS_INFO_new()) == NULL) { in TS_RESP_CTX_set_status_info()
291 if (!ASN1_INTEGER_set(si->status, status)) { in TS_RESP_CTX_set_status_info()
301 if (si->text == NULL in TS_RESP_CTX_set_status_info()
312 if (!TS_RESP_set_status_info(ctx->response, si)) { in TS_RESP_CTX_set_status_info()
318 TS_STATUS_INFO_free(si); in TS_RESP_CTX_set_status_info()
327 TS_STATUS_INFO *si = ctx->response->status_info; in TS_RESP_CTX_set_status_info_cond() local
337 TS_STATUS_INFO *si = ctx->response->status_info; in TS_RESP_CTX_add_failure_info() local
338 if (si->failure_info == NULL in TS_RESP_CTX_add_failure_info()
677 PKCS7_SIGNER_INFO *si; in ts_RESP_sign() local
[all …]
H A Dts_rsp_verify.c21 static int ts_check_signing_certs(const PKCS7_SIGNER_INFO *si,
92 PKCS7_SIGNER_INFO *si; in TS_RESP_verify_signature() local
115 si = sk_PKCS7_SIGNER_INFO_value(sinfos, 0); in TS_RESP_verify_signature()
138 if (!ts_check_signing_certs(si, chain)) in TS_RESP_verify_signature()
146 j = PKCS7_signatureVerify(p7bio, token, si, signer); in TS_RESP_verify_signature()
206 static ESS_SIGNING_CERT *ossl_ess_get_signing_cert(const PKCS7_SIGNER_INFO *si) in ossl_ess_get_signing_cert() argument
211 attr = PKCS7_get_signed_attribute(si, NID_id_smime_aa_signingCertificate); in ossl_ess_get_signing_cert()
219 ESS_SIGNING_CERT_V2 *ossl_ess_get_signing_cert_v2(const PKCS7_SIGNER_INFO *si) in ossl_ess_get_signing_cert_v2() argument
231 static int ts_check_signing_certs(const PKCS7_SIGNER_INFO *si, in ts_check_signing_certs() argument
234 ESS_SIGNING_CERT *ss = ossl_ess_get_signing_cert(si); in ts_check_signing_certs()
[all …]
/openssl/demos/cms/
H A Dcms_ver.c22 CMS_SignerInfo *si; in print_signingTime() local
33 si = sk_CMS_SignerInfo_value(sis, i); in print_signingTime()
34 loc = CMS_signed_get_attr_by_NID(si, NID_pkcs9_signingTime, -1); in print_signingTime()
35 attr = CMS_signed_get_attr(si, loc); in print_signingTime()
/openssl/
H A DConfigure1863 while (ref $si ne "HASH") {
1864 last if ! defined $si;
1865 if (ref $si eq "CODE") {
1866 $si = $si->();
1868 $si = $shared_info{$si};
1876 if (defined $si) {
1879 $si->{module_cflags} = $si->{shared_cflag} unless defined $si->{module_cflags};
1880 $si->{module_cxxflags} = $si->{shared_cxxflag} unless defined $si->{module_cxxflags};
1881 $si->{module_ldflags} = $si->{shared_ldflag} unless defined $si->{module_ldflags};
1882 foreach (sort keys %$si) {
[all …]

Completed in 62 milliseconds

12