mirror of https://github.com/wolfSSL/wolfTPM.git
MAX_PEM_SIZE aliased to MAX_CONTEXT_SIZE (2 KB), which is enough for an RSA-2048 self-signed cert but overflows at RSA-4096 where the signature alone is 512 B plus the cert body, ASN.1, and base64 overhead. wc_MakeCertReq / wc_MakeSelfSignedCert then returned BUFFER_E (0xffffff7c / 0xffffff53). Gate on MAX_RSA_KEY_BITS so 2048-bit builds keep the exact same buffer size; 4096-bit builds (Nations NS350, Infineon SLB967x, or anyone overriding) get 4 KB. Mirrors the fix already applied to examples/pkcs7/pkcs7.c. |
||
|---|---|---|
| .. | ||
| csr.c | ||
| csr.h | ||
| include.am | ||