mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
add padding for variable ecc signature size
This commit is contained in:
@@ -2624,6 +2624,9 @@ static int PKCS7_EncodeSigned(PKCS7* pkcs7, ESD* esd,
|
||||
|
||||
if (totalSz > *outputSz) {
|
||||
if (*outputSz == 0) {
|
||||
if (pkcs7->publicKeyOID == ECDSAk) {
|
||||
totalSz += ECC_MAX_PAD_SZ; /* signatures size can vary */
|
||||
}
|
||||
*outputSz = totalSz;
|
||||
idx = totalSz;
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user