wolfTPM/examples/csr
Aidan Garske ebb98f1389 examples/csr: size PEM buffer for RSA-4096 signatures
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.
2026-04-25 00:34:17 +01:00
..
csr.c examples/csr: size PEM buffer for RSA-4096 signatures 2026-04-25 00:34:17 +01:00
csr.h Bump copyright year to 2026 and version to 4.0.0 2026-04-22 09:24:55 -07:00
include.am HAL refactor and documentation improvements. Move example HAL implementations into new `hal` directory. Include the example HAL in the library when building. Updated HAL IO documentation. 2023-01-18 12:38:04 -08:00