Lines Matching refs:abuf
846 unsigned char *abuf = NULL; in PKCS7_dataFinal() local
849 abuf = OPENSSL_malloc(abuflen); in PKCS7_dataFinal()
850 if (!abuf) in PKCS7_dataFinal()
853 if (!EVP_SignFinal(&ctx_tmp, abuf, &abuflen, in PKCS7_dataFinal()
860 ASN1_STRING_set0(si->enc_digest, abuf, abuflen); in PKCS7_dataFinal()
904 unsigned char *abuf = NULL; in PKCS7_SIGNER_INFO_sign() local
924 alen = ASN1_item_i2d((ASN1_VALUE *)si->auth_attr,&abuf, in PKCS7_SIGNER_INFO_sign()
926 if(!abuf) in PKCS7_SIGNER_INFO_sign()
928 if (EVP_DigestSignUpdate(&mctx,abuf,alen) <= 0) in PKCS7_SIGNER_INFO_sign()
930 OPENSSL_free(abuf); in PKCS7_SIGNER_INFO_sign()
933 abuf = OPENSSL_malloc(siglen); in PKCS7_SIGNER_INFO_sign()
934 if(!abuf) in PKCS7_SIGNER_INFO_sign()
936 if (EVP_DigestSignFinal(&mctx, abuf, &siglen) <= 0) in PKCS7_SIGNER_INFO_sign()
948 ASN1_STRING_set0(si->enc_digest, abuf, siglen); in PKCS7_SIGNER_INFO_sign()
953 if (abuf) in PKCS7_SIGNER_INFO_sign()
954 OPENSSL_free(abuf); in PKCS7_SIGNER_INFO_sign()
1071 unsigned char md_dat[EVP_MAX_MD_SIZE], *abuf = NULL; in PKCS7_signatureVerify() local
1105 alen = ASN1_item_i2d((ASN1_VALUE *)sk, &abuf, in PKCS7_signatureVerify()
1113 if (!EVP_VerifyUpdate(&mdc_tmp, abuf, alen)) in PKCS7_signatureVerify()
1116 OPENSSL_free(abuf); in PKCS7_signatureVerify()