macro guard for build with disable ecc

This commit is contained in:
Jacob Barthelmeh
2022-05-17 11:36:09 -06:00
parent 1dc5e4cee5
commit 8b46c95f06

View File

@ -2624,9 +2624,11 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7, ESD* esd,
if (totalSz > *outputSz) {
if (*outputSz == 0) {
#ifdef HAVE_ECC
if (pkcs7->publicKeyOID == ECDSAk) {
totalSz += ECC_MAX_PAD_SZ; /* signatures size can vary */
}
#endif
*outputSz = totalSz;
idx = totalSz;
goto out;