Text this: RSA with flexible key size: a hardware approach