Lines Matching refs:siglen
761 size_t siglen; in cms_SignerInfo_content_sign() local
771 siglen = EVP_PKEY_get_size(si->pkey); in cms_SignerInfo_content_sign()
772 if (siglen == 0 || (sig = OPENSSL_malloc(siglen)) == NULL) in cms_SignerInfo_content_sign()
774 if (EVP_PKEY_sign(pctx, sig, &siglen, md, mdlen) <= 0) { in cms_SignerInfo_content_sign()
778 ASN1_STRING_set0(si->signature, sig, siglen); in cms_SignerInfo_content_sign()
781 unsigned int siglen; in cms_SignerInfo_content_sign() local
787 siglen = EVP_PKEY_get_size(si->pkey); in cms_SignerInfo_content_sign()
788 if (siglen == 0 || (sig = OPENSSL_malloc(siglen)) == NULL) in cms_SignerInfo_content_sign()
790 if (!EVP_SignFinal_ex(mctx, sig, &siglen, si->pkey, in cms_SignerInfo_content_sign()
797 ASN1_STRING_set0(si->signature, sig, siglen); in cms_SignerInfo_content_sign()
834 size_t siglen; in CMS_SignerInfo_sign() local
869 if (EVP_DigestSignFinal(mctx, NULL, &siglen) <= 0) in CMS_SignerInfo_sign()
872 abuf = OPENSSL_malloc(siglen); in CMS_SignerInfo_sign()
875 if (EVP_DigestSignFinal(mctx, abuf, &siglen) <= 0) in CMS_SignerInfo_sign()
880 ASN1_STRING_set0(si->signature, abuf, siglen); in CMS_SignerInfo_sign()