forked from wolfSSL/wolfssl
macro guard for build with disable ecc
This commit is contained in:
@ -2624,9 +2624,11 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7, ESD* esd,
|
|||||||
|
|
||||||
if (totalSz > *outputSz) {
|
if (totalSz > *outputSz) {
|
||||||
if (*outputSz == 0) {
|
if (*outputSz == 0) {
|
||||||
|
#ifdef HAVE_ECC
|
||||||
if (pkcs7->publicKeyOID == ECDSAk) {
|
if (pkcs7->publicKeyOID == ECDSAk) {
|
||||||
totalSz += ECC_MAX_PAD_SZ; /* signatures size can vary */
|
totalSz += ECC_MAX_PAD_SZ; /* signatures size can vary */
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
*outputSz = totalSz;
|
*outputSz = totalSz;
|
||||||
idx = totalSz;
|
idx = totalSz;
|
||||||
goto out;
|
goto out;
|
||||||
|
Reference in New Issue
Block a user