Handle different lengths of RSA key elements