Lines Matching refs:si
738 static int do_pkcs7_signed_attrib(PKCS7_SIGNER_INFO *si, EVP_MD_CTX *mctx) in do_pkcs7_signed_attrib() argument
744 if (!PKCS7_get_signed_attribute(si, NID_pkcs9_signingTime)) { in do_pkcs7_signed_attrib()
745 if (!PKCS7_add0_attrib_signing_time(si, NULL)) { in do_pkcs7_signed_attrib()
756 if (!PKCS7_add1_attrib_digest(si, md_data, md_len)) { in do_pkcs7_signed_attrib()
762 if (!PKCS7_SIGNER_INFO_sign(si)) in do_pkcs7_signed_attrib()
773 PKCS7_SIGNER_INFO *si; in PKCS7_dataFinal() local
858 si = sk_PKCS7_SIGNER_INFO_value(si_sk, i); in PKCS7_dataFinal()
859 if (si->pkey == NULL) in PKCS7_dataFinal()
862 j = OBJ_obj2nid(si->digest_alg->algorithm); in PKCS7_dataFinal()
877 sk = si->auth_attr; in PKCS7_dataFinal()
884 if (!do_pkcs7_signed_attrib(si, ctx_tmp)) in PKCS7_dataFinal()
888 unsigned int abuflen = EVP_PKEY_get_size(si->pkey); in PKCS7_dataFinal()
893 if (!EVP_SignFinal_ex(ctx_tmp, abuf, &abuflen, si->pkey, in PKCS7_dataFinal()
900 ASN1_STRING_set0(si->enc_digest, abuf, abuflen); 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()
956 md = EVP_get_digestbyobj(si->digest_alg->algorithm); in PKCS7_SIGNER_INFO_sign()
968 ossl_pkcs7_ctx_get0_propq(ctx), si->pkey, in PKCS7_SIGNER_INFO_sign()
972 alen = ASN1_item_i2d((ASN1_VALUE *)si->auth_attr, &abuf, in PKCS7_SIGNER_INFO_sign()
990 ASN1_STRING_set0(si->enc_digest, abuf, siglen); in PKCS7_SIGNER_INFO_sign()
1002 PKCS7 *p7, PKCS7_SIGNER_INFO *si) in PKCS7_dataVerify() argument
1033 ias = si->issuer_and_serial; in PKCS7_dataVerify()
1055 return PKCS7_signatureVerify(bio, p7, si, signer); in PKCS7_dataVerify()
1060 int PKCS7_signatureVerify(BIO *bio, PKCS7 *p7, PKCS7_SIGNER_INFO *si, in PKCS7_signatureVerify() argument
1088 md_type = OBJ_obj2nid(si->digest_alg->algorithm); in PKCS7_signatureVerify()
1120 sk = si->auth_attr; in PKCS7_signatureVerify()
1166 os = si->enc_digest; in PKCS7_signatureVerify()
1207 ASN1_TYPE *PKCS7_get_signed_attribute(const PKCS7_SIGNER_INFO *si, int nid) in PKCS7_get_signed_attribute() argument
1209 return get_attribute(si->auth_attr, nid); in PKCS7_get_signed_attribute()
1212 ASN1_TYPE *PKCS7_get_attribute(const PKCS7_SIGNER_INFO *si, int nid) in PKCS7_get_attribute() argument
1214 return get_attribute(si->unauth_attr, nid); in PKCS7_get_attribute()