ESP32 crypto accelerator: What is the maximum RSA key size?

The maximum length of RSA keys the ESP32 cryptographic hardware accelerator supports is 4096 bits. The ESP32-P4 also supports up to 4096 bits

Source: ESP32 datasheet, section 4.5 Cryptographic Hardware Accelerators, ESP32-P4 preliminary datasheet