
AES C impl: don't align to 32 bytes, align to 16 as buffer is 16 bytes long. SP int: Don't call _sp_mulmod but call sp_mul and _sp_div to do mod operation. For RSA, fewer calls for mod operation means less stack used at deepest point.
AES C impl: don't align to 32 bytes, align to 16 as buffer is 16 bytes long. SP int: Don't call _sp_mulmod but call sp_mul and _sp_div to do mod operation. For RSA, fewer calls for mod operation means less stack used at deepest point.