rsa: Minor refactoring.
* cipher/rsa.c (secret): Factor code out to ... (secret_core_std, secret_core_crt): new functions.